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.
Question
I believe I am doing something wrong, but when I use the Geography class to create WKB I get an invalid geography.
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.