Validate Well-Known Text geometry syntax, detect coordinate anomalies, verify polygon outer and inner ring closure, and inspect PostGIS spatial strings.
The validator checks for common spatial data parsing pitfalls:
POLYGON((0 0, 10 0, 10 10, 0 10)) β Missing closure
First & last coordinate must match
LINESTRING(0 0) β Insufficient points
Must contain β₯ 2 coordinate pairs
POINT(72.57, 23.02) β Comma between coordinates
Space separates X & Y, comma separates vertices
Test these compliant WKT strings directly:
POINT(2.2945 48.8584)
LINESTRING(-122.4786 37.8100, -122.4783 37.8199, -122.4780 37.8300)
POLYGON((-73.9731 40.7644, -73.9579 40.7972, -73.9818 40.8005, -73.9819 40.7681, -73.9731 40.7644))