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

Set Geography.IsLargerThanAHemisphere value #17

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

FObermaier
Copy link
Member

No description provided.

Add initial unit tests. It seems that using GeocentricTransform is overkill, plain sphere math might do, @brieclam?
@FObermaier FObermaier marked this pull request as draft April 13, 2021 12:08
@bricelam
Copy link
Collaborator

The SQL Server serialization format has a flag for this too--the H bit of the Serialization Properties byte in version 2 of the GEOGRAPHY structure.

Can we add a test serializing one of these values to make sure we match the SQL Server behavior?

@bricelam
Copy link
Collaborator

bricelam commented Apr 13, 2021

Ah, I see, this is setting the flag so it gets serialized. 🤦

In that case, yeah, adding a serialization test would be nice. You can get the bytes SQL Server returns using a query like the following.

SELECT CONVERT(nvarchar, geography::STGeomFromText('POINT (0 90)', 4326).STBuffer(500).Serialize(), 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

Successfully merging this pull request may close these issues.

2 participants