WMS doesn't show maps

luca marletta lucamarle at GMAIL.COM
Sun Dec 11 23:55:32 PST 2005


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



More information about the MapServer-users mailing list