artemp/trac2github — Issue #571: auto-indexing support
Author: artemp
Created: 2011-10-09 20:41:23+00:00
State: open
Labels: Core_Library

Each datasource could have a method to index, intelligently, its data

Idea would be to be able to do the same thing (for shapefiles) as the command line program 'shapeindex'

{{{
#!python
from mapnik import Shapefile
ds = Shapefile(file='test.shp')
options = { 'depth':8,'ratio':0.55 }
ds.index(**options) # would create test.index
ds.initialize() # would re-intitialize datasource to make use of file-based index
}}}