[postgis-users] ST_OffsetCurve

Simon Greener simon at spdba.com.au
Tue Mar 7 23:51:18 PST 2023


Thanks Martin.
I guess I'll just have to wait till the fix appears in PostGIS.
Simon

⁣39 Cliff View Drive
Allens Rivulet Tas 7150
(W) 0418 396 391​

On 8 Mar 2023, 17:15, at 17:15, Martin Davis <mtnclimb at gmail.com> wrote:
>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
>>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>postgis-users mailing list
>postgis-users at lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/postgis-users



More information about the postgis-users mailing list