Opened 12 years ago
Closed 12 years ago
#2169 closed defect (fixed)
ST_PointOnSurface gives EMPTY for non-empty line input
Reported by: | strk | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS GEOS |
Component: | postgis | Version: | 2.0.x |
Keywords: | Cc: |
Description
When passing a line with a single distinct point to ST_PointOnSurface you get an EMPTY back. Granted that we don't support invalid geometries, but it would be much more useful to just return _that_ point instead.
Note the discrepancy:
ST_PointOnSurface('LINESTRING(0 0, 10 0)'::geometry) -> POINT(0 0) ST_PointOnSurface('LINESTRING(0 0, 0 0)'::geometry) -> POINT EMPTY
Change History (3)
comment:1 by , 12 years ago
Milestone: | PostGIS 2.0.3 → PostGIS GEOS |
---|
comment:2 by , 12 years ago
This was fixed upstream. Let's keep this ticket open until GEOS-3.3.7 is out.
Note:
See TracTickets
for help on using tickets.
GEOS issue: http://trac.osgeo.org/geos/ticket/609