[R-sig-Geo] writeRaster can't find driver

ElenaC E.Couce.07 at bristol.ac.uk
Thu Mar 1 21:46:02 CET 2012


Dear all,

having recently updated my versions of R and of the raster library, I'm
encountering problems when writing out geographical data with commands that
previously worked fine. The error appears to be due to "missing drivers":

> require(raster)
Loading required package: raster
raster version 1.9-70 (27-February-2012)
> writeRaster(grid_raster, filename='test.bil', format='EHdr',
> overwrite=TRUE)
Error in .local(.Object, ...) : No driver registered with name: BIL

However the 'EHdr' driver is installed, so I dont really understand why
writeRaster can't find it:

>  writeFormats()
      name        long_name                                
 [1,] "raster"    "R-raster"                               
 [2,] "SAGA"      "SAGA GIS"                               
 [3,] "IDRISI"    "IDRISI"                                 
 [4,] "BIL"       "Band by Line"                           
 [5,] "BSQ"       "Band Sequential"                        
 [6,] "BIP"       "Band by Pixel"                          
 [7,] "ascii"     "Arc ASCII"                              
 [8,] "ADRG"      "ARC Digitized Raster Graphics"          
 [9,] "BMP"       "MS Windows Device Independent Bitmap"   
[10,] "BT"        "VTP .bt (Binary Terrain) 1.3 Format"    
[11,] "EHdr"      "ESRI .hdr Labelled"                     
[12,] "ELAS"      "ELAS"                                   
[13,] "ENVI"      "ENVI .hdr Labelled"                     
[14,] "ERS"       "ERMapper .ers Labelled"                 
[15,] "FITS"      "Flexible Image Transport System"        
[16,] "GSBG"      "Golden Software Binary Grid (.grd)"     
[17,] "GTiff"     "GeoTIFF"                                
[18,] "GTX"       "NOAA Vertical Datum .GTX"               
[19,] "HDF4Image" "HDF4 Dataset"                           
[20,] "HFA"       "Erdas Imagine Images (.img)"            
[21,] "IDA"       "Image Data and Analysis"                
[22,] "ILWIS"     "ILWIS Raster Map"                       
[23,] "INGR"      "Intergraph Raster"                      
[24,] "ISIS2"     "USGS Astrogeology ISIS cube (Version 2)"
[25,] "JP2ECW"    "ERDAS JPEG2000 (SDK 3.x)"               
[26,] "LAN"       "Erdas .LAN/.GIS"                        
[27,] "Leveller"  "Leveller heightfield"                   
[28,] "netCDF"    "Network Common Data Format"             
[29,] "NITF"      "National Imagery Transmission Format"   
[30,] "NTv2"      "NTv2 Datum Grid Shift"                  
[31,] "PAux"      "PCI .aux Labelled"                      
[32,] "PCIDSK"    "PCIDSK Database File"                   
[33,] "PNM"       "Portable Pixmap Format (netpbm)"        
[34,] "RMF"       "Raster Matrix Format"                   
[35,] "RST"       "Idrisi Raster A.1"                      
[36,] "SAGA"      "SAGA GIS Binary Grid (.sdat)"           
[37,] "SGI"       "SGI Image File Format 1.0"              
[38,] "Terragen"  "Terragen heightfield"   

Information about my system:

> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] raster_1.9-70 rgdal_0.7-8   sp_0.9-95    

loaded via a namespace (and not attached):
[1] grid_2.14.2    lattice_0.20-0 tools_2.14.2  


Any help would be greatly appreciated!

Cheers
Elena 



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/writeRaster-can-t-find-driver-tp7334042p7334042.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list