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[&quot;Double 
Stereographic&quot;,GEOGCS[&quot;Amersfoort-1&quot;,DATUM[&quot;Amersfoort-1&quot;,SPHEROID[&quot;Bessel&quot;,6377397.155,299.1528131060786],TOWGS84[593.16,26.15,478.54,6.3239e-006,5.008e-007,5.5487e-006,4.0775e-006]],PRIMEM[&quot;Greenwich&quot;,0],UNIT[&quot;degree&quot;,0.0174532925199433]],PROJECTION[&quot;Double_Stereographic&quot;],PARAMETER[&quot;latitude_of_origin&quot;,52.15616055555557],PARAMETER[&quot;central_meridian&quot;,5.387638888888891],PARAMETER[&quot;scale_factor&quot;,0.9999079],PARAMETER[&quot;false_easting&quot;,155000],PARAMETER[&quot;false_northing&quot;,463000],UNIT[&quot;meters&quot;,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:[email protected]
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

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to