problem invoking WCS: "no template"???
Piero Cavalieri
Piero.Cavalieri at HEIDI.IT
Thu Oct 11 00:44:55 PDT 2007
This one works for me (not sure if it's formally correct, but it seems to work):
http://pcavalieri/Scripts/WCS/mapserv.exe?map=D:/gis/data/trentino/trentinoWCS.map&SERVICE=WCS&version=1.0.0&REQUEST=GetCoverage&Coverage=ECW&BBOX=1650000,5095000,1700000,5100000&CRS=EPSG:26591&RESX=1&RESY=1&FORMAT=ECW
and .map:
#
# Start of map file
#
NAME TRENTINO
STATUS ON
OUTPUTFORMAT
NAME ECW
DRIVER "GDAL/ECW"
MIMETYPE "image/ecw"
IMAGEMODE "BYTE"
EXTENSION "ecw"
END
#
# Start of layer definitions
#
LAYER
NAME "ECW"
TYPE RASTER
STATUS OFF
PROCESSING "SCALE=AUTO"
UNITS Meters
DUMP TRUE
TILEITEM "location"
TILEINDEX "D:\gis\data\trentino\ECWindex.shp"
METADATA
"wcs_description" "ecw"
"wcs_name" "ecw"
"wcs_label" "ecw trentino"
"ows_srs" "EPSG:26591"
"ows_extent" "1609350 5056766 1731630 5159006"
"wcs_resolution" "1 1"
"wcs_bandcount" "3"
"wcs_formats" "ECW"
END
END
END # Map File
Cheers
Piero
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kralidis,Tom [Burlington]
Sent: mercoledì 10 ottobre 2007 18.06
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] problem invoking WCS: "no template"???
> I am trying to make the Web Coverage Service (WCS) feature work.
> However, GetCapabilies and GetCoverage requests both respond with
> "mapserv(): Web application error. No template provided."
> No doubt I have made some basic configuration error, but I
> cannot find my problem. The Web Map Service (WMS)
> functionality using the same mapfile does work.
>
> Here are the parts of my mapfile that I believe are relevant to WCS:
>
> # Added for WCS support
> OUTPUTFORMAT
> NAME GEOTIFF
> DRIVER "GDAL/GTiff"
> MIMETYPE "image/tiff"
> IMAGEMODE "BYTE"
> EXTENSION "tif"
> END
>
> # TEST WCS feature
> LAYER
> NAME "airstiff"
> TYPE RASTER
> DUMP TRUE
> METADATA
> "wcs_title" "AIRS TIFF Coverage"
> "wcs_nativeformat" "tiff"
> END
> STATUS off
> PROJECTION
> "init=epsg:4326"
> END
> DATA "/sivo/data/soar/airs/2007/01/04/12/bt.tiff"
> END
>
> NOTE: The same floating-point GeoTIFF (bt.tiff) is correctly
> read and classified by the WMS component.
>
> Is there something missing in my mapfile? This document:
> http://mapserver.gis.umn.edu/docs/howto/wcs_server/#d45e65
> claims that four conditions must be satisfied, as I believe I
> have done:
> Data source is of raster type that is processed using
> GDAL (e.g GeoTIFF, Erdas Imagine, ...)
> LAYER NAME must be set
> LAYER TYPE is RASTER
> LAYER DUMP parameter set to TRUE
>
> Thanks for any help,
> Jeff DLB
>
Jeff,
What does your request URL look like? Did you include service=WCS in
the request?
..Tom
More information about the MapServer-users
mailing list