[Mapserver-users] php_mapscript_41.dll problem
Mahalakshmi Narayanan
mhln25@yahoo.com
Wed, 7 Apr 2004 22:03:58 -0700 (PDT)
The thematic application using MapServer 3.6.4 and
PHP/MapScript 36 works alright. However, when we
tried to change the application for PHP/Mapscript 41,
we are facing problems. Colours are set properly but
the latest class alone is being displayed on the map
with the rest of features being shown with the default
color mentioned in the mapfile. I think we are having
problems in classes (moveup, etc..) The code which
opens the layer and class is followed with the code
that is repeated for each shapeid is attached below:
$layern = $gpoMap->GetLayerByName('Boundary');
$class=$layern->getClass(0);
$layern->open();
// loop thro each shapeid
$newsh=$layern->getShape(-1,$shapeid);
...
$class = ms_newClassObj($layern);
$style = ms_newStyleObj($class);
$style->color->setRGB($legarray1[0],$legarray1[1],$legarray1[2]);
//legarray1 has the colour chosen by the user for
the class
$style->outlinecolor->setRGB(0,0,0);
//$class->set("status", MS_ON);
$layern->moveclassup(1);
$newsh->draw($gpoMap,$layern,$image);
$shapeid++;
// end loop
Any help would be grately appreciated.
Thanks and regards,
Mahalakshmi Narayanan
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users