[Gdal-dev] ADF -> AAIGrid, "IReadBlock failed"
Patrick Min
pmin00 at gmail.com
Tue May 29 10:40:53 EDT 2007
Alright, I feel silly now for not mentioning that
there are other raster files in the directory.
>From this page:
http://trac.osgeo.org/gdal/ticket/1198
I've now figured out that my data is "multitiled"..
>From that error ticket page I can't really tell if this was resolved.
I'm using gdal 1.4.1 here.
I suppose I could hack something that merges the index files and raster
files into a single large index&raster file..
Patrick
On 5/29/07, Patrick Min <pmin00 at gmail.com> wrote:
> Thanks for the reply. I wrote a Perl script to get some data
> out of hdr.adf, etc., maybe this helps (see below). It seems there are
> (475000 - 306840) / 5 = 33632 rows (as expected), but hdr.adf
> says a tile is 4 pixels high, and HTilesPerColumn is 2520 (?!), which
> should be 33632 / 4 = 8408, right?
>
> Patrick
>
>
> read_bounds_info(dblbnd.adf)
> LLX: [13565]
> LLY: [306840]
> URX: [269640]
> URY: [475000]
>
> read_stats_info(sta.adf)
> SMin: [-8332]
> SMax: [34338]
> SMean: [1438.64260482693]
> SStdDev: [2390.48273559427]
>
> read_header(hdr.adf)
> HMagic [GRID1.2]
> HCellType [1]
> HPixelSizeX [5]
> HPixelSizeY [5]
> unknown1 [-115075]
> unknown2 [399400]
> HTilesPerRow [201]
> HTilesPerColumn [2520]
> HTileXSize [256]
> unknown [1]
> HTileYSize [4]
More information about the Gdal-dev
mailing list