<div dir="ltr"><div><div><div><div>Or shapely, still in python.<br></div>You can also use Geos I guess, in C.<br><br></div>You can also go the command line way with ogr2ogr and gdal<br></div>(there are python and R binding).<br>
<br></div>I'm pretty sure you can find also web oriented parser.<br><div><div><div><br>Cheers,<br>Rémi-C<br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-01 14:38 GMT+02:00 Martijn Meijers <span dir="ltr"><<a href="mailto:b.m.meijers@tudelft.nl" target="_blank">b.m.meijers@tudelft.nl</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 07/01/2014 02:30 PM, Dmitry Dzhus wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a database table with a `geometry(POINT, 4326)` column.<br>
<br>
I need to decode its canonical text representation in the form of<br>
<br>
0101000020E61000008B20297D7CBF<u></u>5440B2A19BFD81834B40<br>
<br>
into its components 82.9919732, 55.0274045 *without* calling PostGIS<br>
functions like `st_x` and `st_y` (this is a limitation of the codebase<br>
I'm working with — canonical text is all I have).<br>
Could someone point me to any docs about the encoding details so<br>
that I could reimplement it?<br>
</blockquote>
<br></div>
It's hexadecimal form of Well Known Binary (see  "Simple Features Specification for SQL", and may be enriched with some specifics for postgis, such as srid).<br>
<br>
For a parsing implementation in Python see e.g.<br>
<br>
<a href="http://www.fabianowski.eu/projects/ppygis/" target="_blank">http://www.fabianowski.eu/<u></u>projects/ppygis/</a><span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Martijn<br>
<br>
-- <br>
Martijn Meijers<br>
<br>
mailto:<a href="mailto:b.m.meijers@tudelft.nl" target="_blank">b.m.meijers@tudelft.nl</a><br>
<a href="http://www.gdmc.nl/martijn" target="_blank">http://www.gdmc.nl/martijn</a><br>
<br>
GIS-technology<br>
Faculty of Architecture and the Built Environment<br>
Delft University of Technology</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-<u></u>bin/mailman/listinfo/postgis-<u></u>users</a></div></div></blockquote></div><br></div>