[osgeo4w-dev] [osgeo4w] #179: Add Python RTree to OSGEO4W

OSGeo4W trac_osgeo4w at osgeo.org
Mon Apr 7 08:56:48 PDT 2014

#179: Add Python RTree to OSGEO4W
Reporter:  davidfawcett  |       Owner:  osgeo4w-dev@…              
    Type:  enhancement   |      Status:  new                        
Priority:  minor         |   Component:  Package                    
 Version:                |    Keywords:  Rtree                      

Comment(by mlt):

 I recently had to install rtree into OSGeo4W64 myself. Note that one can
 install "properly" built python package EXEs with
 %OSGEO4W_ROOT%\apps\Python27\Scripts\easy_install.exe without registering
 OSGeo4W python. Also, if using OSGeo4W64, replace

     rt = _load_library('spatialindex_c.dll', ctypes.cdll.LoadLibrary)


     rt = _load_library('spatialindex_c-64.dll', ctypes.cdll.LoadLibrary)

 around line 95 in core.py from rtree so OSGeo4W64 version of SpatialLib is
 used instead of a bundled one that fails to load probably due to incorrect
 mvc[rp]90.dll on the PATH.

Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/179#comment:8>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

More information about the osgeo4w-dev mailing list