Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Drops the whole style or layer when a filter references a non-existent column #242

Closed
artemp opened this Issue · 5 comments

1 participant

@artemp
Owner

Mapnik SVN trunk appears to drop the whole style or even the whole layer when a filter references a non-existent column in a PostGIS DB. It should at least warn the user about that occurring, and maybe still try to render as much as possible from that style/layer.

(jonb helped me finding that out.)

@artemp
Owner

[springmeyer] pushing off to 0.6.1

@artemp
Owner

[Ldp] Perhaps something like an optional modifier on Filter, to control the behaviour, with the default being to throw an error?

So

[highway]='something' and [some_nonexistent_column] = 'some_value'

would then still succeed and only test for the first term.

@artemp
Owner

[springmeyer] ya, that seems like a good idea

@artemp
Owner

[springmeyer] moving to 0.6.2 for further discussion

@artemp
Owner

[springmeyer] what was actually failing was the postgis query.

now that error reporting/throwing has been in the postgis driver you'll get:

{{{
ERROR: column "foo" does not exist
LINE 1: SELECT AsBinary("geometry",'NDR') AS geom,"foo","region" fro...
^
Full sql was: 'SELECT AsBinary("geometry",'NDR') AS geom,"foo","region" from world_worldborders WHERE "geometry" && SetSRID('BOX3D(-180 -78.1219177246,180 83.6235961914)'::box3d, 4326)'
}}}

@artemp artemp closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.