WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT er et tekstrepræsentationsformat for geometrier, der bruges i databaser (PostGIS, SpatiaLite) og GIS-applikationer. Enkelt og let at integrere.

Eksportér WKT nu ✨ Open Beta — gratis, ingen begrænsninger

Vigtigste funktioner

Tekstformat
OGC-standard
Nem integration med database
Alle geometrityper understøttes

Om formatet WKT

WKT (Well-Known Text) is the textual encoding of geometry from the OGC standard: POINT(37.6177 55.7558), LINESTRING(...), POLYGON((...)). It is understood by every spatial database and library — PostGIS, SpatiaLite, Shapely, JTS, GEOS — and it can be read by eye, which makes the format indispensable while debugging.

The export is taken when geometry is needed as text: to paste into an SQL query, to put into a test, to pass coordinates to someone else's system, to take a quick look at what came out of the selected area at all.

The output is a single text file in UTF-8. At the top are comments with the bounding box of the area and the coordinate system, then it goes layer by layer: a line like "-- layer: roads" with one geometry per line underneath it. Coordinates are in WGS84 (EPSG:4326) with six decimal places — that is about ten centimeters on the ground.

One important thing: WKT stores shapes only. There are no names, types or other OpenStreetMap tags in the file — if you need attributes, take GeoJSON, GeoPackage or a CSV with a WKT column.

Hvilket program åbner WKT-filer

Følgende programmer og applikationer kan åbne, redigere og arbejde med WKT (Well-Known Text)-filer (.wkt), der er eksporteret fra OSM2CDR:

💻PostGIS 💻SpatiaLite 🌎QGIS 💻Shapely (Python) 💻JTS (Java) 💻GEOS

Format specifications

Hvem bruger WKT-kort

🏗
Databaser (PostGIS)
Geometry is pasted into SQL directly through ST_GeomFromText — with no converters and no intermediate files.
💻
Programmering
Convenient material for tests and debugging: the shape is visible to the eye right in the source.
📊
GIS-analyse
Quick exchange of geometry between GIS tools, all of which understand WKT.
🎨
Systemintegration
Passing coordinates to an adjacent system that accepts plain text rather than GIS format files.

Sådan eksporterer du WKT

1
Vælg område
Tegn et rektangel eller en polygon på det interaktive kort på osm2cdr.ru
2
Vælg WKT
Vælg WKT (Well-Known Text) fra listen over 127 tilgængelige eksportformater
3
Eksportér
Klik på Eksportér, og modtag din .wkt-fil på 1-5 minutter
4
Download
Download den færdige WKT-fil, og åbn den i PostGIS

Sådan åbner du filen efter eksporten

Populære kort i WKT

Free

Få korteksport i WKT (Well-Known Text)

Download professionelle WKT-kort fra OpenStreetMap. Øjeblikkelig generering, ethvert område.

Gratis / eksport
Eksportér WKT nu →

Ofte stillede spørgsmål

Hvad er WKT?
Kan jeg importere WKT til PostGIS?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Sammenlign med andre formater

Relaterede formater

Ofte eksporteret sammen

Related Articles