POST
|
What do you mean by "hardcoding as per usual"? Do you use python in ArcGIS? If so how do you edit/debug your python scripts in ArcGIS?
... View more
06-01-2017
01:13 AM
|
0
|
1
|
1724
|
POST
|
The link describes exactly what I am trying to do - pull data from ArcGIS into an R environment, modify this in some way in R and push data back to ArcGIS. When I try to do this with a Polyline shape I get a length of shape error (same as the link). The link I posted describes how to solve this for point line only: ``` > d<-arc.open("c:\\data\\points.shp")> df<-arc.select(d)> g<-arc.shape(df)> dfxy<-data.frame(df, g$x, g$y) #filter rows> arc.write("c:\\temp\\new_points.shp", dfxy, coords=list(dfxy$g.x, dfxy$g.y), shape_info=arc.shapeinfo(g)) ``` But this does not work for Polyline. I understand why the polyline is a list of vectors, that makes sense - but how do we access these co-ordinates and apply the appropriate filtering to the modified data (as above) so it can be pushed back to ArcGIS without erroring?
... View more
05-31-2017
03:09 AM
|
0
|
1
|
1497
|
POST
|
Yes, i followed this blog: R tutorial for Spatial Statistics: Combining ArcGIS and R - Clustering Toolbox Many thanks
... View more
05-31-2017
02:50 AM
|
2
|
3
|
1724
|
POST
|
When adding an R script into a toolbox, how do you edit this? I can only delete and re-add which means I have to set up the input and output parameters each time, very time consuming, can’t debug or develop scripts this way.
... View more
05-31-2017
01:58 AM
|
0
|
6
|
2907
|
POST
|
When connecting through the R bridge to data within ArcGIS, for fields that are of type domain, how do you expose the text so text data is read into R? Currently I can only see the numerical aspect of the domain data.
... View more
05-31-2017
01:55 AM
|
0
|
1
|
953
|
POST
|
When using the `arcgisbinding` package in R, how do you access the x,y co-ordinate points of class `arc.shape` and type Polyline? There is documentation online here that explains how to do this for type Point, but the format for Polyline is different, it looks like a list of vectors as opposed to a single vector.
... View more
05-31-2017
01:51 AM
|
0
|
4
|
3117
|
Title | Kudos | Posted |
---|---|---|
2 | 05-31-2017 02:50 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|