<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear list,<br>
<br>
I run into problems with gdal_translate.exe, calling a VRT file
which I created using the MapWindow OCX. <br>
This is the error when I run gdal_translate.exe from the batch file,
calling the VRT-file:<br>
<br>
0ERROR1: Can't find RasterDMS field in Eimg_layer with block list<br>
ERROR 1: y:\...\i21bn1_24.aux, band 1: IReadBlock failed at X
offset 0, Y offset 80<br>
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 80<br>
<br>
It seems that gdal_translate is unable to open the grid contents
since it produces a grid with only nodata-values.<br>
<br>
Here's the contents of my batchfile:<br>
<pre> <i>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"</i></pre>
<pre><i>
</i><i>pause</i></pre>
<br>
Here's a fragment of my VRT-file:<br>
<i><br>
</i>
<pre><i><VRTDataset rasterXSize="124000" rasterYSize="135000"></i></pre>
<pre><i> <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></i></pre>
<pre><i> <GeoTransform> 1.3600000000000000e+005, 5.0000000000000000e-001, 0.0000000000000000e+000, 5.4125000000000000e+005, 0.0000000000000000e+000,-5.0000000000000000e-001</GeoTransform></i></pre>
<pre><i> <VRTRasterBand dataType="Float32" band="1"></i></pre>
<pre><i> <SimpleSource></i></pre>
<pre><i> <SourceFilename relativeToVRT="1">geogegevens\raster\15f\i15fz1_24.aux</SourceFilename></i></pre>
<pre><i> <SourceBand>1</SourceBand></i></pre>
<pre><i> <SourceProperties RasterXSize="2000" RasterYSize="2500" DataType="Float32" BlockXSize="512" BlockYSize="4" /></i></pre>
<pre><i> <SrcRect xOff="0" yOff="0" xSize="2000" ySize="2500" /></i></pre>
<pre><i> <DstRect xOff="74000" yOff="5000" xSize="2000" ySize="2500" /></i></pre>
<pre><i> </SimpleSource></i></pre>
<br>
<br>
Any ideas?<br>
<br>
Thanks,<br>
Siebe Bosch<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
---------------------------------------------
Hydroconsult
Lulofsstraat 55, unit 47
2521 AL Den Haag
The Netherlands
web: <a class="moz-txt-link-freetext" href="http://www.hydroconsult.nl">http://www.hydroconsult.nl</a>
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:siebe@hydroconsult.nl">siebe@hydroconsult.nl</a>
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</pre>
</body>
</html>