[mapserver-users] defining classes with PHP/MapScript
Nicolau Werneck
nwerneck at yahoo.com.br
Mon Nov 26 11:06:44 PST 2001
Hello.
I'm trying to define a class with PHP/MapScript But
it's not working. I Can color Camboja from the Map
file, but Brasil doesn't get to it... What can it be!?
thanks...
++Nicolau
---PHP
$map = ms_newMapObj("tmapa.map");
$cla = ms_newClassObj($map->getLayer(2));
$cla->setexpression("Brasil");
$cla->set("color", "255 255 255");
$mapimg = $map->draw();
---MAP
LAYER NAME empresas DATA MapaMundi TYPE
polygon STATUS default
CLASSITEM 'NOMEPAIS'
CLASS EXPRESSION 'Camboja' COLOR 255
255 255 END
END
_______________________________________________________________________________________________
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil e grátis!
http://br.geocities.yahoo.com/
More information about the MapServer-users
mailing list