0

How could I get the list of file extensions automatically recognized by writeRaster and rast functions, for writing and reading different raster file formats?

1 Answers1

0

You can see the extensions used for determining the file format for writing at line 50 of this file. This should eventually make it to the documentation.

Reading is not based on the extension. With the development version you can get a list of the supported formats like this:

d <- gdal(drivers=TRUE)
head(d)
#    name   type   can                     long.name
#1 AAIGrid raster write           Arc/Info ASCII Grid
#2    ACE2 raster  read                          ACE2
#3    ADRG raster write ARC Digitized Raster Graphics
#4     AIG raster  read          Arc/Info Binary Grid
#5  AirSAR raster  read     AirSAR Polarimetric Image
#6     ARG raster write     Azavea Raster Grid format 
Robert Hijmans
  • 40,301
  • 4
  • 55
  • 63