[Mapserver-users] WMS

Stefan Schwarzer stefan.schwarzer at grid.unep.ch
Tue Mar 11 07:02:28 PST 2003


--=====================_114741739==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Ed,

no, I am getting no more errors. The layer just does not appear. The layer 
is turned on, and as you said, not only because of STATUS ON, but in my PHP 
script I tell explicitly to turn it on again (actually after turning all 
layers off):

$mapLayer = $map -> getlayerbyname("test");
$mapLayer -> set("status", 1);

Where does the "wms_title" refer to? Should it have the same title as the 
WMS service layer? What is TYPE in this case? Originally it's a POINT 
shapefile, but now it would be anyway a raster/image, no? When I try to 
display the layer locally, everything turns up nicely.

LAYER
         NAME 'test'
         METADATA
                 'wms_title' 'test'
                 'wms_srs' 'epsg:4326'
                 'wms_connectiontimeout' '1000'
         END
         TYPE POINT
         STATUS ON
         CONNECTIONTYPE WMS
         CONNECTION 
'http://gridss.grid.unep.ch/cgi-bin/mapserv_client?map=e%3A%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&WMTVER=1.0.0&LAYERS=people&FORMAT=PNG&TRANSPARENT=TRUE'
END


Ciao,

Stefan


>Stefan -
>
>You can certainly  use multiple local and remote layers.
>
>Now that the PROJ problem is fixed, are you getting any errors?  Is the 
>layer simply not appearing?  Is the layer turned on (STATUS ON isn't enough)?
>
>     - Ed
>-----Original Message-----
>From: Stefan Schwarzer [mailto:stefan.schwarzer at grid.unep.ch]
>Sent: Tuesday, March 11, 2003 9:36 AM
>To: Ed McNierney; mapserver-users at lists.gis.umn.edu
>Subject: RE: [Mapserver-users] WMS
>
>Ed,
>
>thanks for the quick answer. But the answer is: yes... As the WMS service 
>from where I want to retrieve a layer, does for sure work as it has been 
>implemented into another application, the problem can hardly be on this 
>side. I think, something is wrong on the map-file side. As the BBox and 
>other parameters are produced automatically by MapServer, the URL used in 
>the CONNECTION line below should be correct...
>
>Just to be sure: Can I have a map-file with multiple local layers, which 
>are accessed normally, and in addition a couple of WMS layers, accessed as 
>shown below? I was just wondering if MapServer would be capable of merging 
>then two, three or four different images, as each WMS service sends its 
>own image back. I know that I can overlay different requests and thus 
>images using simple HTML code, but I am not so sure about the method I 
>just wanted to implement. Stupid question? Hmmm...
>
>Ciao,
>
>Stefan
>
>
>>Stefan -
>>
>>We don't know what your data are, so we can't tell whether the metadata 
>>(the projection in particular) are correct - you need to check that.  You 
>>also need to be requesting map extents (the WMS BBox) in coordinates that 
>>match both the projection of your map and the extents of your data.
>>
>>     - Ed
>>
>>Ed McNierney
>>President and Chief Mapmaker
>>TopoZone.com / Maps a la carte, Inc.
>>73 Princeton Street, Suite 305
>>North Chelmsford, MA  01863
>>ed at topozone.com
>>(978) 251-4242
>>-----Original Message-----
>>From: Stefan Schwarzer [mailto:stefan.schwarzer at grid.unep.ch]
>>Sent: Tuesday, March 11, 2003 9:11 AM
>>To: mapserver-users at lists.gis.umn.edu
>>Subject: RE: [Mapserver-users] WMS
>>
>>Hi all,
>>thanks for the input. Right, after setting an environment variable the 
>>ugly warning disappeared.
>>But I have still the problem that the WMS layer is not showing up. Any 
>>hints into this direction? Are the Metadata in the Layer definition 
>>correct? Do I have to define anything else in the mapfile? [I am working 
>>with MapScript, v3.5]
>>Thanks,
>>Stefan
>>
>>
>>>Stefan -
>>>
>>>Marc's response is correct; you will find information about this problem 
>>>in the "FAQ / Common Problems" section of the WMS Server page at 
>>><http://mapserver.gis.umn.edu/doc/wms-server-howto.html>http://mapserver.gis.umn.edu/doc/wms-server-howto.html
>>>
>>>     - Ed
>>>
>>>Ed McNierney
>>>President and Chief Mapmaker
>>>TopoZone.com / Maps a la carte, Inc.
>>>73 Princeton Street, Suite 305
>>>North Chelmsford, MA  01863
>>>ed at topozone.com
>>>(978) 251-4242
>>>-----Original Message-----
>>>From: Stefan Schwarzer [mailto:stefan.schwarzer at grid.unep.ch]
>>>Sent: Tuesday, March 11, 2003 4:09 AM
>>>To: mapserver-users at lists.gis.umn.edu
>>>Subject: [Mapserver-users] WMS
>>>
>>>Hi all,
>>>after spending quite some time on this WMS query subject, I am getting a 
>>>bit frustrated. I read (almost?) all info on this subject. But still I 
>>>don't succeed.
>>>In the moment my computer is nerving me with this message:
>>>Warning: MapServer Error in msProcessProjection(): no system list, 
>>>errno: 2 in e:\inetpub\wwwroot\geo_map\map.php on line 275
>>>Ok, I know, this is related to the projection list. But: all my other 
>>>services (local and WMS-server) are running quite well. So I don't 
>>>understand why it's coming up with this message. Below the Layer 
>>>definition I use. Any ideas?
>>>Stefan
>>>LAYER
>>>         NAME "test"
>>>         METADATA
>>>                 "wms_title" "test"
>>>                 "wms_srs" "epsg:4326"
>>>                 "wms_connectiontimeout" "1000"
>>>         END
>>>         TYPE RASTER
>>>         STATUS ON
>>>         CONNECTIONTYPE WMS
>>>         CONNECTION 
>>> "http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=e%3A%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&WMTVER=1.0.0&LAYERS=people&FORMAT=PNG&TRANSPARENT=TRUE" 
>>>
>>>END
>>>         _______________________________________
>>>
>>>         Stefan Schwarzer
>>>         Consultant on GEO
>>>         UNEP/DEWA/GRID-Geneva
>>>         Chemin des Anemones 11
>>>         CH - 1219 Chatelaine
>>>         Switzerland
>>>         Tel: (+41) 22.917.83.49
>>>         Fax: (+41) 22.917.80.29
>>>         Email: stefan.schwarzer at grid.unep.ch
>>>         Internet: http://geodata.grid.unep.ch/
>>>         _______________________________________
>>
>>         _______________________________________
>>
>>         Stefan Schwarzer
>>         Consultant on GEO
>>
>>         UNEP/DEWA/GRID-Geneva
>>         Chemin des Anemones 11
>>         CH - 1219 Chatelaine
>>         Switzerland
>>
>>         Tel: (+41) 22.917.83.49
>>         Fax: (+41) 22.917.80.29
>>
>>         Email: stefan.schwarzer at grid.unep.ch
>>         Internet: http://geodata.grid.unep.ch/
>>         _______________________________________
>
>         _______________________________________
>
>         Stefan Schwarzer
>         Consultant on GEO
>
>         UNEP/DEWA/GRID-Geneva
>         Chemin des Anemones 11
>         CH - 1219 Chatelaine
>         Switzerland
>
>         Tel: (+41) 22.917.83.49
>         Fax: (+41) 22.917.80.29
>
>         Email: stefan.schwarzer at grid.unep.ch
>         Internet: http://geodata.grid.unep.ch/
>         _______________________________________

         _______________________________________

         Stefan Schwarzer
         Consultant on GEO

         UNEP/DEWA/GRID-Geneva
         Chemin des Anemones 11
         CH - 1219 Chatelaine
         Switzerland

         Tel: (+41) 22.917.83.49
         Fax: (+41) 22.917.80.29

         Email: stefan.schwarzer at grid.unep.ch
         Internet: http://geodata.grid.unep.ch/
         _______________________________________ 
--=====================_114741739==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
<font size=3>Ed,<br><br>
no, I am getting no more errors. The layer just does not appear. The
layer is turned on, and as you said, not only because of STATUS ON, but
in my PHP script I tell explicitly to turn it on again (actually after
turning all layers off):<br><br>
$mapLayer = $map -> getlayerbyname("test");<br>
$mapLayer -> set("status", 1);<br><br>
Where does the "wms_title" refer to? Should it have the same
title as the WMS service layer? What is TYPE in this case? Originally
it's a POINT shapefile, but now it would be anyway a raster/image, no?
When I try to display the layer locally, everything turns up
nicely.<br><br>
LAYER<br>
<x-tab>        </x-tab>NAME
'test'<br>
<x-tab>        </x-tab>METADATA<br>
<x-tab>        </x-tab><x-tab>        </x-tab>'wms_title'
'test'<br>
<x-tab>        </x-tab><x-tab>        </x-tab>'wms_srs'
'epsg:4326'<br>
<x-tab>        </x-tab><x-tab>        </x-tab>'wms_connectiontimeout'
'1000'<br>
<x-tab>        </x-tab>END<br>
<x-tab>        </x-tab>TYPE
POINT<br>
<x-tab>        </x-tab>STATUS
ON<br>
<x-tab>        </x-tab>CONNECTIONTYPE
WMS<br>
<x-tab>        </x-tab>CONNECTION
'<a href="http://gridss.grid.unep.ch/cgi-bin/mapserv_client?map=e%3A%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&WMTVER=1.0.0&LAYERS=people&FORMAT=PNG&TRANSPARENT=TRUE" eudora="autourl">http://gridss.grid.unep.ch/cgi-bin/mapserv_client?map=e%3A%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&WMTVER=1.0.0&LAYERS=people&FORMAT=PNG&TRANSPARENT=TRUE</a>'<br>
END<br><br>
<br>
Ciao,<br><br>
Stefan<br><br>
<br>
</font><blockquote type=cite class=cite cite><font face="arial" size=2 color="#0000FF">Stefan
-</font><font size=3><br>
 <br>
</font><font face="arial" size=2 color="#0000FF">You can certainly 
use multiple local and remote layers.</font><font size=3><br>
 <br>
</font><font face="arial" size=2 color="#0000FF">Now that the PROJ
problem is fixed, are you getting any errors?  Is the layer simply
not appearing?  Is the layer turned on (STATUS ON isn't
enough)?</font><font size=3><br>
 <br>
</font><font face="arial" size=2 color="#0000FF">    -
Ed</font><font size=3><br>
</font>
<dl>
<dd><font face="tahoma" size=2>-----Original Message-----<br>

<dd>From:</b> Stefan Schwarzer
[<a href="mailto:stefan.schwarzer at grid.unep.ch" eudora="autourl">mailto:stefan.schwarzer at grid.unep.ch</a>]<br>

<dd>Sent:</b> Tuesday, March 11, 2003 9:36 AM<br>

<dd>To:</b> Ed McNierney; mapserver-users at lists.gis.umn.edu<br>

<dd>Subject:</b> RE: [Mapserver-users] WMS<br><br>
</font>
<dd><font size=3>Ed,<br><br>

<dd>thanks for the quick answer. But the answer is: yes... As the WMS
service from where I want to retrieve a layer, does for sure work as it
has been implemented into another application, the problem can hardly be
on this side. I think, something is wrong on the map-file side. As the
BBox and other parameters are produced automatically by MapServer, the
URL used in the CONNECTION line below should be correct...<br><br>

<dd>Just to be sure: Can I have a map-file with multiple local layers,
which are accessed normally, and in addition a couple of WMS layers,
accessed as shown below? I was just wondering if MapServer would be
capable of merging then two, three or four different images, as each WMS
service sends its own image back. I know that I can overlay different
requests and thus images using simple HTML code, but I am not so sure
about the method I just wanted to implement. Stupid question?
Hmmm...<br><br>

<dd>Ciao,<br><br>

<dd>Stefan<br><br>
<br>
</font><blockquote type=cite class=cite cite>
<dd><font face="arial" size=2 color="#0000FF">Stefan
-</font><font size=3><br>

<dd> <br>
</font>
<dd><font face="arial" size=2 color="#0000FF">We don't know what your
data are, so we can't tell whether the metadata (the projection in
particular) are correct - you need to check that.  You also need to
be requesting map extents (the WMS BBox) in coordinates that match both
the projection of your map and the extents of your
data.</font><font size=3><br>

<dd> <br>

<dd>    </font><font face="arial" size=2 color="#0000FF">-
Ed</font><font size=3><br><br>
</font>
<dd><font size=2>Ed McNierney<br>

<dd>President and Chief Mapmaker<br>

<dd>TopoZone.com / Maps a la carte, Inc.<br>

<dd>73 Princeton Street, Suite 305<br>

<dd>North Chelmsford, MA  01863<br>

<dd>ed at topozone.com<br>

<dd>(978) 251-4242 </font>
<dd><font face="tahoma" size=2>-----Original Message-----
<dd>From: Stefan Schwarzer
[<a href="mailto:stefan.schwarzer at grid.unep.ch" eudora="autourl">mailto:stefan.schwarzer at grid.unep.ch</a>]
<dd>Sent: Tuesday, March 11, 2003 9:11 AM
<dd>To: mapserver-users at lists.gis.umn.edu
<dd>Subject: RE: [Mapserver-users] WMS<br><br>
</font>
<dd><font size=3>Hi all,<br>

<dd>thanks for the input. Right, after setting an environment variable
the ugly warning disappeared.<br>

<dd>But I have still the problem that the WMS layer is not showing up.
Any hints into this direction? Are the Metadata in the Layer definition
correct? Do I have to define anything else in the mapfile? [I am working
with MapScript, v3.5]<br>

<dd>Thanks,<br>

<dd>Stefan<br>
<br><br>
</font><blockquote type=cite class=cite cite>
<dd><font face="arial" size=2 color="#0000FF">Stefan
-</font><font size=3><br>

<dd>  </font>
<dd><font face="arial" size=2 color="#0000FF">Marc's response is correct;
you will find information about this problem in the "FAQ / Common
Problems" section of the WMS Server page at
<a href="http://mapserver.gis.umn.edu/doc/wms-server-howto.html">http://mapserver.gis.umn.edu/doc/wms-server-howto.html</a></font><font size=3><br>

<dd>  
<dd>    </font><font face="arial" size=2 color="#0000FF">-
Ed</font><font size=3><br><br>
</font>
<dd><font size=2>Ed McNierney
<dd>President and Chief Mapmaker
<dd>TopoZone.com / Maps a la carte, Inc.
<dd>73 Princeton Street, Suite 305
<dd>North Chelmsford, MA  01863
<dd>ed at topozone.com
<dd>(978) 251-4242 </font>
<dd><font face="tahoma" size=2>-----Original Message----- 
<dd>From: Stefan Schwarzer
[<a href="mailto:stefan.schwarzer at grid.unep.ch" eudora="autourl">mailto:stefan.schwarzer at grid.unep.ch</a>] 
<dd>Sent: Tuesday, March 11, 2003 4:09 AM 
<dd>To: mapserver-users at lists.gis.umn.edu 
<dd>Subject: [Mapserver-users] WMS<br><br>
</font>
<dd><font size=3>Hi all,
<dd>after spending quite some time on this WMS query subject, I am
getting a bit frustrated. I read (almost?) all info on this subject. But
still I don't succeed. 
<dd>In the moment my computer is nerving me with this message:
<dd>Warning: MapServer Error in msProcessProjection(): no system list,
errno: 2 in e:\inetpub\wwwroot\geo_map\map.php on line 275 <br>

<dd>Ok, I know, this is related to the projection list. But: all my other
services (local and WMS-server) are running quite well. So I don't
understand why it's coming up with this message. Below the Layer
definition I use. Any ideas?
<dd>Stefan<br>

<dd>LAYER 
<dd><x-tab>        </x-tab>NAME
"test" 
<dd><x-tab>        </x-tab>METADATA 
<dd><x-tab>        </x-tab><x-tab>        </x-tab>"wms_title"
"test" 
<dd><x-tab>        </x-tab><x-tab>        </x-tab>"wms_srs"
"epsg:4326" 
<dd><x-tab>        </x-tab><x-tab>        </x-tab>"wms_connectiontimeout"
"1000" 
<dd><x-tab>        </x-tab>END 
<dd><x-tab>        </x-tab>TYPE
RASTER 
<dd><x-tab>        </x-tab>STATUS
ON 
<dd><x-tab>        </x-tab>CONNECTIONTYPE
WMS 
<dd><x-tab>        </x-tab>CONNECTION
"<a href="http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=e%3A%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&WMTVER=1.0.0&LAYERS=people&FORMAT=PNG&TRANSPARENT=TRUE" eudora="autourl">http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=e%3A%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&WMTVER=1.0.0&LAYERS=people&FORMAT=PNG&TRANSPARENT=TRUE</a>" 
<dd>END
<dd><x-tab>        </x-tab>_______________________________________<br><br>
</font>
<dd><font size=2><x-tab>        </x-tab>Stefan
Schwarzer 
<dd><x-tab>        </x-tab>Consultant
on GEO
<dd><x-tab>        </x-tab>UNEP/DEWA/GRID-Geneva 
<dd><x-tab>        </x-tab>Chemin
des Anemones 11 
<dd><x-tab>        </x-tab>CH -
1219 Chatelaine 
<dd><x-tab>        </x-tab>Switzerland
<dd><x-tab>        </x-tab>Tel:
(+41) 22.917.83.49 
<dd><x-tab>        </x-tab>Fax:
(+41) 22.917.80.29
<dd><x-tab>        </x-tab>Email:
stefan.schwarzer at grid.unep.ch 
<dd><x-tab>        </x-tab>Internet:
<a href="http://geodata.grid.unep.ch/" eudora="autourl">http://geodata.grid.unep.ch/</a></font><font size=3> 
<dd><x-tab>        </x-tab>_______________________________________
</blockquote>
</dl><br>
<x-tab>        </x-tab>_______________________________________<br><br>
</font><font size=2><x-tab>        </x-tab>Stefan
Schwarzer<br>
<x-tab>        </x-tab>Consultant
on GEO<br><br>
<x-tab>        </x-tab>UNEP/DEWA/GRID-Geneva<br>
<x-tab>        </x-tab>Chemin des
Anemones 11<br>
<x-tab>        </x-tab>CH - 1219
Chatelaine<br>
<x-tab>        </x-tab>Switzerland<br><br>
<x-tab>        </x-tab>Tel: (+41)
22.917.83.49<br>
<x-tab>        </x-tab>Fax: (+41)
22.917.80.29<br><br>
<x-tab>        </x-tab>Email:
stefan.schwarzer at grid.unep.ch<br>
<x-tab>        </x-tab>Internet:
<a href="http://geodata.grid.unep.ch/" eudora="autourl">http://geodata.grid.unep.ch/</a><br>
</font><font size=3><x-tab>        </x-tab>_______________________________________
</blockquote><br>
<x-tab>        </x-tab>_______________________________________<br><br>
</font><font size=2><x-tab>        </x-tab>Stefan
Schwarzer<br>
</b><x-tab>        </x-tab>Consultant
on GEO<br><br>
<x-tab>        </x-tab>UNEP/DEWA/GRID-Geneva<br>
<x-tab>        </x-tab>Chemin des
Anemones 11<br>
<x-tab>        </x-tab>CH - 1219
Chatelaine<br>
<x-tab>        </x-tab>Switzerland<br><br>
<x-tab>        </x-tab>Tel: (+41)
22.917.83.49<br>
<x-tab>        </x-tab>Fax: (+41)
22.917.80.29<br><br>
<x-tab>        </x-tab>Email:
stefan.schwarzer at grid.unep.ch<br>
<x-tab>        </x-tab>Internet:
<a href="http://geodata.grid.unep.ch/" eudora="autourl">http://geodata.grid.unep.ch/</a><br>
</font><font size=3><x-tab>        </x-tab>_______________________________________
<br>
</font></blockquote>
<x-sigsep><p></x-sigsep>
<font size=3><x-tab>        </x-tab>_______________________________________<br><br>
</font><font size=2><x-tab>        </x-tab><b>Stefan
Schwarzer<br>
</b><x-tab>        </x-tab>Consultant
on GEO<br><br>
<x-tab>        </x-tab>UNEP/DEWA/GRID-Geneva<br>
<x-tab>        </x-tab>Chemin des
Anemones 11<br>
<x-tab>        </x-tab>CH - 1219
Chatelaine<br>
<x-tab>        </x-tab>Switzerland<br><br>
<x-tab>        </x-tab>Tel: (+41)
22.917.83.49<br>
<x-tab>        </x-tab>Fax: (+41)
22.917.80.29<br><br>
<x-tab>        </x-tab>Email:
stefan.schwarzer at grid.unep.ch<br>
<x-tab>        </x-tab>Internet:
<a href="http://geodata.grid.unep.ch/" eudora="autourl">http://geodata.grid.unep.ch/</a><br>
</font><font size=3><x-tab>        </x-tab>_______________________________________</font></body>
</html>

--=====================_114741739==.ALT--





More information about the MapServer-users mailing list