WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT é um formato de representação de geometrias em texto, usado em bases de dados (PostGIS, SpatiaLite) e aplicações SIG. Simples e fácil de integrar.

Exportar WKT agora ✨ Beta Aberta — gratuito, sem limites

Principais características

Formato de texto
Norma OGC
Integração fácil com base de dados
Todos os tipos de geometria suportados

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

Que programa abre ficheiros WKT

Os seguintes programas e aplicações podem abrir, editar e trabalhar com ficheiros WKT (Well-Known Text) (.wkt) exportados do OSM2CDR:

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

Format specifications

Quem utiliza mapas WKT

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

Como exportar para WKT

1
Selecionar área
Desenhe um retângulo ou polígono no mapa interativo em osm2cdr.ru
2
Escolher WKT
Selecione WKT (Well-Known Text) na lista de 127 formatos de exportação disponíveis
3
Exportar
Clique em Exportar e receba o seu ficheiro .wkt em 1-5 minutos
4
Descarregar
Descarregue o ficheiro WKT pronto e abra-o no PostGIS

Como abrir depois da exportação

Mapas populares em WKT

Free

Obtenha exportações de mapas em WKT (Well-Known Text)

Descarregue mapas profissionais em WKT a partir do OpenStreetMap. Geração instantânea, qualquer área.

Gratuito / exportação
Exportar WKT agora →

Perguntas frequentes

O que é o WKT?
Posso importar WKT para o PostGIS?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Comparar com outros formatos

Formatos relacionados

Frequentemente exportados em conjunto

Related Articles