Learn R Programming

R-ArcGIS bridge

Requirements

  • 32-bit version required for ArcMap, 64-bit version required for ArcGIS Pro (Note: the installer installs both by default).
  • 64-bit version can be used with ArcMap by installing Background Geoprocessing and configuring scripts to run in the background. NOTE: Background geoprocessing only allows using the bridge from ArcGIS, not from within R itself.

Installation

For most users, the easiest way to install is using the installation toolbox which will install and configure the bridge for ArcGIS 10.3.1+ and Pro 1.1+. Alternatively, downloading the release can be manually installed into R, as shown in this screencast.

Basic GP Tool script

tool_exec <- function (in_params, out_params)
{
  value0 <- in_params[[1]]
  print(value0)
# ...
  return (out_params)
}
  • tool_exec(in_params, out_params) main function
  • in_params list of all input parameters. You can get parameter value by index in_params[[1]] or by parameter name in_params$param1
  • output_params list of all output and derived parameters.

Using arcgisbinding in standalone R script

> library(arcgisbinding)
> arc.check_product()
> d <- arc.open("c:/mydb.gdb/points")

Documentation

Build

> git clone https://github.com/R-ArcGIS/r-bridge.git`
> cd r-bridge\buid\
> build.bat pro desktop
Build dependencies:
Documentation dependencies:

Project Details

Check out the R-ArcGIS Website for related projects and extensions built on this library.

Credits

This package depends on the R Statistical Computing Software:

Copyright (C) 2015 The R Foundation for Statistical Computing R is free software and comes with ABSOLUTELY NO WARRANTY. See the COPYRIGHTS file for details.

License

Apache 2.0

Copy Link

Version

Version

1.0.1.229

License

Apache License 2.0

Maintainer

Esri

Last Published

May 1st, 2018

Functions in arcgisbinding (1.0.1.229)

arc.data2sp

Convert an arc.dataframe or arc.raster object to an sp SpatialDataFrame object
arc.progress_pos

Set progressor position for Geoprocessing dialog box
arc.raster-class

Reference Class "arc.raster"
pixeltypes

Pixel types
resampletypes

Resample types
arc.datasetraster-class

Class "arc.datasetraster"
arc.delete

delete dataset
arc.raster

Create arc.raster object
arc.check_product

ArcGIS product and license information
arc.data2sf

Convert an arc.dataframe object to an sf Simple Feature object
arc.select

Load dataset to data.frame
arc.env

Get geoprocessing environment settings
arc.shape-class

Class "arc.shape"
arc.shape

Get arc.shape object
arc.fromWktToP4

Convert a Well-known Text Coordinate Reference System into a PROJ.4 string.
arc.shapeinfo

Shape Information
arc.fromP4ToWkt

Convert PROJ.4 Coordinate Reference System string to Well-known Text.
arc.metadata

Get metadata
arc.sp2data

deprecated Convert a sp SpatialDataFrame object to an arc.dataframe object
arc.shape2sf

Convert Esri shape to sfc simple feature geometry
arc.shape2sp

Convert Esri shape to sp spatial geometry
arc.write

Write dataset, raster, feature, table or layer
dplyr

dplyr support
arc.open

Open dataset, table, or layer
names

Get names
arcgisbinding

Bindings for ArcGIS
arc.progress_label

Set progressor label for Geoprocessing dialog box
as.raster

Create RasterLayer or RasterBrick (raster package)
dim

Dimensions of an object
arc.dataset-class

Class "arc.dataset"