mapnik-org/mapnik — Issue #172: Better exception handling for shape.input
Author: artemp
Created: 2011-10-11 07:40:07+00:00
State: open
Labels: Shapefile_Input_Driver

When shapefile datasources are not found, or unreadable do to permissions, mapnik simply outputs 'got exception' which is often missed in apache logs or terminal output.

It would both be ideal to have more explicit human error output for different exceptions here as well as throwing an exception if a datasource is not found.

Throwing an exception may be non-ideal for users of large stylesheets with many shapefiles, so fixing Ticket #153 in tandem with throwing an exception would be useful.

relevant code: source:trunk/plugins/input/shape/shape.cpp#L90

Also, any more nuanced exception handling should likely be mirrored here: source:trunk/plugins/input/gdal/gdal_datasource.cpp#L49