NCPP / ocgis

OpenClimateGIS is a set of geoprocessing and calculation tools for CF-compliant climate datasets.
Other
70 stars 19 forks source link

Debugging geometry splitting during conversion from shapely #507

Closed bekozi closed 4 years ago

bekozi commented 4 years ago

User reported issue during geometry coordinate conversion related to a polygon with holes and high node count.

bekozi commented 4 years ago

The problem is a data issue in an HDMA shapefile. The first step is to skip the problem geometries and log/warn about this action. A strict=True default argument needs to be added to ocgis.variable.geom.GeometryVariable.convert_to. If strict=False then the errors and feature indices will be logged via a warning. Ideally, only the elements of the multi-geometry will be skipped.