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

belaqziz salwa belasalwa at yahoo.fr
Wed Apr 1 04:46:05 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,


 

--- En date de : Mer 1.4.09, belaqziz salwa <belasalwa at yahoo.fr> a écrit :

De: belaqziz salwa <belasalwa at yahoo.fr>
Objet: [gdal-dev] xml file for accessing to a wcs server
À: gdal-dev at lists.osgeo.org
Date: Mercredi 1 Avril 2009, 1h05

Hi,

for Accessing to a WCS server i created a local service description xml file,but when i
tested the gdal_translate command, i have the following error:

C:\Inetpub\wps>gdal_translate -of GTIFF wcs.xml wcs.tif -srcwin 0 0 547 347
Input file size is 548, 348
0ERROR 1: Returned tile does not match expected band count.
Open GDAL Datasets:
  1 N GTiff       -1 547x347x3 /vsimem/wcs/00E2F5F0/wcsresult.dat

I also tried to re-compile gdal, but i have error :

        cd apps
        nmake /nologo /f makefile.vc
        cl /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG -I..\port -I..\ogr -I..\gcore  -I..\alg
 -I..\ogr\ogrsf_frmts   -I..\frmts -I..\alg -I..\ogr -I..\ogr\ogrsf_frmts gdalinfo.c  ..\gdal_i.lib /link
gdalinfo.c
gdalinfo.obj : error LNK2019: unresolved external symbol _GDALAllRegister at 0 referenced in function _main
gdalinfo.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'


thanks for your help

Salwa.





      
-----La pièce jointe associée suit-----

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090401/eb1b4c4d/attachment.html


More information about the gdal-dev mailing list