[R-sig-Geo] ESRI Ascii Grid

Edzer Pebesma edzer.pebesma at uni-muenster.de
Thu Jan 15 09:48:41 CET 2009


Does this mean that floating point grids are still read as integer when 
the first "." does not appear in the first 100K of the file?
--
Edzer

Dylan Beaudette wrote:
> On Wed, Jan 14, 2009 at 1:14 AM, Roger Bivand <Roger.Bivand at nhh.no> wrote:
>   
>> On Tue, 13 Jan 2009, Dylan Beaudette wrote:
>>
>>     
>>> On Tuesday 13 January 2009, Edzer Pebesma wrote:
>>>       
>>>> This sounds very familiar; I ran into this about 6 years ago or so.
>>>>         
>>> Could it be related to this ticket:
>>>
>>> http://trac.osgeo.org/gdal/ticket/2369
>>>       
>> Yes, exactly! I have checked with readGDAL() with GDAL 1.6.0, and the
>> problem is resolved (in fact it defaults to int32), while the problem
>> remains in the 1.5.* GDAL series (including 1.5.4 released last week) for
>> the sample file in the ticket. May I add the sample file to rgdal to give an
>> indication of this?
>>     
>
> Yes, please do include the sample file. This particular bug bit me
> while processing a bunch of climate data about 4 months ago.
>
> Cheers,
>
> Dylan
>
>   
>> The next Windows binary packages will be GDAL 1.5.4, not 1.6.0 - I'm working
>> on getting 1.6.0 to check through rgdal.
>>
>> If Brian is working on something other than Windows with the CRAN binary
>> package, upgrading GDAL will fix the problem, because rgdal will use the
>> installed GDAL.
>>
>> Roger
>>
>> PS. GDAL < 1.6 can be tricked into doing the right thing by using a
>> NODATA_value in the file that is either less than the minimum int16 or
>> greater than the maximum int16, so with a text editor this can be a
>> "solution". The GDAL driver is more flexible in letting you choose
>> subscenes, etc, so this may be prefered to readAsciiGrid().
>>
>>     
>>> ?
>>>       
>
> [snip]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>   

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de/
http://www.springer.com/978-0-387-78170-9 e.pebesma at wwu.de




More information about the R-sig-Geo mailing list