|
In my Oracle table XEIZ_2WEGEN_WEGVAKONDERDEEL I have some invalid elements (ORA-13343 a polygon geometry has fewer than four coordinates). I found out that GeoTools stops rendering other valid elements of the same layer if it meets this invalid geometry with the message "org.geotools.rendering SEVERE: Points of LinearRing do not form a closed linestring ". The same happens with ORA-13348 polygon border not closed.
I understand that this particular geometry cannot be rendered. In my opinion GeoTools should go on and render elements after this one. This is what my old map generator Oracle MapViewer does and also QGIS.
I attached an Oracle dump (exp) with the mentioned table to test with.
You can discover the invalid geometry with the following SQL-statement in sqlplus:
Select id, sdo_geom.validate_geometry_with_context(geometrie, 0.0005) from xeiz_2wegen_wegvakonderdeel where sdo_geom.validate_geometry_with_context(geometrie, 0.0005) != 'TRUE';
The elements with error 13349 (polygon border crosses itself) are rendered by GeoTools but elements with error 13343 or 13348 (not in the data) produce the SEVERE error and stops GeoTools from rendering other valid elements that come after the invalid element.
|