Re: [gdal-dev] extra spaces when writing to AAIGRID format

2011-12-15 Thread Brad McRae
Hi Even and Eli, Thanks much for your responses. As soon as I sent that email I realized I might eat my words on the inability to open the ASCII grids in ArcMap. This problem did crop up when we released a version of our code that used GDAL a few years back. A user reported intermittent errors

Re: [gdal-dev] extra spaces when writing to AAIGRID format

2011-12-15 Thread Eli Adam
Brad, > E.g., if I try to write a 3x3 grid that ArcGIS can read, it needs to look > something like this: > > ncols        3 > nrows        3 > xllcorner    100. > yllcorner    100. > cellsize     0.1000 > 1.0 1.4809201955795288 1.4809201955795288 > 0

Re: [gdal-dev] extra spaces when writing to AAIGRID format

2011-12-15 Thread Even Rouault
Le jeudi 15 décembre 2011 18:21:11, bhmcrae a écrit : > Hi, > > I'm having problems with GDAL inserting leading spaces when writing from a > numpy array to ESRI ASCII Grid format. > > The problem occurs whenever there are integers in the array (even though > the array itself is floating point). >

[gdal-dev] extra spaces when writing to AAIGRID format

2011-12-15 Thread bhmcrae
Hi, I'm having problems with GDAL inserting leading spaces when writing from a numpy array to ESRI ASCII Grid format. The problem occurs whenever there are integers in the array (even though the array itself is floating point). E.g., if I try to write a 3x3 grid that ArcGIS can read, it needs to