Class Expression and Feature

Peter Jacobs peter.jacobs at vs42.nl
Fri Feb 18 07:24:56 PST 2000


Hello Stephen and others,

in reaction of the email I recieved from Stephen about how to put a
label on a street, I followed his advise on using the inline feature. It
doesn't seem to work tough.
Does anyone know what I did wrong

Regards,

Peter

Layer 
   Name Streets
   TYPE annotation
   CLASS
     SYMBOL 0
     EXPRESSION ('[TEXTSTRING]' ne 'mark')
     ...
   END
   CLASS
     SYMBOL 4
     SIZE 20
     EXPRESSION ('[TEXTSTRING]' eq 'mark')
     ...
   END
END

Layer 
   NAME StreetQuery
   TYPE ANNOTATION
   STAUS QUERYONLY
   QUERYITEM "TEXTSTRING"
   QUERY
     TEMPLATE
"../cgi-bin/mapserv?...&map_Streets_feature=new&map_Streets_points=[shpmidx]+[shpmidy]&map_Streets_feature_class=mark"
    END
END



More information about the MapServer-users mailing list