[mapserver-users] shapeObj mapscript comments

Michael Schulz mschulz at webgis.de
Tue Jun 4 08:02:34 PDT 2002


Hi,

i think you can set the class_index of a shapeObj like this (php-syntax):

$Shapeobj->set("classindex", $your_classindex_int);

HTH, Michael


imap at chesapeake.net schrieb:

> ok guys... using perl mapscript, still trying to fix
> a bunch of broken code after going to mapserv3.5,
> somewhere along the line
>
> shapeObj->draw(mapObj,layerObj,image,integer class_index,character text)
>
> changed to
>
> shapeObj->draw(mapObj,layerObj,image)
>
> My question here is... How do you classify the shape based on the classes
> defined for layerObj?  the shapeObj->draw() method is missing attributes,
> so any clue how to get around this?
>
> Regards,
>
> Chris Stuber (mapsurfer)
> Silicon Mapping Solutions

--
-----------------------------------------------------------
Michael Schulz                                in medias res
Dipl.-Geologe                              Gesellschaft für
                                Informationstechnologie mbH
                             Sautierstr. 38, 79104 Freiburg
                                     0761 55695-95 (Fax 96)
mschulz at webgis.de                             www.webgis.de







More information about the MapServer-users mailing list