CLASSITEM + EXPRESSION

Hans Castorp hanscastorp76 at YAHOO.ES
Thu Dec 20 10:26:41 PST 2007


Hi to all,

 

I’m trying to filter a postgis layer using the statement EXPRESSION. I think
my configuration is fine but doesn’t works. 

Anyone of you detects any trouble on this LAYER statement:

 

LAYER

                        CONNECTION "host=localhost dbname=lalin user=???
password=??? port=5432"

                        DATA "the_geom FROM usos_suelo"

                        NAME 'USOS SUELO'

                        GROUP 'USOS SUELO'

                        TYPE polygon

                        STATUS ON

                        TRANSPARENCY 0

 

                        CLASSITEM 'clase'

                        

                        CLASS

                                   NAME 'USOS_ARBORES'

                                   MINSCALE 2500

                                   MAXSCALE 200000

                                   EXPRESSION ('[clase]' = 'ARBORES')

                                   STYLE

                                               ANTIALIAS false

                                               COLOR 162 204 155

                                   END #end style

                        END # end class

                        

                        CLASS

                                   NAME 'USOS_CULTIVOS'

                                   MINSCALE 2500

                                   MAXSCALE 200000

                                   EXPRESSION ('[clase]' = 'CULTIVOS')

                                   STYLE

                                               ANTIALIAS false

                                               COLOR 224 224 224

                                   END #end style

                        END # end class

                        

                        CLASS

                                   NAME 'USOS_ASENTAMENTOS'

                                   MINSCALE 2500

                                   MAXSCALE 200000

                                   EXPRESSION ('[clase]' = 'ASENTAMENTOS')

                                   STYLE

                                               ANTIALIAS false

                                               COLOR 204 204 204

                                   END #end style

                        END # end class

            END #end layer

 

 

Thanks in advance. I think I’m going crazy with this piece of code.

 

P.S. Of course, I’m sure that ‘clase’ is a column on ‘usos_suelo’ postgis
table ;)

 

 

 

Hans Castorp

 


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.17.5/1190 - Release Date: 19/12/2007
19:37
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20071220/8771e8f9/attachment.htm>


More information about the MapServer-users mailing list