[mapserver-users] mapscript woes

Attila Csipa attila at prometheus.org.yu
Thu Nov 28 10:21:25 EST 2002


What am I doing wrong ? The added layer causes the PHP process to exit when I 
call $map->draw; The same setup (except for the color handling which changed 
in 3.7) under mapserver 3.6.3 worked fine.

On a side note, if I try to change the color of a layer, I get the following 
message on the ms_newStyleObj constructor:
Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0

I would really appreciate any help since I'm a bit stuck here :(


$map = ms_newMapObj('data/subotica_test.map');
$map->set('name','subotica');
$map->set('width',600);
$map->set('height',600);
$map->setextent(398440.8, 101396.2, 410772.8, 113716.2);
$map->web->set('imagepath' , '/var/www/html/gis/tmp/');
$map->web->set('imageurl' , '../tmp/');
$layer = ms_newLayerObj($map);
$layer->set("data", "vodovod");
$layer->set('type', MS_LAYER_LINE);
$layer->set("name", "vodovod");
$layer->set("status", MS_ON);
$class = ms_newClassObj($layer);
$style = ms_newStyleObj($class);
$style->color->setRGB(150, 100, 0);
$style->outlinecolor->setRGB(0, 0, 0);



More information about the mapserver-users mailing list