WKT 📝

WKT (Well-Known Text)

Open Beta
.wkt · text/plain

WKT เป็นรูปแบบการแทนรูปทรงเรขาคณิตด้วยข้อความ ใช้ในฐานข้อมูล (PostGIS, SpatiaLite) และแอปพลิเคชัน GIS เรียบง่ายและผสานรวมได้ง่าย

ส่งออก WKT เลย ✨ Open Beta — ฟรี ไม่มีข้อจำกัด

คุณสมบัติสำคัญ

รูปแบบข้อความ
มาตรฐาน 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?

เปรียบเทียบกับรูปแบบอื่น

Convert to WKT and back

รูปแบบที่เกี่ยวข้อง

มักส่งออกพร้อมกัน

Related Articles