[Gdal-dev] xml file for accessing to a wcs server
salwa
belasalwa at yahoo.fr
Wed Apr 1 06:36:47 EDT 2009
Hi Frank,
this is my WCS service description file:
-------------------------------------------------
<WCS_GDAL>
<ServiceURL>http://localhost:81/cgi-bin/mapserv.exe?map=NDVI.map&SERVICE=WCS&CRS=EPSG:26191&</ServiceURL>
<CoverageName>NDVI</CoverageName>
<supportedCRSs>EPSG:26191</supportedCRSs>
<PreferredFormat>gtiff</PreferredFormat>
<GetCoverageExtra>&BBOX=279728,114867,296168,125307&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,
belaqziz salwa wrote:
> 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
Salwa,
It would be helpful if you could provide the WCS service
description file, assuming the WCS service is public.
> 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'
That is odd. I have no opinion on why it is happening.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
View this message in context: http://n2.nabble.com/xml-file-for-accessing-to-a-wcs-server-tp2566259p2568314.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list