WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT to tekstowy format reprezentacji geometrii, używany w bazach danych (PostGIS, SpatiaLite) oraz aplikacjach GIS. Prosty i łatwy do integracji.

Eksportuj WKT teraz ✨ Otwarta beta — bezpłatnie, bez ograniczeń

Najważniejsze funkcje

Format tekstowy
Standard OGC
Łatwa integracja z bazą danych
Obsługa wszystkich typów geometrii

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

Jaki program otwiera pliki WKT

Następujące programy i aplikacje mogą otwierać, edytować i pracować z plikami WKT (Well-Known Text) (.wkt) wyeksportowanymi z OSM2CDR:

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

Format specifications

Kto korzysta z map WKT

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

Jak wyeksportować WKT

1
Zaznacz obszar
Narysuj prostokąt lub wielokąt na interaktywnej mapie pod adresem osm2cdr.ru
2
Wybierz WKT
Wybierz WKT (Well-Known Text) z listy 127 dostępnych formatów eksportu
3
Eksportuj
Kliknij Eksportuj i otrzymaj plik .wkt w ciągu 1-5 minut
4
Pobierz
Pobierz gotowy plik WKT i otwórz go w PostGIS

Jak otworzyć po eksporcie

Popularne mapy w formacie WKT

Darmowy

Uzyskaj eksporty map w formacie WKT (Well-Known Text)

Pobieraj profesjonalne mapy WKT z OpenStreetMap. Natychmiastowe generowanie, dowolny obszar.

Bezpłatnie / eksport
Eksportuj WKT teraz →

Najczęściej zadawane pytania

Czym jest WKT?
Czy mogę zaimportować WKT do PostGIS?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Porównanie z innymi formatami

Convert to WKT and back

Powiązane formaty

Często eksportowane razem

Related Articles