MySQL Forums
Forum List  »  GIS

Re: Difference between Well-Known Binary data format and MySql blob format
Posted by: Alexey Botchkov
Date: August 02, 2005 01:24AM

Presently, content of the GEOMETRY field is basically WKB with the SRID.
But I wouldn't recommend to rely on that - we have plans to change that.
If you need to get proper WKB of the object, you should use AsWKB function:
SELECT AsWKB(geom_field) FROM geom_table;

Here is the description of the WKB of the POINT from OpenGIS info:
WKBPoint {
byte byteOrder;
uint32 wkbType;
Point point; /* actually two doubles */
}

So it makes 1 + 4 + 8 + 8 = 21 bytes

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Difference between Well-Known Binary data format and MySql blob format
3197
August 02, 2005 01:24AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.