4

Microsoft chose to create its own binary storage format for spatial data and it is not valid for use with any of SQL's OGC WKB functions.

Has anyone run across code to translate from Microsoft's proprietary binary format to OGC's Well Known Binary format?

  • There is a t-sql function .STAsText(), this will output OGC WKT. – klewis Jan 23 '17 at 18:18
4

Yes, STAsBinary() will return WKB.

https://msdn.microsoft.com/en-us/library/bb933912.aspx

  • Thanks. I had tried that but I used it incorrectly. Thanks for prompting me to pull my head out and look at it from another direction! – Chindokae Jan 23 '17 at 20:06
  • @Chindokae, if you think this is the right answer, please accept it so that this thread is marked with a correct answer – Peter Horsbøll Møller Jan 26 '17 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.