WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT je format za tekstualni prikaz geometrija koji se koristi u bazama podataka (PostGIS, SpatiaLite) i GIS aplikacijama. Jednostavan i lak za integraciju.

Izvezi WKT sada ✨ Otvorena beta — besplatno, bez ograničenja

Ključne značajke

Tekstualni format
OGC standard
Jednostavna integracija s bazom podataka
Podržane sve vrste geometrije

O formatu 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.

Koji program otvara datoteke WKT

Sljedeći programi i aplikacije mogu otvoriti, uređivati i raditi s datotekama WKT (Well-Known Text) (.wkt) izvezenima iz OSM2CDR-a:

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

Format specifications

Tko koristi karte WKT

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

Kako izvesti WKT

1
Odaberite područje
Nacrtajte pravokutnik ili poligon na interaktivnoj karti na osm2cdr.ru
2
Odaberite WKT
Odaberite WKT (Well-Known Text) s popisa od 127 dostupnih formata izvoza
3
Izvoz
Kliknite Izvoz i primite svoju .wkt datoteku za 1 – 5 minuta
4
Preuzimanje
Preuzmite gotovu datoteku WKT i otvorite je u PostGIS

Kako otvoriti nakon izvoza

Popularne karte u formatu WKT

Besplatno

Nabavite izvoze karata u formatu WKT (Well-Known Text)

Preuzmite profesionalne karte u formatu WKT iz OpenStreetMapa. Trenutno generiranje, bilo koje područje.

Besplatno / izvoz
Izvezi WKT sada →

Često postavljana pitanja

Što je WKT?
Mogu li uvesti WKT u PostGIS?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Usporedba s drugim formatima

Convert to WKT and back

Povezani formati

Često se izvoze zajedno

Related Articles