[Mapserver-users] WMS
Stefan Schwarzer
stefan.schwarzer at grid.unep.ch
Tue Mar 11 08:00:42 PST 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> </x-tab>NAME
'DEMO'<br>
<x-tab> </x-tab>EXTENT
-180 -90 180 90<br>
<x-tab> </x-tab>IMAGECOLOR
255 255 255<br>
<x-tab> </x-tab>IMAGETYPE
PNG<br>
<x-tab> </x-tab>INTERLACE
TRUE <br>
<x-tab> </x-tab>SIZE 900
450<br>
<x-tab> </x-tab>STATUS
ON<br>
<x-tab> </x-tab>UNITS
DD<br>
<x-tab> </x-tab>SHAPEPATH
'data/'<x-tab> </x-tab><br>
<x-tab> </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>
> <br>
> I used before TYPE RASTER, but nothing moved. So I tried it with
POINT<br>
> - which didn't make too much sense. But one never knows...<br>
> <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. I was unable
to<br>
reproduce the problem, there must be something missing at the map<br>
level. Also note that and the wms_srs metadata value should
be<br>
"EPSG:4326" 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. You should be
able to<br>
isolate the problem if you compare it with yours.<br><br>
Daniel<br>
-- <br>
------------------------------------------------------------<br>
Daniel
Morissette
morissette at dmsolutions.ca<br>
DM Solutions
Group
<a href="http://www.dmsolutions.ca/" eudora="autourl">http://www.dmsolutions.ca/</a><br>
------------------------------------------------------------MAP<br>
NAME "DEMO"<br>
EXTENT -180 -90 180 90<br>
IMAGECOLOR 255 255 255<br>
IMAGETYPE PNG<br>
INTERLACE TRUE<br>
SIZE 400 300<br>
STATUS ON<br>
UNITS METERS<br><br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br><br>
WEB<br>
IMAGEPATH "/tmp/ms_tmp/"<br>
IMAGEURL "/ms_tmp/"<br>
END<br><br>
LAYER<br>
NAME 'test'<br>
METADATA<br>
'wms_title' 'test'<br>
'wms_srs' 'epsg:4326'<br>
'wms_connectiontimeout' '1000'<br>
END<br>
TYPE POINT<br>
STATUS ON<br>
CONNECTIONTYPE WMS<br>
CONNECTION<br>
'<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>
END</blockquote>
<x-sigsep><p></x-sigsep>
<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>
--=====================_118236114==.ALT--
More information about the MapServer-users
mailing list