WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT is 'n teksvoorstellingsformaat vir geometrieë, wat in databasisse (PostGIS, SpatiaLite) en GIS-toepassings gebruik word. Eenvoudig en maklik om te integreer.

Voer WKT nou uit ✨ Oop beta — gratis, geen beperkings nie

Sleutelkenmerke

Teksformaat
OGC-standaard
Maklike DB-integrasie
Alle geometrietipes ondersteun

Oor die WKT-formaat

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.

Watter program open WKT-lêers

Die volgende programme en toepassings kan WKT (Well-Known Text) (.wkt)-lêers wat uit OSM2CDR uitgevoer is, open, redigeer en daarmee werk:

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

Format specifications

Wie gebruik WKT-kaarte

🏗
Databasisse (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-ontleding
Quick exchange of geometry between GIS tools, all of which understand WKT.
🎨
Stelselintegrasie
Passing coordinates to an adjacent system that accepts plain text rather than GIS format files.

Hoe om WKT uit te voer

1
Kies gebied
Teken 'n reghoek of veelhoek op die interaktiewe kaart by osm2cdr.ru
2
Kies WKT
Kies WKT (Well-Known Text) uit die lys van 127 beskikbare uitvoerformate
3
Uitvoer
Klik op Uitvoer en ontvang jou .wkt-lêer binne 1-5 minute
4
Aflaai
Laai die gereede WKT-lêer af en open dit in PostGIS

Hoe om dit ná uitvoer te open

Gewilde kaarte in WKT

Gratis

Kry WKT (Well-Known Text)-kaartuitvoere

Laai professionele WKT-kaarte van OpenStreetMap af. Onmiddellike generering, enige gebied.

Gratis / uitvoer
Voer WKT nou uit →

Gereelde vrae

Wat is WKT?
Kan ek WKT in PostGIS invoer?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Vergelyk met ander formate

Convert to WKT and back

Verwante formate

Dikwels saam uitgevoer

Related Articles