Opened 9 years ago

Closed 3 months ago

Last modified 3 months ago

#3138 closed defect (fixed)

ST_OffsetCurve returns EMPTY line from non-empty input

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS GEOS
Component: postgis Version:
Keywords: Cc:

Description

If the line is short relatively to the offset, OffsetCurve can return EMPTY:

=# select ST_AsText(ST_OffsetCurve('LINESTRING(24 0,24.00001 0)'::geometry, 3));
LINESTRING(24 3,24.00001 3)
=# select ST_AsText(ST_OffsetCurve('LINESTRING(24 0,24.000001 0)'::geometry, 3));
LINESTRING EMPTY

Spotted here: https://github.com/azavea/nyc-trees/issues/1728

Change History (2)

comment:1 by mdavis, 3 months ago

This is now fixed.

select ST_AsText(ST_OffsetCurve('LINESTRING(24 0,24.000001 0)'::geometry, 3));
          st_astext           
------------------------------
 LINESTRING(24 3,24.000001 3)
Last edited 3 months ago by mdavis (previous) (diff)

comment:2 by mdavis, 3 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.