ST_MakeValid support for NaN values.
|Reported by:||strk||Owned by:||strk|
|Priority:||medium||Milestone:||PostGIS Fund Me|
It's not easy to obtain a polygon with NaN ordinate values so here is one:
The above geometry was found in a shapefile, and can be imported successfully by both shp2pgsql and ogr2ogr.
ST_MakeValid not only fails at turning it into a valid, but also throws an exception.
Possible better things to do:
- Pretend all NaN values are an arbitrary value (0.0) ?
- Drop all Coordinates with any NaN ordinate value (including Z and M?)
- Return null
- Return the input untouched