CSV 📄

CSV (Comma-Separated Values)

Open Beta
.csv · text/csv

CSV med WKT-geometri är ett universellt textformat för utbyte av geodata. Öppnas i alla kalkylprogram, importeras enkelt till databaser och används i skript för databehandling.

Exportera CSV nu ✨ Öppen beta — gratis, inga begränsningar

Viktiga funktioner

Textformat
WKT-geometri
Öppnas i Excel
Enkel databasimport

Om formatet CSV

CSV is a simple table: a row per object, columns separated by commas. Geography is put into it in two ways, and we use both at once: the full geometry of an object is written as text in WKT format, and next to it come the latitude and longitude of a representative point — for a line and a polygon that is a point on the object itself, not a nominal center outside it.

The format is chosen when the map is needed as data rather than as a picture: to count objects in a table, to merge with an export from your own system, to load into a database, to hand to a colleague without a GIS, to run through a script. CSV is read by literally everything — from Excel to pandas.

The output is a single file in UTF-8 encoding. One layer gives an ordinary table; if several layers are selected, they are gathered into one file, and the first column _layer shows where the row came from — it makes splitting the data back apart easy. OSM attributes go as separate columns, and the coordinates are in WGS84 rounded to seven decimal places, which is about a centimeter.

Vilket program öppnar CSV-filer

Följande program och applikationer kan öppna, redigera och arbeta med CSV (Comma-Separated Values)-filer (.csv) som exporterats från OSM2CDR:

📈Excel 💻Google Sheets 💻Python (pandas) 📐R 💻PostGIS 🌎QGIS

Format specifications

Vem använder CSV-kartor

🏗
Datautbyte
Passing geodata to where there is no GIS: anyone can open a table.
💻
Databasimport
Loading into PostgreSQL, MySQL or a warehouse with a single import command.
📊
Excel/Google Sheets
Work in a familiar spreadsheet: filters, pivots, counting objects by type.
🎨
Bearbetningsskript
Processing with Python or R scripts without installing geo libraries.
🗺
ETL-pipelines
An intermediate layer in an ETL pipeline between the export and the target system.

Så exporterar du CSV

1
Välj område
Rita en rektangel eller polygon på den interaktiva kartan på osm2cdr.ru
2
Välj CSV
Välj CSV (Comma-Separated Values) från listan med 127 tillgängliga exportformat
3
Exportera
Klicka på Exportera och få din .csv-fil på 1–5 minuter
4
Ladda ner
Ladda ner den färdiga CSV-filen och öppna den i Excel

Så öppnar du filen efter exporten

Populära kartor i CSV

Free

Hämta kartexporter i CSV (Comma-Separated Values)

Ladda ner professionella CSV-kartor från OpenStreetMap. Direktgenerering, valfritt område.

Gratis / export
Exportera CSV nu →

Vanliga frågor

Kan jag öppna CSV-kartan i Excel?
Hur importerar man CSV till PostGIS?
How do I open the file in Excel without garbled characters?
What are the _layer, lat and lon columns?
What coordinate system do the coordinates come in?

Jämför med andra format

Convert to CSV and back

CSV guides and tutorials

Relaterade format

Ofta exporterade tillsammans

Related Articles