Skip to content

[QUESTION] geography not valid #1031

@vforchi

Description

@vforchi

Question

I believe I am doing something wrong, but when I use the Geography class to create WKB I get an invalid geography.

byte[] wkb = Geography.point(10, 20, 104001).serialize()
assert wkb[5] == 0x0c

This returns false, because that value is 0x08, meaning that the geometry is not valid, if I am not mistaken. But according to the CLR Types specification the valid bit should always be set for version 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionUsed when a question is asked, as opposed to an issue being raised

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions