WKT Validator
Validate WKT geometry strings for syntax correctness and coordinate completeness.
Upload a .wkt or .txt file containing Well-Known Text geometry representations to verify their syntax correctness. The GDAL validator parses WKT strings for valid geometry type keywords (POINT, LINESTRING, POLYGON, MULTIPOLYGON, GEOMETRYCOLLECTION), correct coordinate tuple structure, proper ring closure in polygons, and correct nesting of multi-part geometries. Geometry counts and detected types are reported.
Drag file here to validate, or select file
Supported: .wkt, .txt • Max 50MB
What We Validate
- Valid WKT geometry type keywords (POINT, LINESTRING, POLYGON, MULTIPOLYGON, etc.)
- Coordinate tuple completeness (minimum 2 values per point)
- Polygon ring closure (first and last coordinate must be identical)
- Correct parenthesis nesting for multi-part geometries
- GEOMETRYCOLLECTION member type validity
- Detection of EMPTY geometry declarations
Common Issues Detected
- Missing closing parenthesis in nested geometry structures
- Polygon exterior ring not closed (first and last point differ)
- Misspelled geometry type keywords (e.g. 'POLYGONE' instead of 'POLYGON')
- Single-point linestrings with fewer than two coordinate pairs
- Mixed 2D and 3D coordinates within the same geometry
Frequently Asked Questions
What is WKT used for?
WKT is used to represent geometric shapes as human-readable text strings. It is commonly exported from spatial SQL databases (PostGIS, MS SQL Spatial, SpatiaLite) and used in GIS workflows to exchange geometry definitions without attribute data.
Does the validator support EWKT (Extended WKT with SRID)?
EWKT is a PostGIS extension that prepends an SRID to the geometry string (e.g., SRID=4326;POINT(...)). The validator will attempt to parse EWKT by stripping the SRID prefix before validating the WKT geometry.
How many WKT geometries can I validate per file?
The file can contain multiple WKT geometries, one per line. The validator processes each line independently and reports counts of valid versus invalid entries.