[postgis-tickets] [PostGIS] #3579: Backend crash with mixed collections
PostGIS
trac at osgeo.org
Wed Jun 15 13:18:27 PDT 2016
#3579: Backend crash with mixed collections
---------------------+---------------------------
Reporter: pramsey | Owner: pramsey
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 2.2.3
Component: postgis | Version: 2.2.x
Keywords: |
---------------------+---------------------------
When called with a collection that include empty sub-components, the back-
end may crash
{{{
with
params as (
select
11 :: float as sidewalk_offset,
1 :: float as epsilon
),
road as (
-- L-shaped road, 10 m
select 'SRID=3857;LINESTRING(10 0, 0 0, 0 10)' :: geometry as geom
),
sidewalks as (
select ST_Collect(
ST_OffsetCurve(geom, sidewalk_offset),
ST_OffsetCurve(geom, -sidewalk_offset)
) geom
from road, params
)
select
ST_Intersects(road.geom, sidewalks.geom),
-- should be false
ST_Intersects(ST_Buffer(road.geom, sidewalk_offset + epsilon),
sidewalks.geom) -- should be true
from road, sidewalks, params;
}}}
Originally reported on github at
https://github.com/postgis/postgis/pull/105
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3579>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list