Hello; <br><br>I am newbie to Mapserver, so maybe this is a naive question but I am doing my best to find a solution to serve raster data by using Mapserver.<br><br>I have MapServer 5.6.5, I have prepared my map server with WFS and WMS and I would like to serve GEOTIFF images with WCS 1.0.0 protocol.<br>
<br>I prepared a map file, with two layers to be served and I made a capabilities of the server:<br><br><a href="http://domainserver/cgi-bin/mapserv?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities">http://domainserver/cgi-bin/mapserv?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities</a><br>
<br>The problem is that all metadata is full but there is no content for coverages ("identifiers" in v.1.1.0), that is, the content between ContentMetada labels is empty, <br><br><ContentMetadata><br></ContentMetadata></WCS_Capabilities><br>
<br>So I don't know what is happen, I made a probe like using shp2img to generate a image png from mapfile and it is done<br><br>My Mapfile (only one layer) looks like in the following way: <br><br><br>MAP<br><br> NAME "xxxx Map Server"<br>
SIZE 100 100 # NECESARIO PARA LA UTILIDAD shp2img <br> UNITS DD<br> EXTENT -90 -90 90 90<br> DEBUG 5<br> CONFIG "CPL_DEBUG" "ON"<br> CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" #a este fichero van mensajes de error!! (equivalent to set SetEnv MS_ERRORFILE "/tmp/mapserver.log" in /etc/apache2/apache2.conf)<br>
PROJECTION<br> "init=epsg:4326"<br> END # end projection<br># Background color for the map canvas -- change as desired<br> IMAGECOLOR 192 192 192<br> IMAGEQUALITY 95<br> IMAGETYPE jpeg<br><br> # Usamos el driver GDAL para crear el formato Ráster en modo IMAGEN RGB <br>
OUTPUTFORMAT<br> NAME GEOTIFF_RGB<br> DRIVER "GDAL/GTiff"<br> MIMETYPE "image/tiff"<br> IMAGEMODE RGB<br> EXTENSION 'tif'<br> END #end outputformat<br> <br> # Legend<br> LEGEND<br>
IMAGECOLOR 255 255 255<br> STATUS ON<br> KEYSIZE 18 12<br> LABEL<br> TYPE BITMAP<br> SIZE MEDIUM<br> COLOR 0 0 89<br> END #end label<br> END #end legend<br><br> <br> # Web interface definition. Only the template parameter is required to display a map. See MapServer documentation<br>
WEB<br> <br> # Set IMAGEPATH to the path where MapServer should write its output.<br> IMAGEPATH '/tmp/'<br> # Set IMAGEURL to the url that points to IMAGEPATH as defined in your web server configuration<br>
IMAGEURL '/tmp/'<br><br> # WCS server settings<br> METADATA<br> 'wms_title' 'xxxx Map Server'<br> 'wms_enable_request' '*'<br> 'ows_onlineresource' '<a href="http://domainserver/cgi-bin/mapserv">http://domainserver/cgi-bin/mapserv</a>?'<br>
#'ows_srs' 'CRS:84 EPSG:4326 urn:x-ogc:def:crs:EPSG:4326 urn:x-ogc:def:crs:EPSG:3035 EPSG:3035 EPSG:4258'<br> 'ows title' 'Intamap WCS'<br> 'ows_srs' 'CRS:84 EPSG:4326 urn:x-ogc:def:crs:EPSG:4326'<br>
'ows_abstract' 'Comentarios Blah Blah Blah'<br> #'ows_srs' 'EPSG:3035 urn:x-ogc:def:crs:EPSG:3035'<br> 'wfs_title' 'xxxx WFS Server'<br>
'wfs_onlineresource' '<a href="http://domainserver/cgi-bin/wfs">http://domainserver/cgi-bin/wfs</a>?'<br> 'wfs_srs' 'EPSG:4326' ## Recommended<br> 'wfs_abstract' 'Web Feature Service for the XXXX central geonode.' ## Recommended<br>
'wfs_enable_request' '*'<br> 'wms_abstract' 'Web Map Service for the XXXX central geonode'<br>###### WCS ################<br> 'wcs_label' 'XXXX WCS Server' ### required for WCS<br>
'wcs_title' 'XXX Web Coverage Service Server'<br> 'wcs_description' 'Web Coverage Service for the XXXX central geonode to serve coverages'<br> 'wcs_onlineresource' '<a href="http://domainserver/cgi-bin/wcs">http://domainserver/cgi-bin/wcs</a>?'<br>
'wcs_service_onlineresource' '<a href="http://domainserver/cgi-bin/wcs">http://domainserver/cgi-bin/wcs</a>?'<br> 'wcs_fees' 'none'<br> 'wcs_srs' 'EPSG:4326' ## Recommended<br>
# 'wcs_abstract' 'Web Coverage Service for the XXXXXX central geonode.' ## Recommended<br> 'wcs_accessconstraints' 'none'<br> 'wcs_keywordlist' 'WCS, TEXT, Coverage'<br>
'wcs_metadatalink_format' "text/plain" #tipo MIME para formato de ficheros <br> 'wcs_metadatalink_href' "<a href="http://domainserver/catalog">http://domainserver/catalog</a>" # URL al metadata<br>
'wcs_metadatalink_type' "TC211" # standard que cumple el metadata<br> "wcs_address" "124 Gilmour Street"<br> "wcs_city" "Ottawa"<br>
"wcs_stateorprovince" "ON"<br> "wcs_postcode" "90210"<br> "wcs_country" "Canada"<br> "wcs_contactelectronicmailaddress" "blah@blah"<br>
"wcs_contactperson" "me"<br> "wcs_contactorganization" "unemployed"<br> "wcs_contactposition" "manager"<br> "wcs_contactvoicetelephone" "613-555-1234"<br>
"wcs_contactfacimiletelephone" "613-555-1235"<br># "wcs_service_onlineresource" "<a href="http://domainserver/cgi-bin/wcs">http://domainserver/cgi-bin/wcs</a>?"<br> 'wcs_enable_request' '*'<br>
END #end metadata<br><br> #Scale range at which web interface will operate<br> # Template and header/footer settings<br> # Only the template parameter is required to display a map. See MapServer documentation<br>
END #end web<br><br> LAYER<br> NAME 'GLOBCORINE_Color'<br> TYPE RASTER<br> STATUS ON<br> METADATA<br> 'wms_title' 'GLOBCORINE_2009'<br># 'ows_metadataurl_format' 'text/html'<br>
# 'ows_metadataurl_href' '<a href="http://domainserver/catalog">http://domainserver/catalog</a>'<br># 'ows_metadataurl_type' 'TC211'<br> 'wcs_label' 'GLOBCORINE 2009'<br>
'wcs_formats' 'GEOTIFF' <br> 'wcs_enable_request' '*'<br> 'wcs_rangeset_name' 'Range 1' ### required to support DescribeCoverage request<br>
'wcs_rangeset_label' 'Globcorine 2009 classes' ### required to support DescribeCoverage request<br> END #end metadata<br> DATA '/path/GLOBCORINE_Color.tif'<br># PROJECTION<br>
# 'proj=longlat'<br># 'ellps=WGS84'<br># 'datum=WGS84'<br># 'no_defs'<br># ''<br># END #end projection<br><br># DUMP TRUE <br> END #end layer<br>END #end map<br>
<br><br>I have no xml capabilities file if I set DUMP TRUE in LAYER class, there is a internal server error according to Apache.<br><br>I don`t know if there is a problem with GDAL library or not. I am just be confussed <br>
<br>Any help would be very appreciate. <br><br>Thank you in advance<br><br>Jorge<br><br><br><br><br>