GeoLatte / geolatte-geom

A geometry model that conforms to the OGC Simple Features for SQL specification.
Other
132 stars 63 forks source link

Oracle Unable to decode Collection containing Polygon with inner rings #75

Closed abhilashrpt closed 4 years ago

abhilashrpt commented 5 years ago

I am using Hibernate Spatial which uses this Library internally. I am able to save a collection containing Polygon with inner rings, but while retrieving it from DB, I am always getting an exception (Screenshot Attached) (works well in case of Polygon without inner rings). On debugging I found that the cause was at the getElementGeometries() method in org.geolatte.geom.codec.db.oracle.SDOGeometry.class.

I made it work for the time being by tweaking it a little. File attached:

SDOGeometry.java.zip

ScreenShots: geo-exception-1 geo-exception-2