|
POST
|
If the points are sequential along the route, perhaps just calculate the cumulative distance and the Z value into 2 fields and produce an X-Y graph. Use Python parser required. For calculating the Z value into a field (type Double) use... !Shape!.centroid.Z and for the cumulative distance Expression dist_cum(!Shape!) Code block """-----------------------------------------
dist_cumu(shape)
input: shape field
returns: cumulative distance between points
expression: dist_cumu(!Shape!)
"""
x0 = 0.0
y0 = 0.0
distance = 0.0
def dist_cumu(shape):
global x0
global y0
global distance
x = shape.firstpoint.X
y = shape.firstpoint.Y
if x0 == 0.0 and y0 == 0.0:
x0 = x
y0 = y
distance += math.sqrt((x - x0)**2 + (y - y0)**2)
x0 = x
y0 = y
return distance Then you can use the two field for graphing inside or outside (Table to Excel tool, for instance)
... View more
05-14-2020
09:05 PM
|
0
|
0
|
1738
|
|
POST
|
Robin Rutten perhaps you could mark the correct answer so others can discover the solution
... View more
05-14-2020
08:46 PM
|
0
|
0
|
1369
|
|
IDEA
|
05-14-2020
07:36 PM
|
4
|
1
|
2418
|
|
POST
|
Nice wood... That looks like a sizeable trunk Kelly Gerrow ... any ideas, this has us stumped
... View more
05-14-2020
07:20 PM
|
1
|
6
|
4683
|
|
BLOG
|
Reincarnation as myself since being "retired" from my organization. Published earlier, but with updates. Download the zip. Unzip into a folder. Load the toolbox. Alter Options to move/translate/shift points to a new location using delta X and Y values Rotate points as a whole about their centroid. Sort points by coordinate options Radial sort (aka, angle about the point centroid) Analysis Closest/near analysis between layers within layers with a table Concave and convex hulls. Yes, available without an Advanced license Spanning tree.... connect points by polylines, representing the shortest path to connect them all. Everyone loves a tree Standard Distance, similar to standard deviational ellipse, except for the circle Triangulation tools. Voronoi, Delaunay space delineation. No 3D analyst? No problem, you can do it now. Creation Circle points. Because you can. Mesh points. Nothing like points in a rectilinear pattern Spaced Points. Got to keep your distance? Space points so that no point is closer than a certain value.
... View more
05-14-2020
07:18 PM
|
5
|
5
|
3227
|
|
POST
|
or the save to your desktop first suggestion? https://community.esri.com/thread/232817-keeping-images-properly-oriented
... View more
05-14-2020
04:34 PM
|
0
|
8
|
4683
|
|
POST
|
To be on the safe side, add a new text field and use the field calculator expression (python, replace the field name) !YourField!.strip()
# ----- demo
test = [" Yes", " Yes", "Yes "]
for i in test:
print("'{}'".format(i.strip()))
'Yes'
'Yes'
'Yes' If you like the result, copy the field back into the original. If you live on the edge, skip the adding new field and set the undo calculation option
... View more
05-13-2020
04:20 PM
|
0
|
1
|
2548
|
|
POST
|
The problem seems to be Anaconda Navigator. I stopped using it since you had to edit one of the scripts in order to get it to work. I installed ArcGIS Pro 2.5 no upgrade, I never upgrade, I remove and reinstall by downloading the exe and running the msi, and I install in a folder without spaces eg. c:\arc_pro I installed spyder using conda install spyder --no-pin I 'updated' to spyder 4 with a --no-pin /blogs/dan_patterson/2019/12/12/spyder-4-the-python-ide-for-science I updated numpy to 1.18.1 I did a few other installs Been working fine, No clue what the remote connection issue is
... View more
05-13-2020
04:13 PM
|
1
|
5
|
2905
|
|
POST
|
Of course, you could just install in the base environment and not a clone if you are the administrator on your machine (that is what I do)
... View more
05-13-2020
02:09 PM
|
0
|
7
|
2905
|
|
POST
|
Anaconda navigator? Did you clone the esri distribution? Navigator required modification to one of the scripts in order to get it to work. If you used Navigator to do the clone or didn't run conda install spyder --no-pin in the C:\Your_install_path\bin\Python\envs\arcgispro-py3 path in conda, I suspect something else is the issue
... View more
05-13-2020
01:40 PM
|
0
|
0
|
2905
|
|
POST
|
by chance are you working with mixed coordinate systems? and/or one of them is in decimal degrees? Also note, that any environment settings that arcpy "sees" need to be set explicitly in modelbuilder, My preference is to use projected data to remove that as an issue.
... View more
05-13-2020
11:12 AM
|
2
|
2
|
1369
|
|
POST
|
The whole array will be of object dtype, hence string as Joshua suggested if the structure is simple, otherwise, you have to use a compound dtype specifying the sequence of dtypes within it. Numpy can use compound dtypes as in the following example dt = [('OID_', '<i4'), ('XYZ', [('X', '<f8'), ('Y', '<f8'),('Z', '<f8')])] So instead of X, Y and Z being separate entities, you can the Y values using XYZ['Y'] (structured array) or XYZ.Y (recarray) To simplify your data structure you can convert the compound nature of the above to separate 'fields' dt = [('OID_', '<i4'), ('X', '<f8'), ('Y', '<f8'), ('Z', '<f8')]
... View more
05-12-2020
05:08 PM
|
0
|
0
|
5430
|
|
POST
|
Have you looked at... Identifying stream networks—Help | Documentation How Stream to Feature works—Help | Documentation
... View more
05-12-2020
04:29 PM
|
0
|
0
|
796
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | yesterday | |
| 1 | Saturday | |
| 1 | Thursday | |
| 1 | 3 weeks ago | |
| 1 | 01-11-2022 10:55 AM |