This project has moved and is read-only. For the latest updates, please go here.

MakeValidGeographyFromGeometry sometimes reverts point's order

Apr 11, 2014 at 11:22 PM
I was trying to convert an array of lat/long points to valid SqlGeography by creating SqlGeometry first and then converting it to geography when I discovered that my resulting Multiline occasionally has points in reverse order.

Is it by design? Seems to be strange that order of points is not preserved.