<div dir="ltr">This is due to the way the new GEOS implementation of offset curve works. It's a known issue, and a fix is underway. <div><br></div><div>See here for more details: <a href="https://github.com/locationtech/jts/pull/956">https://github.com/locationtech/jts/pull/956</a> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 7, 2023 at 8:55 PM Simon SPDBA Greener <<a href="mailto:simon@spdba.com.au">simon@spdba.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">SELECT POSTGIS_FULL_VERSION();<br>
"POSTGIS=""3.3.2 3.3.2"" [EXTENSION] PGSQL=""150"" <br>
GEOS=""3.11.1-CAPI-1.17.1"" PROJ=""7.2.1"" LIBXML=""2.9.9"" <br>
LIBJSON=""0.12"" LIBPROTOBUF=""1.2.1"" WAGYU=""0.5.0 (Internal)"""<br>
<br>
My linestring is not simple. It implements a simple loop. When I offset <br>
curve it I do not get returned any part of the loop. Any help appreciated.<br>
<br>
select ST_GeomFromEWKT('SRID=28356;LINESTRING(50 0,0 0,0 -10,10 -10,10 <br>
50)') as g<br>
UNION ALL<br>
select ST_OffsetCurve(ST_GeomFromEWKT('SRID=28356;LINESTRING(50 0,0 0,0 <br>
-10,10 -10,10 50)'),1) as g<br>
UNION ALL<br>
select ST_OffsetCurve(ST_GeomFromEWKT('SRID=28356;LINESTRING(50 0,0 0,0 <br>
-10,10 -10,10 50)'),-1) as g<br>
<br>
regards<br>
Simon<br>
<br>
-- <br>
Simon Greener<br>
39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia<br>
(m) +61 418 396 391<br>
(w) <a href="http://www.spdba.com.au" rel="noreferrer" target="_blank">www.spdba.com.au</a><br>
(m) <a href="mailto:simon@spdba.com.au" target="_blank">simon@spdba.com.au</a> <br>
<br>
_______________________________________________<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="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>