artemp/trac2github — Issue #450: PostGIS driver should check for existence of table by name
Author: artemp
Created: 2011-10-09 20:34:54+00:00
State: open
Labels: PostGIS_Input_Driver

Currently in trunk if you happen to misspell the name of a table and it does not exist you get a misleading error about a missing geometry column. We should catch this earlier.

In this case I misspelled planet_osm as osm_planet:

{{{
UserWarning: PostGIS Driver Error: Geometry column not specified or found in geometry_columns table: 'osm_planet_polygon'. Try setting the 'geometry_field' parameter or adding a proper geometry_columns record (encountered during parsing of layer 'leisure')
}}}