WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT és un format de representació de text per a geometries, utilitzat en bases de dades (PostGIS, SpatiaLite) i aplicacions SIG. Senzill i fàcil d'integrar.

Exporta WKT ara ✨ Beta oberta — gratuït, sense límits

Característiques clau

Format de text
Estàndard OGC
Integració fàcil amb bases de dades
Compatibilitat amb tots els tipus de geometria

Sobre el 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.

Quin programa obre els fitxers WKT

Els programes i les aplicacions següents poden obrir, editar i treballar amb fitxers WKT (Well-Known Text) (.wkt) exportats des d'OSM2CDR:

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

Format specifications

Qui utilitza els mapes WKT

🏗
Bases de dades (PostGIS)
Geometry is pasted into SQL directly through ST_GeomFromText — with no converters and no intermediate files.
💻
Programació
Convenient material for tests and debugging: the shape is visible to the eye right in the source.
📊
Anàlisi SIG
Quick exchange of geometry between GIS tools, all of which understand WKT.
🎨
Integració de sistemes
Passing coordinates to an adjacent system that accepts plain text rather than GIS format files.

Com exportar WKT

1
Selecciona l'àrea
Dibuixa un rectangle o un polígon al mapa interactiu d'osm2cdr.ru
2
Tria WKT
Tria WKT (Well-Known Text) de la llista de 127 formats d'exportació disponibles
3
Exporta
Fes clic a Exporta i rep el fitxer .wkt en 1-5 minuts
4
Descarrega
Descarrega el fitxer WKT llest i obre'l amb PostGIS

Com obrir el fitxer després de l'exportació

Mapes populars en WKT

Free

Obtingues exportacions de mapes WKT (Well-Known Text)

Descarrega mapes WKT professionals d'OpenStreetMap. Generació instantània, qualsevol àrea.

Gratuït / exportació
Exporta WKT ara →

Preguntes freqüents

Què és WKT?
Puc importar WKT a PostGIS?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Compara amb altres formats

Convert to WKT and back

Formats relacionats

Sovint exportats junts

Related Articles