GithubHelp home page GithubHelp logo

grseb9s / r-bridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r-arcgis/r-bridge

0.0 1.0 0.0 18.1 MB

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

License: Apache License 2.0

Batchfile 2.59% C 0.90% C++ 57.44% R 38.35% Objective-C 0.72%

r-bridge's Introduction

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

####Documentation

####Building from source git clone https://github.com/R-ArcGIS/r-bridge.git

  • open command prompt and execute >src\build.bat- this will create 'arcgisbinding' R package.

######Build dependencies:

######Documentation dependencies:

###Repository layout

  • src\package
    arcgisbinding (native R package) - collection of classes and functions for script-level bindings between R and bridge dll.
  • src\proxy
    rarcproxy.dll, rarcproxy_pro.dll - C++, Bridge between ArcGIS (Desktop 10.3.1+, Pro 1.1+) and arcgisbinding

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

r-bridge's People

Contributors

dpavlushko avatar scw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.