[MAPSERVER-USERS] Displaying points & labels

Josh Hevenor jhevenor at rogers.com
Sat May 31 12:46:43 EDT 2008


I'm not sure if you got a response to this yet. You'll want to take a 
look at the CLASSITEM setting for the Layer object and the EXPRESSION 
setting for the Class object. See the documentation for details.

http://mapserver.gis.umn.edu/docs/reference/mapfile/layer
http://mapserver.gis.umn.edu/docs/reference/mapfile/class

A modified version of your mapfile snipped would look like:

LAYER
    NAME "MyAqui"
    STATUS DEFAULT
    TYPE POINT
    CONNECTIONTYPE OGR  
    CONNECTION "aquidata.ovf"
    DATA "data"
    CLASSITEM "SPECIFIC"
    CLASS 
       	NAME "Bad"
	EXPRESSION "bad"	
           STYLE
               SYMBOL 'circle'
               SIZE 15
               COLOR 255 0 0
           END
    END
    CLASS 
       	NAME "Good"
	EXPRESSION "good"	
           STYLE
               SYMBOL 'circle'
               SIZE 15
               COLOR 0 0 255
           END
    END
    CLASS 
       	NAME "Excellent"
	EXPRESSION "excellent"	
           STYLE
               SYMBOL 'circle'
               SIZE 15
               COLOR 0 255 0
           END
    END
END

Hope that helps, 

Josh Hevenor






More information about the mapserver-users mailing list