mkoohafkan / arcpy Goto Github PK
View Code? Open in Web Editor NEWArcPy: R interface to ArcPy
Home Page: https://hydroecology.net/arcpy/
License: GNU General Public License v3.0
ArcPy: R interface to ArcPy
Home Page: https://hydroecology.net/arcpy/
License: GNU General Public License v3.0
should use collapse =
, not sep =
da_read(layer)
Loading required namespace: tibble
Error in as_tibble(x, stringsAsFactors = FALSE) :
could not find function "as_tibble"
There are some issues with directly using the environment as cloned from within the ArcGIS Pro application. No idea why but something about the way ArcGIS Pro clones the environment doesn't play nice with reticulate
. It appears that there are two solutions:
arcpy
and/or argis
modules directly from the ESRI conda channel. One issue with this is that you need to install the module version from the channel that matches with your ArcGIS Pro installation, i.e., conda install --name <conda env> -c esri arpy=<Pro Version>
Preliminary tests suggest that option 1 works.
d = da_read(layer, "SHAPE@")
Error: Specified fields do not exist in table: SHAPE@
list of shape tokens: http://pro.arcgis.com/en/pro-app/arcpy/get-started/reading-geometries.htm
But there are more than this, e.g. OID@
.
Maybe a way to check if a token is valid for a given layer? Or maybe just ignore checks for fields that have @
symbol.
conda search arcpy -c esri
provides a listing of arcpy
module versions:
# Name Version Build Channel
arcpy 2.3.1.15800 py36_arcgispro_1 esri
arcpy 2.7 py37_arcgispro_26794 esri
arcpy 2.7 py37_arcgispro_26810 esri
arcpy 2.8 py37_arcgispro_29717 esri
arcpy 2.8 py37_arcgispro_29724 esri
arcpy 2.8 py37_arcgispro_29734 esri
arcpy 2.9 py37_arcgispro_32649 esri
arcpy 2.9 py37_arcgispro_32704 esri
arcpy 2.9 py37_arcgispro_32739 esri
arcpy 3.0 py39_arcgispro_36045 esri
arcpy 3.0 py39_arcgispro_36056 esri
arcpy 3.0 py39_arcgispro_36057 esri
arcpy 3.1 py39_arcgispro_41748 esri
arcpy 3.1 py39_arcgispro_41751 esri
arcpy 3.1 py39_arcgispro_41759 esri
arcpy 3.1 py39_arcgispro_41791 esri
Output can be retrieved programmatically via flag --json
. Given the ArcGIS Pro version (supplied by the user) it is therefore possible to determine the required python version automatically rather than having the user provide it.
Retrieving the module list can be implemented right now via
jsonlite::fromJSON(system2(reticulate::conda_binary(), c("search", "arcpy", "-c", "esri", "--json") stdout = TRUE)
but if reticulate
implements conda_search()
it would be a little cleaner.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.