[gdal-dev] Gdal_translate won't crop VRT-file
Siebe Bosch
siebe at hydroconsult.nl
Thu Feb 13 03:31:01 PST 2014
Dear list,
I run into problems with gdal_translate.exe, calling a VRT file which I
created using the MapWindow OCX.
This is the error when I run gdal_translate.exe from the batch file,
calling the VRT-file:
0ERROR1: Can't find RasterDMS field in Eimg_layer with block list
ERROR 1: y:\...\i21bn1_24.aux, band 1: IReadBlock failed at X offset 0,
Y offset 80
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 80
It seems that gdal_translate is unable to open the grid contents since
it produces a grid with only nodata-values.
Here's the contents of my batchfile:
/c:\GDAL\bin\gdal_translate.exe -of HFA -a_nodata -999 -projwin
193199 519840 194203 518598 "y:\Dropbox\H1135 Kavelsloten
Zuiderzeeland\Ontvangen\GIS\AHN2-Zuiderzeeland\ahn2_05_int\gridcollection.vrt"
"C:\temp\Q4-2_CROPPED.img"/
/
//pause/
Here's a fragment of my VRT-file:
/
/
/<VRTDataset rasterXSize="124000" rasterYSize="135000">/
/ <SRS>PROJCS["Double Stereographic",GEOGCS["Amersfoort-1",DATUM["Amersfoort-1",SPHEROID["Bessel",6377397.155,299.1528131060786],TOWGS84[593.16,26.15,478.54,6.3239e-006,5.008e-007,5.5487e-006,4.0775e-006]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Double_Stereographic"],PARAMETER["latitude_of_origin",52.15616055555557],PARAMETER["central_meridian",5.387638888888891],PARAMETER["scale_factor",0.9999079],PARAMETER["false_easting",155000],PARAMETER["false_northing",463000],UNIT["meters",1]]</SRS>/
/ <GeoTransform> 1.3600000000000000e+005, 5.0000000000000000e-001, 0.0000000000000000e+000, 5.4125000000000000e+005, 0.0000000000000000e+000,-5.0000000000000000e-001</GeoTransform>/
/ <VRTRasterBand dataType="Float32" band="1">/
/ <SimpleSource>/
/ <SourceFilename relativeToVRT="1">geogegevens\raster\15f\i15fz1_24.aux</SourceFilename>/
/ <SourceBand>1</SourceBand>/
/ <SourceProperties RasterXSize="2000" RasterYSize="2500" DataType="Float32" BlockXSize="512" BlockYSize="4" />/
/ <SrcRect xOff="0" yOff="0" xSize="2000" ySize="2500" />/
/ <DstRect xOff="74000" yOff="5000" xSize="2000" ySize="2500" />/
/ </SimpleSource>/
Any ideas?
Thanks,
Siebe Bosch
--
---------------------------------------------
Hydroconsult
Lulofsstraat 55, unit 47
2521 AL Den Haag
The Netherlands
web:http://www.hydroconsult.nl
e-mail:siebe at hydroconsult.nl
phone: +31(0)70 250 0580
mobile: +31(0)6 17 682 689
---------------------------------------------
Aangesloten bij WaterFocus, de coöperatie van
zelfstandige professionals in het waterbeheer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140213/fe8b7d73/attachment-0001.html>
More information about the gdal-dev
mailing list