WKT Validator
Checks a text file with one WKT or EWKT geometry per line.
Upload a .wkt or .txt file with one geometry per line. The worker reads it exactly like the WKT converters: GDAL parses every line, lines that GDAL rejects are reported as errors, lines without a geometry keyword are skipped with a warning, and an EWKT SRID becomes the coordinate system.
Drag file here to validate, or select file
Supported: .wkt, .txt • Max 50 MB
What We Validate
- Every non-empty line that starts with a WKT keyword (POINT, LINESTRING, POLYGON, MULTI…, GEOMETRYCOLLECTION and others) is parsed by GDAL; lines GDAL rejects as invalid WKT are errors.
- EWKT (SRID=25832;POINT …): the SRID becomes the coordinate system. Different SRIDs in one file are an error.
- Lines without a WKT keyword (comments, text) are skipped and counted in a warning.
- Number of geometries and bounding box.
Tested Examples
- 4 lines POINT, LINESTRING, POLYGON, MULTIPOINT → valid, 4 geometries
- 2 EWKT lines with SRID=25832 → valid, 2 geometries, EPSG:25832
- "POINT (7 50" and "LINESTRING (7 50, 7.1)" → invalid: 2 lines contain invalid WKT
- Comment and text lines between geometries → valid, warning: 2 lines without WKT geometry skipped
- Polygon whose ring is not closed → accepted: GDAL does not check ring closure
Examples tested on 24 Sep 2026 with the worker code of this site and GDAL 3.10.3 (conda-forge build on Windows); the live worker was not part of these tests.
Frequently Asked Questions
Does the validator check whether polygons are closed?
No. GDAL's WKT parser accepts a polygon whose first and last point differ; in the test such a polygon was read without warning.
What does the validator not check?
It does not test geometries for validity (self-intersections, ring orientation or closure), does not validate against XML or JSON schemas and does not look at attribute values. It reports what GDAL reads from the file.
What happens to my file?
Your browser uploads it directly to the GDAL worker on Fly.io (region Frankfurt). The worker checks it in a temporary folder and deletes the folder as soon as the check is done. Upload limit: 50 MB.