<div dir="ltr"><div>Hi Sandro,</div><div>thank you for your answer,</div><div>I'll upgrade my GEOS, but I work for a Public Administration and this process is slow.</div><div> </div><div>So I have Isolated the geometry wher St_OffsetCurve crash.</div>
<div>There are two type of geometries:</div><div> </div><div>1) Geometry with repeated points. I can solve the problem using: </div><div> St_OffsetCurve (ST_RemoveRepeatedPoints(geom), 10) </div><div> </div><div> </div><div>
2) Geomtery with repeated points but non consequential (see the .jpg)</div><div> </div><div>The geometry is </div><div>"0102000020BB0B000013000000F49BB3FCAA3037413033606B9C3253412FD60B7D61303741EDE29F4E9B3253416842DD0745303741DD30E3C89A3253417776B8621830374149B42AE399325341EDC13D130430374122AE490A983253415FAF500FFC2F37410A84A0DD943253415500A09BFE2F3741D62BEB178532534166ECD670FF2F3741F01372E67A3253417713ABF605303741CE2AF9FC77325341BBA13CB0283037415C422E6F713253410B10133F2E303741256D85F770325341A024E9F33330374115D50563713253414B75A9D4363037419868B9B8723253410DFDE549353037415AF87C3177325341CAF46320303037411170B9E88F325341536848BF2F30374135F86EA19532534180088DD2363037417D62C985983253416842DD0745303741DD30E3C89A3253412FD60B7D61303741EDE29F4E9B325341"</div>
<div> </div><div>(st_dumppoints(geom)).geom  give this output:</div><div> </div><div>1;"0101000020BB0B0000F49BB3FCAA3037413033606B9C325341"<br>2;"0101000020BB0B00002FD60B7D61303741EDE29F4E9B325341"<br>
3;"0101000020BB0B00006842DD0745303741DD30E3C89A325341"<br>4;"0101000020BB0B00007776B8621830374149B42AE399325341"<br>5;"0101000020BB0B0000EDC13D130430374122AE490A98325341"<br>6;"0101000020BB0B00005FAF500FFC2F37410A84A0DD94325341"<br>
7;"0101000020BB0B00005500A09BFE2F3741D62BEB1785325341"<br>8;"0101000020BB0B000066ECD670FF2F3741F01372E67A325341"<br>9;"0101000020BB0B00007713ABF605303741CE2AF9FC77325341"<br>10;"0101000020BB0B0000BBA13CB0283037415C422E6F71325341"<br>
11;"0101000020BB0B00000B10133F2E303741256D85F770325341"<br>12;"0101000020BB0B0000A024E9F33330374115D5056371325341"<br>13;"0101000020BB0B00004B75A9D4363037419868B9B872325341"<br>14;"0101000020BB0B00000DFDE549353037415AF87C3177325341"<br>
15;"0101000020BB0B0000CAF46320303037411170B9E88F325341"<br>16;"0101000020BB0B0000536848BF2F30374135F86EA195325341"<br>17;"0101000020BB0B000080088DD2363037417D62C98598325341"<br>18;"0101000020BB0B00006842DD0745303741DD30E3C89A325341"<br>
19;"0101000020BB0B00002FD60B7D61303741EDE29F4E9B325341" </div><div> </div><div> </div><div>You can see that n.3 and n.18 point have the same geometry.</div><div> </div><div> </div><div>You think that GEOS-3.3.9, or 3.4.2. solve this problem or this is a "bug" of the St_OffsetCurve.</div>
<div> </div><div>Thanks</div><div> </div><div>regards</div><div>fb</div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/4 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Oct 04, 2013 at 01:13:48PM +0200, franco base wrote:<br>
> I resum this post (new offset in my life).<br>
> I try the select on that geometry using<br>
><br>
> "POSTGIS="2.0.3 r11128" GEOS="3.3.8-CAPI-1.7.8" PROJ="Rel. 4.8.0, 6 March<br>
> 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.8.0"<br>
><br>
> LIBJSON="UNKNOWN" (core procs from "2.0.1 r9979" need upgrade) RASTER<br>
> (raster procs from "2.0.1 r9979" need upgrade)"<br>
><br>
><br>
> And the error is<br>
><br>
> ERROR: GEOSOffsetCurve: IllegalArgumentException: RobustDeterminant<br>
> encountered non-finite numbers SQL state: XX000.<br>
><br>
><br>
> Sandro I don't undesrtand if you have the same errror or if it works.<br>
<br>
</div>I haven't tried it, but I know there have been fixes in GEOS about that.<br>
Try with GEOS-3.3.9, or 3.4.2.<br>
Let us know.<br>
<br>
Besides, your postgis version string is telling you that the upgrade to<br>
2.0.3 wasn't completed successfully. See if you can find the scripts<br>
postgis_upgrade_20_minor.sql and rtpostgis_upgrade_20_minor.sql and load<br>
them both to fix that.<br>
<div class="HOEnZb"><div class="h5"><br>
--strk;<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">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-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>