Do you mean to use JTS WKT reader...? As there doesn't appear to be  WKB reader. <br><a href="http://www.vividsolutions.com/jts/javadoc/index.html">http://www.vividsolutions.com/jts/javadoc/index.html</a><br>-dylan<br><br>
<div><span class="gmail_quote">On 11/16/06, <b class="gmail_sendername">Paul Ramsey</b> <<a href="mailto:pramsey@refractions.net">pramsey@refractions.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
None of the above. The fastest way is to use<br><br>encode(asbinary(the_geom),'base64')<br><br>when pulling the geometry, use Java's own base64 decoder and then the<br>JTS WKB reader.<br><br>Paul<br><br>Dylan Lorimer wrote:
<br>> Thanks Paul!<br>><br>> Last followup question:<br>><br>> Do you think, in your experience, that it is faster to go from PostGIS<br>> to JTS object via:<br>><br>> 1) casting binary PostGIS object to  PGgeometr and then parsing it to
<br>> create a JTS object<br>> 2) Using the JTS WKT Reader on the AsText(...) from the Spatial SQL?<br>><br>> Cheers,<br>> -dylan<br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> postgis-users mailing list<br>> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">
http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br><br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net
</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>E. Dylan Lorimer | Google Earth Enterprise
<br>650.253.2459 (O) | 650.862.6810 (M) | 650.644.0182 (F)<br>--------------------------------------------------------------------------------<br>Earth Enterprise Support: <a href="mailto:fusion@google.com">fusion@google.com
</a> | 866.4GO.OGLE ext. 4