|
Revision 1032
(checked in by seang, 1 year ago)
|
Index intersects method now returns an index record (id, bounds). Update readme, docs, and version. Set EOL style to native
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
SpatialIndex: RTree-based index for Zope/Plone |
|---|
| 3 |
============================================== |
|---|
| 4 |
|
|---|
| 5 |
SpatialIndex is a specialized, local spatial index for Plone folders. The index |
|---|
| 6 |
is persisted in the filesystem alongside the ZODB. Also provided is a handler |
|---|
| 7 |
for content georeferencing events. |
|---|
| 8 |
|
|---|
| 9 |
Dependencies |
|---|
| 10 |
------------ |
|---|
| 11 |
See DEPENDENCIES.txt |
|---|
| 12 |
|
|---|
| 13 |
Usage |
|---|
| 14 |
----- |
|---|
| 15 |
Adapt a folder |
|---|
| 16 |
|
|---|
| 17 |
>>> index = ISpatialIndex(folder) |
|---|
| 18 |
|
|---|
| 19 |
Make a bounding box search and iterate over hits |
|---|
| 20 |
|
|---|
| 21 |
>>> hits = index.intersects((0.0, 0.0, 60.0, 60.0)) |
|---|
| 22 |
>>> for id, bounds in hits: |
|---|
| 23 |
... content = getattr(folder, id) |
|---|
| 24 |
... # act upon content |
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
Installation |
|---|
| 28 |
------------ |
|---|
| 29 |
Extract into your Products location. |
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
Support |
|---|
| 33 |
------- |
|---|
| 34 |
For current information about this project, see |
|---|
| 35 |
|
|---|
| 36 |
http://trac.gispython.org/projects/PrimaGIS/wiki/SpatialIndex |
|---|
| 37 |
|
|---|
| 38 |
If you have questions, please consider joining our software support list: |
|---|
| 39 |
|
|---|
| 40 |
http://lists.gispython.org/mailman/listinfo/community |
|---|
| 41 |
|
|---|