Skip to content

BreeceJon/r-bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R-bridge for ArcGIS

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.

####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()

####Building from source

  • Create new folder <ArcGIS>\R-bridge
  • Set as current directory and clone repository
    git clone https://github.com/R-ArcGIS/r-bridge.git ./src
  • Open R-bridge.sln (Visual Studio 2012) and build solution

######Build dependencies:

######Documentation dependencies:

###Repository layout

  • .\package
    arcgisbinding (native R package) - collection of classes and functions for script-level bindings between R and bridge dll.
  • .\rarcproxy
    C++, Bridge between ArcGIS 10.3.1 and arcgisbinding.
  • .\rarcproxy_pro
    C++, Bridge between ArcGIS Pro and arcgisbinding.
  • .\libarcobjects
    (private) - Static library for rarcproxy_pro. Wrapper classes for ArcObjects API.

##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

About

Bridge library to connect ArcGIS and R, including arcgisbinding R library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 77.6%
  • R 21.3%
  • Other 1.1%