WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT е текстов формат за представяне на геометрии, използван в бази данни (PostGIS, SpatiaLite) и ГИС приложения. Прост и лесен за интегриране.

Експортирайте 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.
📊
ГИС анализ
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

Free

Получете експорти на карти в 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?

Сравнение с други формати

Convert to WKT and back

Свързани формати

Често експортирани заедно

Related Articles