Opened 4 years ago

#3138 new defect

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 (0)

Note: See TracTickets for help on using tickets.