[postgis-users] from EWKB to WKB

Denis Rouzaud denis.rouzaud at gmail.com
Thu Apr 25 02:58:39 PDT 2013


Hi all,

I have a EKWB string, and I'd like to transform it to WKB.

Can I do this by removing the characters from position 3 to 10, like:


SELECT 'SRID=4;POINT(1 0)'::geometry
01 01000020 04000000 000000000000F03F0000000000000000

'POINT(1 0)'::geometry;
01 01000000          000000000000F03F0000000000000000

Thanks a lot,

Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20130425/bf5fb6f5/attachment.html>


More information about the postgis-users mailing list