You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wasn't able to serialize a WGS84 point (Geometries.mkPoint(new G2D(longitude, latitude), CoordinateReferenceSystems.WGS84);) such that the SQL server database accepted its byte representation to write the result into a geography typed column.
According to the SQL Server documentation ("Microsoft SQL Server CLR Types Serialization Formats", section "GEOGRAPHY POINT Structure"), latitude must be serialized before longitude. However, the G2D ordering is reversed. As a fix, I changed the ordering in SqlServerGeometry.setCoordinate(...) and SqlServerGeometry.readPoints(...)
Can someone approve that this is a bug?
The text was updated successfully, but these errors were encountered:
That is not really a bug. The current MSSqlServer Encoders/Decoders are designed to work with Geometries, not Geographies.
Now that geolatte-geom Geometries contain coordinate system information, we are ready to take into account the difference between Geometry and Geography structures.
This is something I'm definitely willing to do, as soon as I find the time.
I wasn't able to serialize a WGS84 point (
Geometries.mkPoint(new G2D(longitude, latitude), CoordinateReferenceSystems.WGS84);
) such that the SQL server database accepted its byte representation to write the result into a geography typed column.According to the SQL Server documentation ("Microsoft SQL Server CLR Types Serialization Formats", section "GEOGRAPHY POINT Structure"), latitude must be serialized before longitude. However, the G2D ordering is reversed. As a fix, I changed the ordering in SqlServerGeometry.setCoordinate(...) and SqlServerGeometry.readPoints(...)
Can someone approve that this is a bug?
The text was updated successfully, but these errors were encountered: