[Mapserver-users] WMS

Stefan Schwarzer stefan.schwarzer at grid.unep.ch
Tue Mar 11 11:00:42 EST 2003


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

Daniel et al.,

thanks for the feedback. Due to your mapfile, I could figure out the 
problem. It is the SHAPEPATH, which prevents the display.

         NAME 'DEMO'
         EXTENT -180 -90 180 90
         IMAGECOLOR 255 255 255
         IMAGETYPE PNG
         INTERLACE TRUE
         SIZE 900 450
         STATUS ON
         UNITS DD
         SHAPEPATH 'data/'
         FONTSET etc/fonts.txt

If I take the line away, it works fine... unfortunately I can't query 
anymore the local layers.... Yes, yes, as always: one problem solved, a new 
one generated... :-)

Any suggestions for that one?

Thanks a lot for your valuable and fast help.

Best wishes,

Stefan


>Stefan Schwarzer wrote:
> >
> > I used before TYPE RASTER, but nothing moved. So I tried it with POINT
> > - which didn't make too much sense. But one never knows...
> >
>
>
>Layer type should be set to RASTER but if you set it to POINT then
>MapServer will change it back to RASTER internally.  I was unable to
>reproduce the problem, there must be something missing at the map
>level.  Also note that and the wms_srs metadata value should be
>"EPSG:4326" in uppercase but that didn't seem to have an impact in this
>case.
>
>I attached below a mapfile that does work for me.  You should be able to
>isolate the problem if you compare it with yours.
>
>Daniel
>--
>------------------------------------------------------------
>  Daniel Morissette               morissette at dmsolutions.ca
>  DM Solutions Group              http://www.dmsolutions.ca/
>------------------------------------------------------------MAP
>   NAME "DEMO"
>   EXTENT -180 -90 180 90
>   IMAGECOLOR 255 255 255
>   IMAGETYPE PNG
>   INTERLACE TRUE
>   SIZE 400 300
>   STATUS ON
>   UNITS METERS
>
>   PROJECTION
>     "init=epsg:4326"
>   END
>
>   WEB
>     IMAGEPATH "/tmp/ms_tmp/"
>     IMAGEURL "/ms_tmp/"
>   END
>
>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
>
>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/
         _______________________________________ 
--=====================_118236114==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
<font size=3>Daniel et al.,<br><br>
thanks for the feedback. Due to your mapfile, I could figure out the
problem. It is the SHAPEPATH, which prevents the display. <br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>NAME
'DEMO'<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>EXTENT
-180 -90 180 90<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>IMAGECOLOR
255 255 255<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>IMAGETYPE
PNG<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>INTERLACE
TRUE&nbsp; <br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>SIZE 900
450<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>STATUS
ON<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>UNITS
DD<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>SHAPEPATH
'data/'<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>FONTSET
etc/fonts.txt<br><br>
If I take the line away, it works fine... unfortunately I can't query
anymore the local layers.... Yes, yes, as always: one problem solved, a
new one generated... :-)<br><br>
Any suggestions for that one?<br><br>
Thanks a lot for your valuable and fast help.<br><br>
Best wishes,<br><br>
Stefan<br><br>
<br>
<blockquote type=cite class=cite cite>Stefan Schwarzer wrote:<br>
&gt; <br>
&gt; I used before TYPE RASTER, but nothing moved. So I tried it with
POINT<br>
&gt; - which didn't make too much sense. But one never knows...<br>
&gt; <br><br>
<br>
Layer type should be set to RASTER but if you set it to POINT then<br>
MapServer will change it back to RASTER internally.&nbsp; I was unable
to<br>
reproduce the problem, there must be something missing at the map<br>
level.&nbsp; Also note that and the wms_srs metadata value should 
be<br>
&quot;EPSG:4326&quot; in uppercase but that didn't seem to have an impact
in this<br>
case.<br><br>
I attached below a mapfile that does work for me.&nbsp; You should be
able to<br>
isolate the problem if you compare it with yours.<br><br>
Daniel<br>
-- <br>
------------------------------------------------------------<br>
&nbsp;Daniel
Morissette&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
morissette at dmsolutions.ca<br>
&nbsp;DM Solutions
Group&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.dmsolutions.ca/" eudora="autourl">http://www.dmsolutions.ca/</a><br>
------------------------------------------------------------MAP<br>
&nbsp; NAME &quot;DEMO&quot;<br>
&nbsp; EXTENT -180 -90 180 90<br>
&nbsp; IMAGECOLOR 255 255 255<br>
&nbsp; IMAGETYPE PNG<br>
&nbsp; INTERLACE TRUE<br>
&nbsp; SIZE 400 300<br>
&nbsp; STATUS ON<br>
&nbsp; UNITS METERS<br><br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;<br>
&nbsp; END<br><br>
&nbsp; WEB<br>
&nbsp;&nbsp;&nbsp; IMAGEPATH &quot;/tmp/ms_tmp/&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGEURL &quot;/ms_tmp/&quot;<br>
&nbsp; END<br><br>
LAYER<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'test'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
'wms_title' 'test'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
'wms_srs' 'epsg:4326'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
'wms_connectiontimeout' '1000'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE POINT<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTIONTYPE WMS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTION<br>
'<a href="http://gridss.grid.unep.ch/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://gridss.grid.unep.ch/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>'<br>
END<br><br>
END</blockquote>
<x-sigsep><p></x-sigsep>
<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>

--=====================_118236114==.ALT--





More information about the mapserver-users mailing list