Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS SQL binary format Version 2 should be supported #50

Open
falbrech-hsdg opened this issue Jun 2, 2017 · 1 comment
Open

MS SQL binary format Version 2 should be supported #50

falbrech-hsdg opened this issue Jun 2, 2017 · 1 comment

Comments

@falbrech-hsdg
Copy link

With MS SQL Server 2012, JPA 2.1, and a custom AttributeConverter (this is so fancy!), newly created GEOGRAPHY values (via WKT string) are stored using "version 2" of the MS SQL binary format. When trying to decode them after retrieval, I get the error,

java.lang.IllegalStateException: Version mismatch. Expected version 1, but received version 2
	at org.geolatte.geom.codec.db.sqlserver.SqlServerGeometry.parse(SqlServerGeometry.java:304)

In hexadecimal representation, they look like this:

E610000002000C000...

Version 2 of the binary format is documented by Microsoft. It would be great if geolatte included support for this.

@maesenka
Copy link
Member

This is not merely a matter of format. The Version 2 geometries/geographies supports feature types such as CircularString, CompoundCurve, etc. which are (currently) not supported by Geolatte-geom.
So I would first need to find the time to properly extend the Geometry model of geolatte-geom, and only then will I be able to support version 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants