on Mapserver and php5_MapScript

From: Date: Fri, 09 Jan 2009 19:15:51 +0000
Subject: on Mapserver and php5_MapScript
Groups: php.general 
Request: Send a blank email to php-general+get-285890@lists.php.net to get a copy of this message
As I write this line is highlighted in black php5_MapScript code in mapfile LAYER NAME Peru_dep DATA "departamentos.shp" STATUS ON TYPE POLYGON CLASSITEM NOMB_DEP CLASS NAME "LIMA" *EXPRESSION /LIMA/* STYLE COLOR 200 150 2 OUTLINECOLOR 0 0 0 END END y los quiero pasar a PHP version php coce // Creamos un Layer dentro de nuestro MapObj y seteamos sus propiedades $jLayer = ms_newLayerObj($jMap); $jLayer->set( "name", "Peru_dep"); $jLayer->set( "type", MS_LAYER_POLYGON); $jLayer->set( "status", MS_ON); $jLayer->set( "data", "departamentos.shp"); $jLayer->set( "classitem", "NOMB_DEP"); //Creamos un classObj dentro del LayerObj $jClass = ms_newClassObj($jLayer); $jClass->set( "name", "LIMA"); *$jClass->set( "Expression", "/LIMA/");* //Creamos un styleObj dentro del classObj $jStyle = ms_newStyleObj($jClass); $jStyle->color->setRGB(200, 150, 2); $jStyle->outlinecolor->setRGB(200, 200, 200);

« previous php.general (#285890) next »