[Cartoweb-users] Querying database from mapfile expression

Oliver Christen oliver.christen at camptocamp.com
Mon Sep 15 03:17:53 EDT 2008


Hi

you can specify filters and expressions in your layers definition so you can display different class depending of specific values.

please see the mapserver documentation on the subject:

http://mapserver.gis.umn.edu/docs/howto/msexpressions
and since the server seems down, you can see the page via google cache
http://209.85.135.104/search?q=cache:noypLBtVHGYJ:mapserver.gis.umn.edu/docs/howto/msexpressions+mapserver+expression&hl=en&ct=clnk&cd=1&client=firefox-a

regards
Oliver
  ----- Original Message ----- 
  From: Broun Uganda 
  To: cartoweb-users at lists.maptools.org 
  Sent: Saturday, September 13, 2008 6:20 AM
  Subject: [Cartoweb-users] Querying database from mapfile expression


  I want to query the database and present data with different colours, sizes and labels, i gues this is done in the mapfile.
  For example in a table of junctions (points) have an attribute 'width'. So i want to say if width<=1.5 colour is 230 210 110, if 1.5>width<=5 colour 110 110 110 and width>5 colour 60 30 80. however if there are no junctions in any or all brackets just dont give me error. 
  For labels, Mouseover reveals the actual value of that junction.
  Equally say for contours i want to give a colour gredation i.e. read the lowest and highest elevation and present contours with different colours ranging from highest to lowest as a smooth colour variation. 
  Can i do these in the mapfile specification and how?

  Iam working with the edit plugin only.

  Thanks


  Broun Uganda



------------------------------------------------------------------------------
  Get news, entertainment and everything you care about at Live.com. Check it out! 


------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080915/4530242e/attachment-0001.html


More information about the Cartoweb-users mailing list