artemp/mapnik — Issue #145: Allow ability to set the shapefile datasource file attribute in Python Bindings
Author: artemp
Created: 2011-10-11 15:59:51+00:00
State: open
Labels: Core_Library

It is common to have relative paths in mapnik xml and then when the xml is called by scripts from different locations on the filesystem the path to the datasource is interpreted relative to the script not the actual XML, which breaks the ability to load the datasource.

Short of changing Mapnik to read the paths to datasources relative to the XML it would at least be extremely useful to be able to manipulate or (and in the example situation) fix the datasource path.

Related to: http://trac.mapnik.org/browser/trunk/bindings/python/mapnik_datasource.cpp#L90