Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#4772 closed defect (fixed)

Union of two layers may contain features with empty geometries

Reported by: Ari Jolma Owned by: Ari Jolma
Priority: low Milestone: 1.10.0
Component: OGR_SF Version: svn-trunk
Severity: trivial Keywords:
Cc:

Description

A union of a layer with one polygon and a layer with one point within the polygon results in a layer with three features: point, polygon, and an empty geometrycollection. Should the geometrycollection be discarded from the result?

Change History (2)

comment:1 by Even Rouault, 11 years ago

Resolution: fixed
Status: newclosed

r25427 ogr/ogrsf_frmts/generic/ogrlayer.cpp ../autotest/ogr/ogr_layer_algebra.py -m "OGRLayer: Identity(), Union() and Intersect(): avoid creating features with null or empty geometry; when intersecting 2 polygons, do not consider a point or linear intersection as a valid one (#4772)"

comment:2 by Even Rouault, 11 years ago

r25428 ogr/ogrsf_frmts/generic/ogrlayer.cpp ../autotest/ogr/ogr_layer_algebra.py -m "OGRLayer: Update(): avoid creating features with null or empty geometry (#4772)"

Note: See TracTickets for help on using tickets.