WMS doesn't show maps
Eijnden, B. van den (Bart)
b.vdeijnden at AGI.RWS.MINVENW.NL
Sun Dec 11 23:59:31 PST 2005
Hi Luca,
with respect to the GetCapabilities request, download the file anyway,
that's because the content type is something the browser does not know. It
is just an XML file though. Check if there are warnings or errors in the
XML.
For your METADATA at LAYER level you need at least (see
http://mapserver.gis.umn.edu/doc46/wms-server-howto.html):
-wms_title
-wms_srs (if you did not define this at the WEB object)
Also, define a PROJECTION object for your LAYER.
A full request would be for instance:
http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WMS&VERSION=1.1.1&REQU
EST=getmap&layers=park,popplace&STYLES=&SRS=EPSG:4326&BBOX=-173.537,35.8775,
-11.9603,83.8009&WIDTH=400&HEIGHT=300&FORMAT=image/png
Best regards,
Bart
-----Oorspronkelijk bericht-----
Van: luca marletta [mailto:lucamarle at gmail.com]
Verzonden: maandag 12 december 2005 8:56
Aan: Eijnden, B. van den (Bart)
CC: MAPSERVER-USERS at lists.umn.edu
Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS doesn't show maps
Thanks Bart for your reply.
On 12/12/05, Eijnden, B. van den (Bart) <b.vdeijnden at agi.rws.minvenw.nl>
wrote:
> Can you post one of your LAYER definitions?
here an example
LAYER
NAME "fotogrammetrico"
STATUS ON
TILEINDEX "/var/www/pmapper/comalo/fotogrammetrico.shp"
TILEITEM "Location"
TYPE RASTER
MAXSCALE 3003
MINSCALE 499
METADATA
"DESCRIPTION" "Fotogrammetrico 1:2.000|Fotogrammetrico
1:2.000|Fotogrammetrico 1:2.000"
END
CLASS
NAME "Fotogrammetrico 1:2.000"
END
END
> Also
> 1) check your WMS GetCapabilities response
> (&service=WMS&version=1.1.1&request=GetCapabilities).
If I do the request above in browser I get "mapserv" downloaded and in
Jump it gives "description not provided" error.
> 2) the request you try is not a full WMS request, it misses things like
SRS
> and BBOX.
could you give an example of what I miss in .map as you suggested ere above?
Really thanks Bart.
luca
> -----Oorspronkelijk bericht-----
> Hi all,
> I'm new with WMS, never needed before now.
> I've a working application of mapserver in localhost and I'm trying
> now to set it up for working also in WMS server mode.
> I prepared the map ad howto explain but just the annotations layer
> appears. No one shape and no one raster and NO error.
> It seems it's not able to find the data source but in map file there
> is the absolute path.
> Both with jump and browser request I got same results.
> I cannot get it.
>
> I'm sure there is an easy explanation but I'm going around from long.
>
> WEB
> TEMPLATE "/var/www/pmapper/map.html"
> IMAGEPATH "/var/www/pmapper/comalo/tmp/"
> IMAGEURL "comalo/tmp/"
> MINSCALE 500
> MAXSCALE 160000
> METADATA
> "wms_title" "WMS CMALO"
> "wms_onlineresource"
> "http://localhost/cgi-bin/mapserv?map=../pmapper/comalo.map&"
> "wms_srs" "EPSG:4326 EPSG:32632
> EPSG:23032"
> "wms_request" "GetMap"
> "wms_server_version" "1.1.1"
> "wms_service" "WMS"
> "wms_bbox" "1.50911e+06 5.10193e+06 1.53447e+06
5.12307e+06"
> "wms_format" "PNG"
> "wms_bgcolor" "0xFFFFFF"
> "wms_transparent" "TRUE"
> "wms_exception" "INIMAGE"
> END # Metadata
> END # Web
>
> Here my request in browser
>
http://localhost/cgi-bin/mapserv?map=../pmapper/comalo.map&SERVICE=WMS&VERSI
> ON=1.1.1&REQUEST=GetMap&LAYERS=igm
--
luca marletta
Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.
This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************
More information about the MapServer-users
mailing list