mapnik-org/mapnik — Issue #568: auto-indexing support
Author: artemp
Created: 2011-10-11 08:02:34+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
}}}