artemp/tickets2issues — Issue #386: load_map is silent when a PostGIS layer is used if the postgis input plugin is not found
Author: artemp
Created: 2011-10-11 15:14:20+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.