<b>(database geog_three, tutorial data) select asEWKB(setSRID(geog::geometry,-1), 'XDR') from airports;</b><div><b><br></b></div>asewkb<br><div><b><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-weight: normal; font-size: 11px; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">\00000000001c05d9a1b089a02754040f8c154c985f0</span></b></div>
<div><font class="Apple-style-span" face="arial, tahoma, verdana, helvetica, sans-serif, serif" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">\000000000014004727bb2fec56d4048810ff9724745</span></font></div>
<div><font class="Apple-style-span" face="arial, tahoma, verdana, helvetica, sans-serif, serif" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"></span></font><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 11px; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">\00000000001c035dce075f6fd224050083afb7e9100</span></div>
<div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 11px; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 11px; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">3 row(s)</span></div>
<div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 11px; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br>
</span></div><div><font class="Apple-style-span" face="arial, tahoma, verdana, helvetica, sans-serif, serif" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></font></div><div><br><div class="gmail_quote">On Sat, Nov 6, 2010 at 4:56 PM, strk <span dir="ltr"><<a href="mailto:strk@keybit.net">strk@keybit.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sat, Nov 06, 2010 at 01:44:12PM -0400, Sam Snellings wrote:<br>
> Thanks for the ::geometry tip.<br>
><br>
> (database geog_test, my data) *select count(asEWKB(location::geometry)) from<br>
> global_points;*<br>
><br>
> count: 1<br>
><br>
> (database geog_three, tutorial data) *select count(asEWKB(geog::geometry))<br>
> from airports;*<br>
><br>
> count: 3<br>
<br>
</div>The suggestion was due to the fact that pgsql2shp should be<br>
using that call. In particular:<br>
<br>
 asEWKB(setSRID("%s"::geometry, -1), 'XDR')<br>
<br>
Want to try that as well ?<br>
(substitute %s with the name of your geometry column)<br>
<div><div></div><div class="h5"><br>
--strk;<br>
<br>
  ()   Free GIS & Flash consultant/developer<br>
  /\   <a href="http://strk.keybit.net/services.html" target="_blank">http://strk.keybit.net/services.html</a><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" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>