[Gdal-dev] xml file for accessing to a wcs server

salwa belasalwa at yahoo.fr
Wed Apr 1 06:38:19 EDT 2009


Hi Frank,

this is my WCS service description file:

-------------------------------------------------

<WCS_GDAL>
  <ServiceURL>http://localhost:81/cgi-bin/mapserv.exe?map=NDVI.map&amp;SERVICE=WCS&amp;CRS=EPSG:26191&amp;</ServiceURL>
  <CoverageName>NDVI</CoverageName>
  <supportedCRSs>EPSG:26191</supportedCRSs>
  <PreferredFormat>gtiff</PreferredFormat>
  <GetCoverageExtra>&amp;BBOX=279728,114867,296168,125307&amp;time=2002-11-07</GetCoverageExtra>
  <Version>1.0.0</Version>
  <BlockXSize>551</BlockXSize>
  <BlockYSize>351</BlockYSize>
  <BandCount>1</BandCount>
  <BandIdentifier>bands</BandIdentifier>
  <BandType>Byte</BandType>
</WCS_GDAL>
-----------------------------------------------

and the Mapfile :

-------------------------------------

MAP
  NAME wcs
  STATUS ON
  SHAPEPATH "C:/PROJ/R3"
  INTERLACE ON
  TRANSPARENT ON
  UNITS METERS 
  DEBUG ON

PROJECTION
    "init=epsg:26191"
END

LAYER
    NAME "NDVI_index"
    STATUS OFF
    #DATA DATA/NDVI/NDVI_9i2e_R3
    DATA ndvi.shp
    FILTERITEM 'TIME'
    FILTER '%time%'
    UNITS METERS
    TRANSFORM TRUE
    DEBUG ON
    TYPE tileindex
    PROJECTION
      "init=epsg:26191"
    END
    DUMP TRUE
END

LAYER
    NAME "NDVI"
    STATUS OFF
    UNITS METERS
    TRANSFORM TRUE
    DEBUG ON
    TYPE RASTER
    TILEINDEX "NDVI_index"
    PROJECTION
      "init=epsg:26191"
    END
    DUMP TRUE
  
    METADATA
      "wcs_name"    "NDVI"
      "wcs_label"   "NDVI R3"
      "wcs_abstract" "blabla"
      "wcs_description" "blabla"
      "wcs_bandcount" "1"
      "wcs_rangeset_name"   "bands"              
      "wcs_rangeset_label"  "bands"    
      "wcs_rangeset_axes" "bands"     
      "wcs_formats" "gtiff"
      "wcs_srs"   "EPSG:26191"
      "wcs_extent" "279728 114867 296168 125307"
      "wcs_resolution" "30 30" 
      "wcs_timeitem" "_date"
      "wcs_timeposition" '2002-09-01,2002-11-07,2002-12-25,2003-01-26,2003-02-11,2003-02-27,2003-03-31,2003-04-16,2003-05-18,2003-08-31'
    END
END

END

----------------------------------------------------------

Thanks for help,

Best regards,

-- 
View this message in context: http://n2.nabble.com/xml-file-for-accessing-to-a-wcs-server-tp2566259p2568319.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.



More information about the gdal-dev mailing list