[QGIS-trac] [Quantum GIS] #3507: built-in spatialindex conflicts with external libspatialindex

Quantum GIS qgis at qgis.org
Sun Feb 20 02:10:18 EST 2011


#3507: built-in spatialindex conflicts with external libspatialindex
------------------------------------------------+---------------------------
   Reporter:  rustychris                        |              Owner:  borysiasty   
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  Python plugins and bindings       |            Version:  1.6.0        
   Keywords:  spatialindex                      |   Platform_version:  Kubuntu 10.10
   Platform:  Debian                            |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 libspatialindex is used by the python rtree module, but when this module
 is loaded from within a QGIS python plugin, the symbols from the builtin
 copy of spatialindex collide and render the python rtree module
 inoperable.

 How to reproduce:  install the rtree python module.  Start QGIS and open a
 python console:
 {{{
 >>> import rtree
 >>> p = rtree.index.Property()
 >>> p.set_storage(0)
 True
 >>> p.get_storage()
 1
 >>>
 }}}

 Stepping through in gdb shows that
 libspatialindex.so:Tools::PropertySet::getProperty is shadowed by a
 function of the same name in libqgis_core.so.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3507>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list