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