artemp/trac2github — Issue #605: Shapefile reader should throw an error (like postgis) if an attribute name is requested that does not exist in the dbf
Author: artemp
Created: 2011-10-09 20:43:41+00:00
State: open
Labels: Core_Library

As of Mapnik 0.7.0 the PostGIS plugin now throws a mapnik::datasource_exception when queries fail, and the majority of these errors will occurred when a Mapnik [wiki:Filter] referenced a non-existant attribute field.

We should likely mirror this behavior in other plugins, notably the shapfile plugin, which silently ignores attributes that are requested and do not exist.