Opened 9 years ago

Closed 4 months ago

Last modified 4 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, 4 months ago

This is now fixed.

Version 0, edited 4 months ago by mdavis (next)

comment:2 by mdavis, 4 months ago

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