Skip to content
Prev 1271 / 29559 Next

followup on rgdal - invalid alignment error

On Fri, 8 Sep 2006, Scott W Mitchell wrote:

            
Scott:

Thanks very much for your detailed descriptions, and I hope updating to 
try to help the original questioner hasn't broken things you need now.
Can you re-run the example code by hand, line by line (copy & paste for
example)? From what you write, image displays correctly, is that right?  
That suggests that the data has been read correctly, otherwise it would
not have displayed? Which image is this - several are read in the example?  
Does example(GDAL.open) run smoothly? Something in the first band of the
data is causing sort to choke, could it be an NA? can you copy out the 
band to a regular vector, and save it to file as an R object? If it is a 
value in the band, it should be saved in a platform independent way. GDAL 
also swaps to suit endianness.

Roger