Geometries stored in Oracle table fail sdo_geom.validate_geometry_with_context(..) check #29085
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Author Name: Steve Pritchard (@spritchard)
Original Redmine Issue: 21267
Affected QGIS version: 3.4.4
Redmine category:data_provider/oracle
Assignee: Jürgen Fischer
The geometries that QGIS writes to Oracle are often "invalid" according to Oracle Spatial - sdo_geom.validate_geometry_with_context(..) returns an error code:
If the vertices of a simple polygon are drawn in an anticlockwise order, then Oracle regards the geometry as valid.
But if the vertices as drawn in a clockwise order, sdo_geom.validate_geometry_with_context(...) returns 13367.
Also if I start with a polygon that is valid in Oracle and then split it in QGIS, I end up with two polygons that are both invalid (13367).
This problem doesn't appear to have been reported before, which suggests that it doesn't cause problems within QGIS. However, if you are preparing data in QGIS that is then going to be used within an Oracle Spatial application, then the invalid geometries can cause Oracle Spatial functions/operators to fail or return incorrect results.
The text was updated successfully, but these errors were encountered: