RtreeR-Tree spatial index for Python GIS | |
Download |
Rtree Ranking & Summary
Advertisement
- License:
- LGPL
- Price:
- FREE
- Publisher Name:
- Sean Gillies
- Publisher web site:
- http://plone.org/products/pleiadesgeocoder
Rtree Tags
Rtree Description
R-Tree spatial index for Python GIS Whether for in-memory feature stores, Plone content, or whatever -- we need an index to speed up the search for objects that intersect with a spatial bounding box.Index ProtocolIn a nutshell:>>> from rtree import Rtree>>> index = Rtree()>>> index.add(id=id, bounds=(left, bottom, right, top))>>> This resembles a subset of the set protocol. add indexes a new object by id, intersection returns an iterator over ids where the node containing the id intersects with the specified bounding box. The intersection method is exact, with no false positives and no missed data. Ids can be long ints or ints; index queries return long ints. Requirements: · Python
Rtree Related Software