R for GIS

 

Ben Hickson

UA Libraries

bhickson@email.arizona.edu

R?

  • Statistical programming language widely embraced in the environmental sciences
  • Open Source -> Extremely flexible
    • 10,000+ packages
  • Windows, Mac, and Linux
  • Very active community
  • Can be for functional command line GIS

R?

  • Statistical programming language widely embraced in the environmental sciences
  • Open Source -> Extremely flexible
    • 10,000+ packages
  • Windows, Mac, and Linux
  • Very active community
  • Can be for functional command line GIS

R in GIS

  • Can accomplish the same tasks and operations as QGIS or ArcGIS
  • Easy data pre-processing and clean up
  • Analysis
  • Modeling

  • GDAL based...

Aeronav FAA files
AmigoCloud API
ESRI ArcObjects
Arc/Info Binary Coverage
Arc/Info .E00 (ASCII) Coverage
Arc/Info Generate
Atlas BNA
AutoCAD DWG
AutoCAD DWG
AutoCAD DXF
Carto
Cloudant / CouchDB
CouchDB / GeoCouch
Comma Separated Value (.csv)
OGC CSW (Catalog Service for the Web)
Czech Cadastral Exchange Data Format
DB2 Spatial
DODS/OPeNDAP

EDIGEO
ElasticSearch
ESRI FileGDB
ESRI Personal GeoDatabase
ESRI ArcSDE
ESRI Shapefile / DBF
FMEObjects Gateway
GeoJSON
Géoconcept Export
Geomedia .mdb
GeoPackage
GeoRSS
Google Fusion Tables
GML
GMLAS
GMT
GPSBabel
GPX

GRASS Vector Format
GPSTrackMaker (.gtm, .gtz)
Hydrographic Transfer Format
Idrisi Vector (.VCT)
Informix DataBlade
INTERLIS
INGRES
JML
KML
LIBKML
Mapinfo File
Microstation DGN v7
Microstation DGN v8
Access MDB (PGeo and Geomedia capable)
Memory
MongoDB
MySQL
NAS - ALKIS
NetCDF
Oracle Spatial
ODBC
MS SQL Spatial
Open Document Spreadsheet
OGDI Vectors (VPF, VMAP, DCW)
OpenAir
ESRI FileGDB
OpenStreetMap XML and PBF
PCI Geomatics Database File
Geospatial PDF
PDS
Planet Labs Scenes API
PostgreSQL SQL dump
PostgreSQL/PostGIS
EPIInfo .REC
S-57 (ENC)
SDTS
SEG-P1 / UKOOA P1/90
SEG-Y
Selafin/Seraphin format
Norwegian SOSI Standard
SQLite/SpatiaLite
SUA
SVG
Storage and eXchange Format
UK .NTF
U.S. Census TIGER/Line
VRT - Virtual Datasource
OGC WFS (Web Feature Service)
MS Excel format
MS Office Open XML spreadsheet
X-Plane/Flightgear aeronautical data
VDV-451/VDV-452/IDF
Walk
WAsP .map forma

Arc/Info ASCII Grid
ACE2
ADRG/ARC Digitilized Raster Graphics (.gen/.thf)
Arc/Info Binary Grid (.adf)
AIRSAR Polarimetric
Azavea Raster Grid
Magellan BLX Topo (.blx, .xlb)
Bathymetry Attributed Grid (.bag)
Microsoft Windows Device Independent Bitmap (.bmp)
BPG (Better Portable Graphics)
BSB Nautical Chart Format (.kap)
VTP Binary Terrain Format (.bt)
AutoCAD DWG Raster layer
CALS Type I
CEOS (Spot for instance)
DRDC COASP SAR Processor Raster
TerraSAR-X Complex SAR Data Product
Convair PolGASP data
CTable2 Datum Grid Shift
USGS LULC Composite Theme Grid
DB2
DirectDraw Surface
Derived
Spot DIMAP (metadata.dim)
ELAS DIPEx
DODS / OPeNDAP
First Generation USGS DOQ (.doq)
New Labelled USGS DOQ (.doq)
Military Elevation Data (.dt0, .dt1, .dt2)
Arc/Info Export E00 GRID
ECRG Table Of Contents (TOC.xml)
ERDAS Compressed Wavelets (.ecw)
ESRI .hdr Labelled
Erdas Imagine Raw
NASA ELAS
ENVI .hdr Labelled Raster
Epsilon - Wavelet compressed images
ERMapper (.ers)
Envisat Image Product (.n1)
EOSAT FAST Format
FIT
FITS (.fits)
Fuji BAS Scanner Image
Generic Binary (.hdr Labelled)
GeoPackage
Oracle Spatial GeoRaster
GSat File Format
Graphics Interchange Format (.gif)
WMO GRIB1/GRIB2 (.grb)
GMT Compatible netCDF
GRASS Raster Format
GRASS ASCII Grid
Golden Software ASCII Grid
Golden Software Binary Grid
Golden Software Surfer 7 Binary Grid
GSC Geogrid
Generic Tagged Arrays (.gta)
TIFF / BigTIFF / GeoTIFF (.tif)
NOAA .gtx vertical datum shift
GXF - Grid eXchange File
Hierarchical Data Format Release 4 (HDF4)
Hierarchical Data Format Release 5 (HDF5)
HF2/HFZ heightfield raster
Erdas Imagine (.img)
Image Display and Analysis (WinDisp)
ILWIS Raster Map (.mpr,.mpl)
Intergraph Raster
IRIS
ISCE raster
USGS Astrogeology ISIS cube (Version 2)
USGS Astrogeology ISIS cube (Version 3)
JAXA PALSAR Product Reader (Level 1.1/1.5)
Japanese DEM (.mem)
JPEG JFIF (.jpg)
JPEG-LS
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPIP (based on Kakadu)
KEA
KMLSUPEROVERLAY
KRO
NOAA Polar Orbiter Level 1b Data Set (AVHRR)
Erdas 7.x .LAN and .GIS
FARSITE v.4 LCP Format
Daylon Leveller Heightfield
NADCON .los/.las Datum Grid Shift
MBTiles
OziExplorer .MAP
In Memory Raster
Vexcel MFF
Vexcel MFF2
MG4 Encoded Lidar
Meta Raster Format
Multi-resolution Seamless Image Database
Meteosat Second Generation
EUMETSAT Archive native (.nat)
NLAPS Data Format
NOAA NGS Geoid Height Grids
NITF (.ntf, .nsf, .gn?, .hr?, .ja?, .jg?, .jn?, .lf?, .on?, .tl?, .tp?, etc.)
NetCDF
NTv2 Datum Grid Shift
Northwood/VerticalMapper Classified Grid Format .grc/.tab
Northwood/VerticalMapper Numeric Grid Format .grd/.tab
OZI OZF2/OZFX3
PCI .aux Labelled
PCI Geomatics Database File
PCRaster
Geospatial PDF
NASA Planetary Data System
NASA Planetary Data System (Version 4)
Planet Labs Mosaics API
Portable Network Graphics (.png)
PostGIS Raster (previously WKTRaster)
Netpbm (.ppm,.pgm)
PHOTOMOD raster file (.prf,.x-dem)
R Object Data Store
Rasdaman
Rasterlite - Rasters in SQLite DB
Rasterlite2 - Rasters in SQLite DB
Swedish Grid RIK (.rik)
Raster Matrix Format (*.rsw, .mtw)
ROI_PAC Raster
Raster Product Format/RPF (CADRG, CIB)
RadarSat2 XML (product.xml)
R Raster (.grd)
Idrisi Raster
Sentinel 1 SAR SAFE (manifest.safe)
Sentinel 2
SAGA GIS Binary format
SAR CEOS
ArcSDE Raster
USGS SDTS DEM (*CATD.DDF)
SGI Image Format
Snow Data Assimilation System
Standard Raster Product (ASRP/USRP)
SRTM HGT Format
Terragen Heightfield (.ter)
EarthWatch/DigitalGlobe .TIL
TerraSAR-X Product
USGS ASCII DEM / CDED (.dem)
VICAR
GDAL Virtual (.vrt)
OGC Web Coverage Service
WEBP
OGC Web Map Service, and TMS, WorldWind, On Earth tiled, VirtualEarth, ArcGIS REST, IIP)
OGC Web Map Tile Service
X11 Pixmap (.xpm)
ASCII Gridded XYZ
ZMap Plus Grid

 

NAS - ALKIS
NetCDF
Oracle Spatial
ODBC
MS SQL Spatial
Open Document Spreadsheet
OGDI Vectors (VPF, VMAP, DCW)
OpenAir
ESRI FileGDB
OpenStreetMap XML and PBF
PCI Geomatics Database File
Geospatial PDF
PDS
Planet Labs Scenes API
PostgreSQL SQL dump
PostgreSQL/PostGIS
EPIInfo .REC
S-57 (ENC)

SDTS
SEG-P1 / UKOOA P1/90
SEG-Y
Selafin/Seraphin format
Norwegian SOSI Standard
SQLite/SpatiaLite
SUA
SVG
Storage and eXchange Format
UK .NTF
U.S. Census TIGER/Line
VRT - Virtual Datasource
OGC WFS (Web Feature Service)
MS Excel format
MS Office Open XML spreadsheet
X-Plane/Flightgear aeronautical data
VDV-451/VDV-452/IDF
Walk

R in GIS

  • Can accomplish the same tasks and operations as QGIS or ArcGIS
  • Easy data pre-processing and clean up
  • Analysis
  • Modeling
     
  • GDAL based...

WAsP .map forma

Arc/Info ASCII Grid
ACE2
ADRG/ARC Digitilized Raster Graphics (.gen/.thf)
Arc/Info Binary Grid (.adf)
AIRSAR Polarimetric
Azavea Raster Grid
Magellan BLX Topo (.blx, .xlb)
Bathymetry Attributed Grid (.bag)
Microsoft Windows Device Independent Bitmap (.bmp)
BPG (Better Portable Graphics)
BSB Nautical Chart Format (.kap)
VTP Binary Terrain Format (.bt)
AutoCAD DWG Raster layer
CALS Type I
CEOS (Spot for instance)

DRDC COASP SAR Processor Raster
TerraSAR-X Complex SAR Data Product
Convair PolGASP data
CTable2 Datum Grid Shift
USGS LULC Composite Theme Grid
DB2
DirectDraw Surface
Derived
Spot DIMAP (metadata.dim)
ELAS DIPEx
DODS / OPeNDAP
First Generation USGS DOQ (.doq)
New Labelled USGS DOQ (.doq)
Military Elevation Data (.dt0, .dt1, .dt2)
Arc/Info Export E00 GRID
ECRG Table Of Contents (TOC.xml)
ERDAS Compressed Wavelets (.ecw)
ESRI .hdr Labelled

Erdas Imagine Raw
NASA ELAS
ENVI .hdr Labelled Raster
Epsilon - Wavelet compressed images
ERMapper (.ers)
Envisat Image Product (.n1)
EOSAT FAST Format
FIT
FITS (.fits)
Fuji BAS Scanner Image
Generic Binary (.hdr Labelled)
GeoPackage
Oracle Spatial GeoRaster
GSat File Format
Graphics Interchange Format (.gif)
WMO GRIB1/GRIB2 (.grb)
GMT Compatible netCDF
GRASS Raster Format

GRASS ASCII Grid
Golden Software ASCII Grid
Golden Software Binary Grid
Golden Software Surfer 7 Binary Grid
GSC Geogrid
Generic Tagged Arrays (.gta)
TIFF / BigTIFF / GeoTIFF (.tif)
NOAA .gtx vertical datum shift
GXF - Grid eXchange File
Hierarchical Data Format Release 4 (HDF4)
Hierarchical Data Format Release 5 (HDF5)
HF2/HFZ heightfield raster
Erdas Imagine (.img)
Image Display and Analysis (WinDisp)
ILWIS Raster Map (.mpr,.mpl)
Intergraph Raster

USGS Astrogeology ISIS cube (Version 2)
USGS Astrogeology ISIS cube (Version 3)
JAXA PALSAR Product Reader (Level 1.1/1.5)
Japanese DEM (.mem)
JPEG JFIF (.jpg)
JPEG-LS
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPEG2000 (.jp2, .j2k)
JPIP (based on Kakadu)
KEA
KMLSUPEROVERLAY
KRO
NOAA Polar Orbiter Level 1b Data Set (AVHRR)
Erdas 7.x .LAN and .GIS
FARSITE v.4 LCP Format
Daylon Leveller Heightfield
NADCON .los/.las Datum Grid Shift
MBTiles
OziExplorer .MAP
In Memory Raster
Vexcel MFF
Vexcel MFF2
MG4 Encoded Lidar
Meta Raster Format
Multi-resolution Seamless Image Database
Meteosat Second Generation
EUMETSAT Archive native (.nat)
NLAPS Data Format
NOAA NGS Geoid Height Grids
NITF (.ntf, .nsf, .gn?, .hr?, .ja?, .jg?, .jn?, .lf?, .on?, .tl?, .tp?, etc.)
NetCDF
NTv2 Datum Grid Shift
Northwood/VerticalMapper Classified Grid Format .grc/.tab
Northwood/VerticalMapper Numeric Grid Format .grd/.tab
OZI OZF2/OZFX3
PCI .aux Labelled
PCI Geomatics Database File
PCRaster
Geospatial PDF
NASA Planetary Data System
NASA Planetary Data System (Version 4)
Planet Labs Mosaics API
Portable Network Graphics (.png)
PostGIS Raster (previously WKTRaster)
Netpbm (.ppm,.pgm)
PHOTOMOD raster file (.prf,.x-dem)
R Object Data Store
Rasdaman
Rasterlite - Rasters in SQLite DB
Rasterlite2 - Rasters in SQLite DB
Swedish Grid RIK (.rik)
Raster Matrix Format (*.rsw, .mtw)
ROI_PAC Raster
Raster Product Format/RPF (CADRG, CIB)
RadarSat2 XML (product.xml)
R Raster (.grd)
Idrisi Raster
Sentinel 1 SAR SAFE (manifest.safe)
Sentinel 2
SAGA GIS Binary format
SAR CEOS
ArcSDE Raster
USGS SDTS DEM (*CATD.DDF)
SGI Image Format
Snow Data Assimilation System
Standard Raster Product (ASRP/USRP)
SRTM HGT Format
Terragen Heightfield (.ter)
EarthWatch/DigitalGlobe .TIL
TerraSAR-X Product
USGS ASCII DEM / CDED (.dem)
VICAR
GDAL Virtual (.vrt)
OGC Web Coverage Service
WEBP
OGC Web Map Service, and TMS, WorldWind, On Earth tiled, VirtualEarth, ArcGIS REST, IIP)
OGC Web Map Tile Service
X11 Pixmap (.xpm)
ASCII Gridded XYZ
ZMap Plus Grid

 

 

Erdas 7.x .LAN and .GIS
FARSITE v.4 LCP Format
Daylon Leveller Heightfield
NADCON .los/.las Datum Grid Shift
MBTiles
OziExplorer .MAP
In Memory Raster
Vexcel MFF
Vexcel MFF2
MG4 Encoded Lidar
Meta Raster Format
Multi-resolution Seamless Image Database
Meteosat Second Generation
EUMETSAT Archive native (.nat)
NLAPS Data Format
NOAA NGS Geoid Height Grids
NITF
NetCDF

NTv2 Datum Grid Shift
Northwood/VerticalMapper Classified Grid Format .grc/.tab
Northwood/VerticalMapper Numeric Grid Format .grd/.tab
OZI OZF2/OZFX3
PCI .aux Labelled
PCI Geomatics Database File
PCRaster
Geospatial PDF
NASA Planetary Data System
NASA Planetary Data System (Version 4)
Planet Labs Mosaics API
Portable Network Graphics (.png)
PostGIS Raster (previously WKTRaster)
Netpbm (.ppm,.pgm)
PHOTOMOD raster file (.prf,.x-dem)
R Object Data Store
Rasdaman
Rasterlite - Rasters in SQLite DB
Rasterlite2 - Rasters in SQLite DB
Swedish Grid RIK (.rik)
Raster Matrix Format (*.rsw, .mtw)
ROI_PAC Raster
Raster Product Format/RPF (CADRG, CIB)
RadarSat2 XML (product.xml)
R Raster (.grd)
Idrisi Raster
Sentinel 1 SAR SAFE (manifest.safe)
Sentinel 2
SAGA GIS Binary format
SAR CEOS
ArcSDE Raster
USGS SDTS DEM (*CATD.DDF)
SGI Image Format
Snow Data Assimilation System
Standard Raster Product (ASRP/USRP)
SRTM HGT Format
Terragen Heightfield (.ter)
EarthWatch/DigitalGlobe .TIL
TerraSAR-X Product
USGS ASCII DEM / CDED (.dem)
VICAR
GDAL Virtual (.vrt)
OGC Web Coverage Service
WEBP
OGC Web Map Service, and TMS, WorldWind, On Earth tiled, VirtualEarth, ArcGIS REST, IIP)
OGC Web Map Tile Service
X11 Pixmap (.xpm)
ASCII Gridded XYZ
ZMap Plus Grid

 

 

Rasdaman
Rasterlite - Rasters in SQLite DB
Rasterlite2 - Rasters in SQLite DB
Swedish Grid RIK (.rik)
Raster Matrix Format (*.rsw, .mtw)
ROI_PAC Raster
Raster Product Format/RPF (CADRG, CIB)
RadarSat2 XML (product.xml)
R Raster (.grd)
Idrisi Raster
Sentinel 1 SAR SAFE (manifest.safe)
Sentinel 2
SAGA GIS Binary format
SAR CEOS
ArcSDE Raster
USGS SDTS DEM (*CATD.DDF)
SGI Image Format
Snow Data Assimilation System

Standard Raster Product (ASRP/USRP)
SRTM HGT Format
Terragen Heightfield (.ter)
EarthWatch/DigitalGlobe .TIL
TerraSAR-X Product
USGS ASCII DEM / CDED (.dem)
VICAR
GDAL Virtual (.vrt)
OGC Web Coverage Service
WEBP
OGC Web Map Service, and TMS, WorldWind, On Earth tiled, VirtualEarth, ArcGIS REST, IIP)
OGC Web Map Tile Service
X11 Pixmap (.xpm)
ASCII Gridded XYZ
ZMap Plus Grid

Resources

https://github.com/Robinlovelace/Creating-maps-in-R

Resources

R for GIS

By Benjamin Hickson

R for GIS

  • 974