I didn't check the log, do you still need that to diagnose or did your second reply mean it's not necessary?<div><br></div><div><b>(database geog_three, tutorial data) select GeomFromEWKB(asEWKB(geog::geometry)) from airports;</b></div>
<div><br></div><div>0101000020E610000075029A081B9A5DC0F085C954C1F84040 </div><div>0101000020E61000006DC5FEB27B720440454772F90F814840 </div><div>0101000020E610000022FDF675E0DC35C000917EFB3A085040 </div><div><br></div><div>
all of which match the entries in the_geom for that table.</div><div><br></div><div><b>(database geog_three, tutorial data) select count(ST_isValid(geog::geometry)) from airports;</b></div><div><br></div><div>returns 3, the correct number of entries.</div>
<div><br></div><div><b>(database geog_three, tutorial data) select ST_isValidReason(geog::geometry) from airports;</b></div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><i>st_isvalidreason</i></span></div>
<div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Valid Geometry</span></div>
<div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Valid Geometry</span></div>
<div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Valid Geometry</span></div>
<div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 13px; -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"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Does an EWKB validator exist?</span></font></div>
<div><font class="Apple-style-span" face="arial, tahoma, verdana, helvetica, sans-serif, serif"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div>
<div><font class="Apple-style-span" face="arial, tahoma, verdana, helvetica, sans-serif, serif"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">-Sam</span></font></div>
<div><br><div class="gmail_quote">On Sun, Nov 7, 2010 at 4:15 AM, 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 Sun, Nov 07, 2010 at 09:58:02AM +0100, strk wrote:<br>
> On Sat, Nov 06, 2010 at 05:31:55PM -0400, Sam Snellings wrote:<br>
> > *(database geog_three, tutorial data) select<br>
> > asEWKB(setSRID(geog::geometry,-1), 'XDR') from airports;*<br>
> > *<br>
> > *<br>
> > asewkb<br>
> > *\00000000001c05d9a1b089a02754040f8c154c985f0*<br>
> > \000000000014004727bb2fec56d4048810ff9724745<br>
> > \00000000001c035dce075f6fd224050083afb7e9100<br>
><br>
> Can you check the postgrsql logs to confirm the dumper uses<br>
> _that_ query ?<br>
<br>
</div>Ah, figured !<br>
It's the _reader_ raising an error, not the output routing.<br>
I was confused by the fact that the dumper _now_ uses the<br>
shared parser library:<br>
<br>
result = serialized_lwgeom_from_hexwkb(&lwg_parser_result,<br>
hexewkb, PARSER_CHECK_ALL);<br>
<br>
So it is the dumper, not postgis, complaining about validity.<br>
You _might_ get the same result with:<br>
<br>
select GeomFromEWKB(asEWKB(%s::geometry));<br>
<br>
Your EWKB strings look weird, btw, have too few backslashes.<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>