WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT је формат текстуалног приказа геометрија, који се користи у базама података (PostGIS, SpatiaLite) и GIS апликацијама. Једноставан и лак за интеграцију.

Извезите WKT одмах ✨ Отворена бета — бесплатно, без ограничења

Кључне могућности

Текстуални формат
OGC стандард
Лака интеграција са базом података
Подршка за све типове геометрије

О формату 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.

Који програм отвара WKT датотеке

Следећи програми и апликације могу да отворе, уреде и раде са WKT (Well-Known Text) (.wkt) датотекама извезеним из OSM2CDR:

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

Format specifications

Ко користи WKT карте

🏗
Базе података (PostGIS)
Geometry is pasted into SQL directly through ST_GeomFromText — with no converters and no intermediate files.
💻
Програмирање
Convenient material for tests and debugging: the shape is visible to the eye right in the source.
📊
GIS анализа
Quick exchange of geometry between GIS tools, all of which understand WKT.
🎨
Интеграција система
Passing coordinates to an adjacent system that accepts plain text rather than GIS format files.

Како извести WKT

1
Изаберите област
Нацртајте правоугаоник или полигон на интерактивној карти на osm2cdr.ru
2
Одаберите WKT
Изаберите WKT (Well-Known Text) са листе од 127 доступних формата извоза
3
Извоз
Кликните на Извоз и добићете своју .wkt датотеку за 1–5 минута
4
Преузимање
Преузмите готову WKT датотеку и отворите је у PostGIS

Како отворити након извоза

Популарне карте у формату WKT

Бесплатно

Преузмите извозе карата у формату WKT (Well-Known Text)

Преузмите професионалне WKT карте из OpenStreetMap. Тренутачно генерисање, било која област.

Бесплатно / извоз
Извезите WKT одмах →

Често постављана питања

Шта је WKT?
Могу ли да увезем WKT у PostGIS?
Are names and tags preserved?
How do I tell which layer is which?
Which coordinate system and what precision?

Упоредите са другим форматима

Сродни формати

Често се извозе заједно

Related Articles