Re: [Geoserver-users] PropertyIsNotEqualTo

2011-02-12 Thread Andrea Aime
On Fri, Feb 11, 2011 at 11:54 PM, Fernando Barbat fbar...@gmail.com wrote: I looked at Postgres log and if I'm not missing something, this is the query: SELECT gid,name,area,encode(asBinary(force_2d(the_geom),'XDR'),'base64') as the_geom FROM states WHERE the_geom GeomFromText('POLYGON

[Geoserver-users] PropertyIsNotEqualTo

2011-02-11 Thread Fernando Barbat
Hi, I'm using GeoServer 2.0.2. I want to use a PropertyIsNotEqualTo in SLD referring to Double field. If the literal is an integer value -it ends with .0-, the comparison always returns false. Geoserver is probably using a String comparison instead of a Double comparison. This problem doesn't

Re: [Geoserver-users] PropertyIsNotEqualTo

2011-02-11 Thread Justin Deoliveira
What is the type of the area attribute? GeoServer does not do a straight string comparison. It attempts to convert the value according of the type of the attribute. I have seen this case where the attribute type is an integer and the value is a double specified in this way. So even though 530

Re: [Geoserver-users] PropertyIsNotEqualTo

2011-02-11 Thread Andrea Aime
On Fri, Feb 11, 2011 at 6:01 PM, Fernando Barbat fbar...@gmail.com wrote: You're right. The column in PostGIS is numeric(10,0) so it is an Integer. However, GeoServer detects it just as a BigDecimal (that's what the admin interface says in the layer configuration) and that's why I was using a

Re: [Geoserver-users] PropertyIsNotEqualTo

2011-02-11 Thread Fernando Barbat
I looked at Postgres log and if I'm not missing something, this is the query: SELECT gid,name,area,encode(asBinary(force_2d(the_geom),'XDR'),'base64') as the_geom FROM states WHERE the_geom GeomFromText('POLYGON ((-7134402.895051801 -4322800.136486195, -7134402.895051801 -3351652.113513805,