GeoLatte / geolatte-geom

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

Encoder for SQLServer WKB does not work for Polygons #35

Closed securityLast closed 8 years ago

securityLast commented 8 years ago

I am using Hibernate 5.0.4 and it is failing to read my polygons from the database. The encoder works for Points and lines but not for Polygons. In Hibernate I get an Index 0 size 0 failure. I setup a junit test to encode a geometry to sql byte array then decode. The encode outputs an byte array that is invalid - can't get SQL Server functions to decode - and the decode throws an exception.

maesenka commented 8 years ago

Same here. Could you share the tests?

maesenka commented 8 years ago

Never mind. I see you already included them in #36

maesenka commented 8 years ago

I've diagnosed the problems, and will fix them in the next few days.

maesenka commented 8 years ago

Fixed by 34fc26d3d0781f9591d7bd21ff22a3b9795d3d64

securityLast commented 8 years ago

Thanks for such a quick response!

On Sun, Nov 29, 2015 at 12:48 PM, Karel Maesen notifications@github.com wrote:

Closed #35 https://github.com/GeoLatte/geolatte-geom/issues/35.

— Reply to this email directly or view it on GitHub https://github.com/GeoLatte/geolatte-geom/issues/35#event-477124051.