WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT ialah format perwakilan teks untuk geometri, digunakan dalam pangkalan data (PostGIS, SpatiaLite) dan aplikasi GIS. Mudah dan senang disepadukan.

Eksport WKT sekarang ✨ Beta Terbuka — percuma, tanpa had

Ciri Utama

Format teks
Standard OGC
Penyepaduan DB yang mudah
Semua jenis geometri disokong

Mengenai Format 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.

Program yang Membuka Fail WKT

Program dan aplikasi berikut boleh membuka, menyunting, dan bekerja dengan fail WKT (Well-Known Text) (.wkt) yang dieksport daripada OSM2CDR:

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

Format specifications

Siapa yang Menggunakan Peta WKT

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

Cara Mengeksport WKT

1
Pilih kawasan
Lukis segi empat atau poligon pada peta interaktif di osm2cdr.ru
2
Pilih WKT
Pilih WKT (Well-Known Text) daripada senarai 127 format eksport yang tersedia
3
Eksport
Klik Eksport dan terima fail .wkt anda dalam 1-5 minit
4
Muat turun
Muat turun fail WKT yang siap dan buka dalam PostGIS

Cara Membuka Selepas Eksport

Peta popular dalam WKT

Percuma

Dapatkan eksport peta WKT (Well-Known Text)

Muat turun peta WKT profesional daripada OpenStreetMap. Penjanaan serta-merta, sebarang kawasan.

Percuma / eksport
Eksport WKT sekarang →

Soalan Lazim

Apakah itu WKT?
Bolehkah saya mengimport WKT ke PostGIS?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Bandingkan dengan Format Lain

Format Berkaitan

Kerap Dieksport Bersama

Related Articles