[Mapserver-users] WMS

Ed McNierney ed at topozone.com
Tue Mar 11 06:42:44 PST 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2E7DC.79AD9B68
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Stefan -
=20
You can certainly  use multiple local and remote layers.
=20
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)?
=20
    - 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 -
=20
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.
=20
    - 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=20


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



 =20

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



 =20

    - 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=20

-----Original Message-----=20

From: Stefan Schwarzer [ mailto:stefan.schwarzer at grid.unep.ch]=20

Sent: Tuesday, March 11, 2003 4:09 AM=20

To: mapserver-users at lists.gis.umn.edu=20

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.=20


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=20



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=20

        NAME "test"=20

        METADATA=20

                "wms_title" "test"=20

                "wms_srs" "epsg:4326"=20

                "wms_connectiontimeout" "1000"=20

        END=20

        TYPE RASTER=20

        STATUS ON=20

        CONNECTIONTYPE WMS=20

        CONNECTION " =
http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=3De%3A%5Cinetpub%5Cwwwroo=
t%5Cip%5Cdemo.map =
<http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=3De%3A%5Cinetpub%5Cwwwro=
ot%5Cip%5Cdemo.map&WMTVER=3D1.0.0&LAYERS=3Dpeople&FORMAT=3DPNG&TRANSPAREN=
T=3DTRUE> =
&WMTVER=3D1.0.0&LAYERS=3Dpeople&FORMAT=3DPNG&TRANSPARENT=3DTRUE"=20

END


        _______________________________________



        Stefan Schwarzer=20

        Consultant on GEO


        UNEP/DEWA/GRID-Geneva=20

        Chemin des Anemones 11=20

        CH - 1219 Chatelaine=20

        Switzerland


        Tel: (+41) 22.917.83.49=20

        Fax: (+41) 22.917.80.29


        Email: stefan.schwarzer at grid.unep.ch=20

        Internet: http://geodata.grid.unep.ch/=20

        _______________________________________=20


        _______________________________________

        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/
        _______________________________________=20


        _______________________________________

        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/
        _______________________________________=20


------_=_NextPart_001_01C2E7DC.79AD9B68
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D640424014-11032003><FONT face=3DArial color=3D#0000ff =
size=3D2>Stefan=20
-</FONT></SPAN></DIV>
<DIV><SPAN class=3D640424014-11032003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN> </DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2>Y<SPAN=20
class=3D640424014-11032003>ou can certainly </SPAN><SPAN=20
class=3D640424014-11032003> use multiple local and remote=20
layers.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D640424014-11032003></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D640424014-11032003>Now that the PROJ problem is fixed, are you =
getting any=20
errors?  Is the layer simply not appearing?  Is the layer =
turned on=20
(STATUS ON isn't enough)?</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D640424014-11032003></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D640424014-11032003>    -=20
Ed</SPAN></FONT></FONT></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Stefan Schwarzer=20
  [mailto:stefan.schwarzer at grid.unep.ch]<BR><B>Sent:</B> Tuesday, March =
11, 2003=20
  9:36 AM<BR><B>To:</B> Ed McNierney;=20
  mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> RE: =
[Mapserver-users]=20
  WMS<BR><BR></FONT></DIV><FONT size=3D3>Ed,<BR><BR>thanks for the quick =
answer.=20
  But the answer is: yes... As the WMS service from where I want to =
retrieve a=20
  layer, does for sure work as it has been implemented into another =
application,=20
  the problem can hardly be on this side. I think, something is wrong on =
the=20
  map-file side. As the BBox and other parameters are produced =
automatically by=20
  MapServer, the URL used in the CONNECTION line below should be=20
  correct...<BR><BR>Just to be sure: Can I have a map-file with multiple =
local=20
  layers, which are accessed normally, and in addition a couple of WMS =
layers,=20
  accessed as shown below? I was just wondering if MapServer would be =
capable of=20
  merging then two, three or four different images, as each WMS service =
sends=20
  its own image back. I know that I can overlay different requests and =
thus=20
  images using simple HTML code, but I am not so sure about the method I =
just=20
  wanted to implement. Stupid question?=20
  Hmmm...<BR><BR>Ciao,<BR><BR>Stefan<BR><BR><BR></FONT>
  <BLOCKQUOTE class=3Dcite cite=3D"" type=3D"cite"><FONT face=3Darial =
color=3D#0000ff=20
    size=3D2>Stefan -</FONT><FONT size=3D3><BR> <BR></FONT><FONT =
face=3Darial=20
    color=3D#0000ff size=3D2>We don't know what your data are, so we =
can't tell=20
    whether the metadata (the projection in particular) are correct - =
you need=20
    to check that.  You also need to be requesting map extents (the =
WMS=20
    BBox) in coordinates that match both the projection of your map and =
the=20
    extents of your data.</FONT><FONT =
size=3D3><BR> <BR>   =20
    </FONT><FONT face=3Darial color=3D#0000ff size=3D2>- Ed</FONT><FONT=20
    size=3D3><BR><BR></FONT><FONT size=3D2>Ed McNierney<BR>President and =
Chief=20
    Mapmaker<BR>TopoZone.com / Maps a la carte, Inc.<BR>73 Princeton =
Street,=20
    Suite 305<BR>North Chelmsford, MA  =
01863<BR>ed at topozone.com<BR>(978)=20
    251-4242 <BR></FONT>
    <DL>
      <DD><FONT face=3Dtahoma size=3D2>-----Original Message-----<BR>
      <DD>From:</B> Stefan Schwarzer [<A=20
      href=3D"mailto:stefan.schwarzer at grid.unep.ch"=20
      eudora=3D"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=3D3>Hi all,<BR><BR>
      <DD>thanks for the input. Right, after setting an environment =
variable the=20
      ugly warning disappeared.<BR><BR>
      <DD>But I have still the problem that the WMS layer is not showing =
up. Any=20
      hints into this direction? Are the Metadata in the Layer =
definition=20
      correct? Do I have to define anything else in the mapfile? [I am =
working=20
      with MapScript, v3.5]<BR><BR>
      <DD>Thanks,<BR><BR>
      <DD>Stefan<BR><BR><BR></FONT>
      <BLOCKQUOTE class=3Dcite cite=3D"" type=3D"cite">
        <DD><FONT face=3Darial color=3D#0000ff size=3D2>Stefan =
-</FONT><FONT=20
        size=3D3><BR>
        <DD><BR></FONT> 
        <DD><FONT face=3Darial color=3D#0000ff size=3D2>Marc's response =
is correct;=20
        you will find information about this problem in the "FAQ / =
Common=20
        Problems" section of the WMS Server page at <A=20
        =
href=3D"http://mapserver.gis.umn.edu/doc/wms-server-howto.html">http://ma=
pserver.gis.umn.edu/doc/wms-server-howto.html</A></FONT><FONT=20
        size=3D3><BR>
        <DD><BR> 
        <DD>    </FONT><FONT face=3Darial color=3D#0000ff =
size=3D2>-=20
        Ed</FONT><FONT size=3D3><BR><BR></FONT>
        <DD><FONT size=3D2>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=3Dtahoma size=3D2>-----Original Message-----=20
        <DD>From: Stefan Schwarzer [<A=20
        href=3D"mailto:stefan.schwarzer at grid.unep.ch"=20
        eudora=3D"autourl">mailto:stefan.schwarzer at grid.unep.ch</A>]=20
        <DD>Sent: Tuesday, March 11, 2003 4:09 AM=20
        <DD>To: mapserver-users at lists.gis.umn.edu=20
        <DD>Subject: [Mapserver-users] WMS<BR><BR></FONT>
        <DD><FONT size=3D3>Hi all,<BR>
        <DD>after spending quite some time on this WMS query subject, I =
am=20
        getting a bit frustrated. I read (almost?) all info on this =
subject. But=20
        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,=20
        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=20
        other services (local and WMS-server) are running quite well. So =
I don't=20
        understand why it's coming up with this message. Below the Layer =

        definition I use. Any ideas?<BR>
        <DD>Stefan<BR><BR>
        <DD>LAYER=20
        =
<DD><X-TAB>        </X-TAB>NAME=20
        "test"=20
        =
<DD><X-TAB>        </X-TAB>METADA=
TA=20

        =
<DD><X-TAB>        </X-TAB><X-TAB=
>        </X-TAB>"wms_title"=20
        "test"=20
        =
<DD><X-TAB>        </X-TAB><X-TAB=
>        </X-TAB>"wms_srs"=20
        "epsg:4326"=20
        =
<DD><X-TAB>        </X-TAB><X-TAB=
>        </X-TAB>"wms_connectiont=
imeout"=20
        "1000"=20
        =
<DD><X-TAB>        </X-TAB>END=20
        =
<DD><X-TAB>        </X-TAB>TYPE=20
        RASTER=20
        =
<DD><X-TAB>        </X-TAB>STATUS=
=20
        ON=20
        =
<DD><X-TAB>        </X-TAB>CONNEC=
TIONTYPE=20
        WMS=20
        =
<DD><X-TAB>        </X-TAB>CONNEC=
TION=20
        "<A=20
        =
href=3D"http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=3De%3A%5Cinetpub%=
5Cwwwroot%5Cip%5Cdemo.map&WMTVER=3D1.0.0&LAYERS=3Dpeople&FORM=
AT=3DPNG&TRANSPARENT=3DTRUE"=20
        =
eudora=3D"autourl">http://xxx.xx.xxx.xx/cgi-bin/mapserv_client?map=3De%3A=
%5Cinetpub%5Cwwwroot%5Cip%5Cdemo.map&WMTVER=3D1.0.0&LAYERS=3Dpeop=
le&FORMAT=3DPNG&TRANSPARENT=3DTRUE</A>"=20

        <DD>END<BR>
        =
<DD><X-TAB>        </X-TAB>______=
_________________________________<BR><BR></FONT>
        <DD><FONT=20
        =
size=3D2><X-TAB>        </X-TAB>S=
tefan=20
        Schwarzer=20
        =
<DD><X-TAB>        </X-TAB>Consul=
tant=20
        on GEO<BR>
        =
<DD><X-TAB>        </X-TAB>UNEP/D=
EWA/GRID-Geneva=20

        =
<DD><X-TAB>        </X-TAB>Chemin=
=20
        des Anemones 11=20
        =
<DD><X-TAB>        </X-TAB>CH -=20
        1219 Chatelaine=20
        =
<DD><X-TAB>        </X-TAB>Switze=
rland<BR>
        =
<DD><X-TAB>        </X-TAB>Tel:=20
        (+41) 22.917.83.49=20
        =
<DD><X-TAB>        </X-TAB>Fax:=20
        (+41) 22.917.80.29<BR>
        =
<DD><X-TAB>        </X-TAB>Email:=
=20
        stefan.schwarzer at grid.unep.ch=20
        =
<DD><X-TAB>        </X-TAB>Intern=
et:=20
        <A href=3D"http://geodata.grid.unep.ch/"=20
        eudora=3D"autourl">http://geodata.grid.unep.ch/</A></FONT>=20
        <DD><FONT=20
        =
size=3D3><X-TAB>        </X-TAB>_=
______________________________________=20
        =
</DD></BLOCKQUOTE></DD></DL><BR><X-TAB>     &nbs=
p;  </X-TAB>_______________________________________<BR><BR></FO=
NT><FONT=20
    =
size=3D2><X-TAB>        </X-TAB>S=
tefan=20
    =
Schwarzer<BR></B><X-TAB>        <=
/X-TAB>Consultant=20
    on=20
    =
GEO<BR><BR><X-TAB>        </X-TAB=
>UNEP/DEWA/GRID-Geneva<BR><X-TAB>      &nbs=
p; </X-TAB>Chemin=20
    des Anemones=20
    =
11<BR><X-TAB>        </X-TAB>CH =
-=20
    1219=20
    =
Chatelaine<BR><X-TAB>        </X-=
TAB>Switzerland<BR><BR><X-TAB>       &=
nbsp;</X-TAB>Tel:=20
    (+41)=20
    =
22.917.83.49<BR><X-TAB>        </=
X-TAB>Fax:=20
    (+41)=20
    =
22.917.80.29<BR><BR><X-TAB>       &nbs=
p;</X-TAB>Email:=20
    =
stefan.schwarzer at grid.unep.ch<BR><X-TAB>     &nb=
sp;  </X-TAB>Internet:=20
    <A href=3D"http://geodata.grid.unep.ch/"=20
    eudora=3D"autourl">http://geodata.grid.unep.ch/</A><BR></FONT><FONT=20
    =
size=3D3><X-TAB>        </X-TAB>_=
______________________________________=20
    <BR></FONT></BLOCKQUOTE><X-SIGSEP>
  <P></X-SIGSEP><FONT=20
  =
size=3D3><X-TAB>        </X-TAB>_=
______________________________________<BR><BR></FONT><FONT=20
  =
size=3D2><X-TAB>        </X-TAB><=
B>Stefan=20
  =
Schwarzer<BR></B><X-TAB>        <=
/X-TAB>Consultant=20
  on=20
  =
GEO<BR><BR><X-TAB>        </X-TAB=
>UNEP/DEWA/GRID-Geneva<BR><X-TAB>      &nbs=
p; </X-TAB>Chemin=20
  des Anemones=20
  =
11<BR><X-TAB>        </X-TAB>CH =
- 1219=20
  =
Chatelaine<BR><X-TAB>        </X-=
TAB>Switzerland<BR><BR><X-TAB>       &=
nbsp;</X-TAB>Tel:=20
  (+41)=20
  =
22.917.83.49<BR><X-TAB>        </=
X-TAB>Fax:=20
  (+41)=20
  =
22.917.80.29<BR><BR><X-TAB>       &nbs=
p;</X-TAB>Email:=20
  =
stefan.schwarzer at grid.unep.ch<BR><X-TAB>     &nb=
sp;  </X-TAB>Internet:=20
  <A href=3D"http://geodata.grid.unep.ch/"=20
  eudora=3D"autourl">http://geodata.grid.unep.ch/</A><BR></FONT><FONT=20
  =
size=3D3><X-TAB>        </X-TAB>_=
______________________________________</FONT>=20
  </P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C2E7DC.79AD9B68--



More information about the MapServer-users mailing list