Exception when rendering PostGIS layer with conditional CQL/SLD using decimal/float values for integer attribute

Description

When applying a conditional SLD rule or CQL filter of "population >= 2.0" for example, where "population" is an integer attribute of a PostGIS layer, GetMap requests fail with the following exception:

org.postgresql.util.PSQLException: ERROR: invalid input syntax for integer: "2.0"

Stack trace attached.

Environment

None

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure