[postgis-users] ST_OffsetCurve

Martin Davis mtnclimb at gmail.com
Tue Mar 7 22:13:54 PST 2023


This is due to the way the new GEOS implementation of offset curve works.
It's a known issue, and a fix is underway.

See here for more details: https://github.com/locationtech/jts/pull/956

On Tue, Mar 7, 2023 at 8:55 PM Simon SPDBA Greener <simon at spdba.com.au>
wrote:

> SELECT POSTGIS_FULL_VERSION();
> "POSTGIS=""3.3.2 3.3.2"" [EXTENSION] PGSQL=""150""
> GEOS=""3.11.1-CAPI-1.17.1"" PROJ=""7.2.1"" LIBXML=""2.9.9""
> LIBJSON=""0.12"" LIBPROTOBUF=""1.2.1"" WAGYU=""0.5.0 (Internal)"""
>
> My linestring is not simple. It implements a simple loop. When I offset
> curve it I do not get returned any part of the loop. Any help appreciated.
>
> select ST_GeomFromEWKT('SRID=28356;LINESTRING(50 0,0 0,0 -10,10 -10,10
> 50)') as g
> UNION ALL
> select ST_OffsetCurve(ST_GeomFromEWKT('SRID=28356;LINESTRING(50 0,0 0,0
> -10,10 -10,10 50)'),1) as g
> UNION ALL
> select ST_OffsetCurve(ST_GeomFromEWKT('SRID=28356;LINESTRING(50 0,0 0,0
> -10,10 -10,10 50)'),-1) as g
>
> regards
> Simon
>
> --
> Simon Greener
> 39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia
> (m) +61 418 396 391
> (w) www.spdba.com.au
> (m) simon at spdba.com.au
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20230307/727aebcd/attachment.htm>


More information about the postgis-users mailing list