[fdo-trac] #43: SHP, SDF: wrong results when quering multi polygons
FDO
trac_fdo at osgeo.org
Fri Mar 16 16:25:16 EDT 2007
#43: SHP, SDF: wrong results when quering multi polygons
----------------------------+-----------------------------------------------
Reporter: danstoica | Owner: danstoica
Type: defect | Status: new
Priority: major | Milestone: 3.3.0
Component: SHP Provider | Version: 3.2.0
Severity: 3 | Keywords:
External_id: |
----------------------------+-----------------------------------------------
A decision was previosly made to not alter the polygon returned from a shp
file.
As a result when reading, SHP provider never returns a MultiPolygon. They
are
all Polygons.
In consequence, when doing spatial queries on a Polygon (which is in fact
a
multipolygon) and the selected area in not inside the external ring or
touching
the ring's boundary, nothing will be returned.
The solution was fix the spatial query (not the reading). That is, before
passing the geometry to the spatial filter, the Polygon needs to be
checked and
see "Is this polygon actually a multipolygon?" If so, create a
multipolygon and
pass it down to the spatial filter instead.
The same applies to the SDF provider.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/43>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list