artemp/trac2github — Issue #303: load_map is silent when a PostGIS layer is used if the postgis input plugin is not found
Author: artemp
Created: 2011-10-09 20:26:10+00:00
State: open
Labels: Core_Library

If you open an XML file with load_map and the file contains a layer with a Datasource of type 'postgis' and the postgis input plugin can't be found Mapnik will fail silently.

Instead, it should issue a UserWarning.

If you save the map out again as XML the Datasource declaration will also be missing in the saved file.

An example file is at source:trunk/tests/data/broken_maps/db_host_broken.xml@1084 and currently fails its unit test if Mapnik was compiled without the postgis input plugin.