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

zizu manojkapil06 at gmail.com
Tue May 5 06:41:06 PDT 2009


Hi pietro,

could you please tell me how to add the layers with the following code...

  $layer = $map->getLayerByName('kerala')
>
> ;
>     $layer->set('status', MS_ON);
>     $image=$map->draw();
>     $image_url=$image->saveWebImage();


many thanks,
zizu


On Tue, May 5, 2009 at 7:01 PM, kapil manoj <manojkapil06 at gmail.com> wrote:

> Hi pietro,
>
> Thank you so much...  now its works fine......
>
>
> On Tue, May 5, 2009 at 6:07 PM, Pietro Giannini (via Nabble) <
> ml-user+94644-1894679202 at n2.nabble.com<ml-user%2B94644-1894679202 at n2.nabble.com>
> > wrote:
>
>> 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 ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2793318&i=0>[
>> mapserver-users-bounces at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2793318&i=1>]
>> per conto di zizu [manojkapil06 at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2793318&i=2>]
>>
>> Inviato: martedì 5 maggio 2009 12.59
>> A: mapserver-users at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2793318&i=3>
>> 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 ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2793318&i=4>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2793318&i=5>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>> ------------------------------
>>  This email is a reply to your post @
>> http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2793318.html
>> You can reply by email or by visting the link above.
>>
>>
>

-- 
View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2794973.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090505/7041846c/attachment.htm>


More information about the MapServer-users mailing list