[mapserver-users] wms with gernerated Layers

Thomasch thomaschx at gmx.de
Thu Mar 18 00:13:35 PDT 2010


Hi,
at first thanks for your hint - I'm now trying to write a simple wrapper 
in PHP Mapscript But the follwoing simple Code doesn't work.
Unfortunately the example in 
http://www.mapserver.org/ogc/wms_server.html is in Python.

<?php
$myMap=ms_newMapObj('/home/thomas/public_html/wms/maps/wms.map');
$req = ms_newOwsrequestObj();
$req->loadParams();
$myMap->owsdispatch($req);

?>

The plain Call of GetCapabilities like 
http://myserver/cgi-bin/mapserv?map=/home/thomas/public_html/wms/maps/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities 
works fine.


Thomasch

Am 17.03.2010 03:01, Jeff McKenna wrote:
> Thomasch wrote:
>> Hi,
>> I've got an map which contains some generated Layers using PHP
>> Mapscript. How do I serve these Layers as wms?
>>
>> I read http://mapserver.org/ogc/mapscript.html but I don't really
>> understand at which place i could modify the map itself.
>>
>
> Hi Thomasch,
>
> For instructions on how to serve your mapfile through WMS, please see
> the WMS Server document: http://www.mapserver.org/ogc/wms_server.html
>
> The example in that document is probably most helpful:
> http://www.mapserver.org/ogc/wms_server.html#sample-wms-server-mapfile
>
> I hope this gets you going in the right direction.
>
> -jeff
>
>
>




More information about the MapServer-users mailing list