[postgis-users] ST_OffsetCurve

Simon SPDBA Greener simon at spdba.com.au
Tue Mar 7 20:03:57 PST 2023


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	



More information about the postgis-users mailing list