accessing postgis colum type as integers instead of strings

Gregor Mosheh gregor at HOSTGIS.COM
Sat Dec 23 11:16:14 EST 2006


> My problem is that the data type being accessed is a integer and it
> seems to be impossible to compare this value as a number instead of a
> string in an EXPRESSION statment  any suggestions?

Are you sure you're using the proper comparison operator and syntax?
What's in your mapfile?

String comparison:
EXPRESSION ( "[population]" > "1000000" )

Numeric comparison:
EXPRESSION ( [population] > 1000000 )



More information about the mapserver-users mailing list