R: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers

Giannini Pietro PGiannini at bytewise.it
Tue May 5 08:27:42 EDT 2009


Hi Zizu,
STATUS OFF on all the layers of your map.
To turn on:
    $layer = $map->getLayerByName('kerala');
    $layer->set('status', MS_ON);
    $image=$map->draw();
    $image_url=$image->saveWebImage();

bye
...................pg


________________________________________
Da: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] per conto di zizu [manojkapil06 at gmail.com]
Inviato: martedì 5 maggio 2009 12.59
A: mapserver-users at lists.osgeo.org
Oggetto: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers

Dear users,

I am using FGS-Mapserver, its a stand alone environment on fedora 9. i have
successfully play mapserver through cgi, there is absolutely no problem with
that. Now am trying to play PHP-Mapscript , example given in the tutorial.
The problem am encountering right now is when i run the php file through
browser

http://localhost:8080/mapfiles/sampletest/htdocs/test.php


Luckily the image colour of the map is displaying but the layers of the map
is not displaying...  herewith am attaching the screen shot of that page....
am also attaching both the map file and php file for your view.....

what could be a problem.....   please help me out..

tips will be appreciated....
http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png

http://n2.nabble.com/file/n2792269/test.map test.map

http://n2.nabble.com/file/n2792269/test.php test.php

many thanks,
zizu


--
View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2792269.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list