[PHP] on Mapserver and php5_MapScript

2009-01-09 Thread Eduardo Arévalo
 As I write this line is highlighted in black php5_MapScript


code in mapfile
LAYER
NAMEPeru_dep
DATAdepartamentos.shp
STATUS  ON
TYPEPOLYGON
CLASSITEM   NOMB_DEP

  CLASS
NAMELIMA
*EXPRESSION  /LIMA/*
STYLE
COLOR   200 150 2
OUTLINECOLOR0 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);


Re: [PHP] on Mapserver and php5_MapScript

2009-01-09 Thread Paul Scott

On Fri, 2009-01-09 at 14:15 -0500, Eduardo Arévalo wrote:
 As I write this line is highlighted in black php5_MapScript
 

You should probably ask this on the UMN Mapserver lists at
mapserver-us...@lists.osgeo.org but...
 ;
  $jStyle-outlinecolor-setRGB(200, 200, 200);

You are setting an outline colour, but the style you are using does not
allow it to be displayed. Basically all you are getting is the outline
and not the fill.

I suggest you read the excellent mapfile docs or ask on another list.

-- Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php