[mapguide-trac] #172: Bug in Selection polygon from PostGiS (PostgreSql)

MapGuide Open Source trac_mapguide at osgeo.org
Tue Jun 12 10:27:38 EDT 2007


#172: Bug in Selection polygon from PostGiS (PostgreSql)
------------------------------------------+---------------------------------
 Reporter:  maciej.skorczewski at procad.pl  |         Owner:        
     Type:  defect                        |        Status:  closed
 Priority:  high                          |     Milestone:        
Component:  General                       |       Version:  1.2.0 
 Severity:  major                         |    Resolution:  fixed 
 Keywords:                                |   External_id:  939561
------------------------------------------+---------------------------------
Changes (by traianstanev):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 I have checked in a temporary fix for this. OGR was assuming a BBOX query
 if the intersection polygon is axis aligned. I simply warped the input
 rectangle by a tiny bit to make it non-aligned. This is enough to make OGR
 do real intersection.

 I think OGR should be fixed to only resort to BBOX query in case
 SetSpatialFilterRect is called. If SetSpatialFilter is called instead, and
 GEOS is available, OGR should not try to be smart about reducing the
 accuracy of the query by doing a BBOX check only.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/172#comment:13>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list