WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT è un formato di rappresentazione testuale delle geometrie, usato nei database (PostGIS, SpatiaLite) e nelle applicazioni GIS. Semplice e facile da integrare.

Esporta WKT ora ✨ Open Beta — gratis, senza limiti

Caratteristiche principali

Formato testuale
Standard OGC
Integrazione semplice in database
Supporto per tutti i tipi di geometria

Informazioni sul formato 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.

Quale programma apre i file WKT

I seguenti programmi e applicazioni possono aprire, modificare ed elaborare i file WKT (Well-Known Text) (.wkt) esportati da OSM2CDR:

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

Format specifications

Chi usa le mappe WKT

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

Come esportare in WKT

1
Seleziona l'area
Disegna un rettangolo o un poligono sulla mappa interattiva su osm2cdr.ru
2
Scegli WKT
Seleziona WKT (Well-Known Text) dall'elenco dei 127 formati di esportazione disponibili
3
Esporta
Fai clic su Esporta e ricevi il file .wkt in 1-5 minuti
4
Scarica
Scarica il file WKT pronto e aprilo in PostGIS

Come aprire il file dopo l'esportazione

Mappe popolari in WKT

Free

Ottieni esportazioni di mappe in WKT (Well-Known Text)

Scarica mappe WKT professionali da OpenStreetMap. Generazione istantanea, qualsiasi area.

Gratis / esportazione
Esporta WKT ora →

Domande frequenti

Che cos'è WKT?
Posso importare WKT in PostGIS?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Confronta con altri formati

Convert to WKT and back

Formati correlati

Esportati spesso insieme

Related Articles