[Mapserver-users] WMS

Stefan Schwarzer stefan.schwarzer at grid.unep.ch
Tue Mar 11 09:35:59 EST 2003


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

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/
         _______________________________________ 
--=====================_113152454==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
<font size=3>Ed,<br><br>
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>
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>
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>
&nbsp;<br>
</font><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.&nbsp; 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>
&nbsp;<br>
&nbsp;&nbsp;&nbsp; </font><font face="arial" size=2 color="#0000FF">-
Ed</font><font size=3><br><br>
</font><font size=2>Ed McNierney<br>
President and Chief Mapmaker<br>
TopoZone.com / Maps a la carte, Inc.<br>
73 Princeton Street, Suite 305<br>
North Chelmsford, MA&nbsp; 01863<br>
ed at topozone.com<br>
(978) 251-4242 <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:11 AM<br>

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

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

<dd>thanks for the input. Right, after setting an environment variable
the ugly warning disappeared.<br><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><br>

<dd>Thanks,<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>&nbsp;<br>
</font>
<dd><font face="arial" size=2 color="#0000FF">Marc's response is correct;
you will find information about this problem in the &quot;FAQ / Common
Problems&quot; 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>&nbsp;<br>

<dd>&nbsp;&nbsp;&nbsp; </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&nbsp; 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 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,<br>

<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. <br>

<dd>In the moment my computer is nerving me with this message:<br>

<dd>Warning: MapServer Error in msProcessProjection(): no system list,
errno: 2 in e:\inetpub\wwwroot\geo_map\map.php on line 275 <br>
<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?<br>

<dd>Stefan<br>
<br>

<dd>LAYER
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>NAME
&quot;test&quot;
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>METADATA
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&quot;wms_title&quot;
&quot;test&quot;
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&quot;wms_srs&quot;
&quot;epsg:4326&quot;
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&quot;wms_connectiontimeout&quot;
&quot;1000&quot;
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>END
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>TYPE
RASTER
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>STATUS
ON
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>CONNECTIONTYPE
WMS
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>CONNECTION
&quot;<a href="http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=e%3A%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&amp;WMTVER=1.0.0&amp;LAYERS=people&amp;FORMAT=PNG&amp;TRANSPARENT=TRUE" eudora="autourl">http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=e%3A%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&amp;WMTVER=1.0.0&amp;LAYERS=people&amp;FORMAT=PNG&amp;TRANSPARENT=TRUE</a>&quot;
<dd>END<br>

<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>_______________________________________<br><br>
</font>
<dd><font size=2><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Stefan
Schwarzer
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Consultant
on GEO<br>

<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>UNEP/DEWA/GRID-Geneva
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Chemin
des Anemones 11
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>CH -
1219 Chatelaine
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Switzerland<br>

<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Tel:
(+41) 22.917.83.49
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Fax:
(+41) 22.917.80.29<br>

<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Email:
stefan.schwarzer at grid.unep.ch
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Internet:
<a href="http://geodata.grid.unep.ch/" eudora="autourl">http://geodata.grid.unep.ch/</a></font>
<dd><font size=3><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>_______________________________________
</blockquote>
</dl><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>_______________________________________<br><br>
</font><font size=2><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Stefan
Schwarzer<br>
</b><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Consultant
on GEO<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>UNEP/DEWA/GRID-Geneva<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Chemin des
Anemones 11<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>CH - 1219
Chatelaine<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Switzerland<br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Tel: (+41)
22.917.83.49<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Fax: (+41)
22.917.80.29<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Email:
stefan.schwarzer at grid.unep.ch<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>_______________________________________
<br>
</font></blockquote>
<x-sigsep><p></x-sigsep>
<font size=3><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>_______________________________________<br><br>
</font><font size=2><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><b>Stefan
Schwarzer<br>
</b><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Consultant
on GEO<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>UNEP/DEWA/GRID-Geneva<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Chemin des
Anemones 11<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>CH - 1219
Chatelaine<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Switzerland<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Tel: (+41)
22.917.83.49<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Fax: (+41)
22.917.80.29<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Email:
stefan.schwarzer at grid.unep.ch<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>_______________________________________</font></body>
</html>

--=====================_113152454==.ALT--





More information about the mapserver-users mailing list