|
POST
|
/blogs/dan_patterson/2016/08/14/script-formatting would help with line numbers You might want to check the field names to make sure. Maybe show the results of your print statements. Was there an error? or didn't it work, it isn't clear from the output
... View more
02-25-2020
12:48 PM
|
0
|
2
|
3062
|
|
POST
|
The example I showed was for setting them both and it worked in ArcGIS Pro 2.5
... View more
02-25-2020
12:43 PM
|
5
|
16
|
4547
|
|
POST
|
It was saving in the code I was referring to. That seems to be the case in the code samples in the links. And if you have Pro open when you are using your code, you should be using "CURRENT" rather than a path to the aprx
... View more
02-25-2020
10:07 AM
|
1
|
1
|
2098
|
|
POST
|
If more people would set appropriate defaults, it would solve lots of problems /blogs/dan_patterson/2019/11/28/the-solution-to-null-in-tables
... View more
02-25-2020
10:05 AM
|
0
|
0
|
974
|
|
POST
|
do you save the aprx? TextElement—ArcPy | Documentation or are you hoping this does it interactively with the project open?
... View more
02-25-2020
08:09 AM
|
0
|
3
|
2098
|
|
POST
|
Jeff, LowestPosition is to enable on to examine data which may have a sequential nature. For instance, data collected over time. The example that is used represents 3 separate rasters collected at different times for some attribute. If you are interested in "when" something happened you would use Lowest Position—Help | Documentation Highest Position—Help | Documentation or even Popularity—Help | Documentation For these tools, it is less about the value in the raster but the sequential nature of the data. The topic in the "concepts" section has further explanations which may make it clearer (or murkier ) Finding the position from an input list meeting a specified criterion—Help | Documentation
... View more
02-25-2020
03:22 AM
|
1
|
1
|
3835
|
|
POST
|
Don, there is a fuzzy section on tool validation code for web tools. Authoring web tools with Python scripts—ArcGIS Pro | Documentation whether it applies seems to depend on what you are trying to validate
... View more
02-24-2020
06:57 PM
|
0
|
1
|
1624
|
|
POST
|
Your friend einsum.... The lengths are in sequential clockwise order from the start point (you can always determine/produce polygon points either as a separate feature class or values in a table.) def lengths(poly):
"""Polyline lengths or polygon perimeter."""
def _cal(a):
"""Perform the calculation, mini-e_leng."""
diff = a[:-1] - a[1:]
return np.sqrt(np.einsum('ij,ij->i', diff, diff))
return _cal(poly)
[lengths(p) for p in [b1, b2, b3, b4]]
[array([ 10.0, 10.0, 10.0, 10.0]),
array([ 10.0, 11.2, 11.2]),
array([ 11.2, 10.0, 11.2]),
array([ 11.2, 11.2, 10.0])]
# ---- If you want to experiment
b1
array([[ 10.0, 0.0],
[ 10.0, 10.0],
[ 20.0, 10.0],
[ 20.0, 0.0],
[ 10.0, 0.0]])
b2
array([[ 20.0, 0.0],
[ 20.0, 10.0],
[ 30.0, 5.0],
[ 20.0, 0.0]])
b3
array([[ 15.0, 20.0],
[ 20.0, 10.0],
[ 10.0, 10.0],
[ 15.0, 20.0]])
b4
array([[ 10.0, 0.0],
[ 0.0, 5.0],
[ 10.0, 10.0],
[ 10.0, 0.0]])
... View more
02-24-2020
05:16 PM
|
1
|
1
|
5150
|
|
POST
|
Moving isn't the method. You have to pick the long side that will remain stationary, determine the short edge lengths and decide which you will use and derive its length. From the end points of the fixed long side and the desired edge length, you need to calculate the perpendicular offset points and replace the 'bad' long side points with these new values. You will then have a rectangle. You could do this iteratively, but that would be a wasted effort. If these were constructed, make sure that the construct polygons with right angles is used.... 90 degrees all the time
... View more
02-24-2020
03:48 PM
|
2
|
1
|
5150
|
|
POST
|
02-24-2020
12:21 PM
|
7
|
18
|
4547
|
|
POST
|
put something in the map so it has data to work with
... View more
02-24-2020
11:50 AM
|
6
|
1
|
4547
|
|
POST
|
Chet, my last line says exactly that. The xy table will have to be converted to a featureclass, then either append or merge will have to be used to get existing and new data together. The two are slightly different in how they do things. Sounds like you could put together a model to do this, simply by using one of those two tools and XY Table To Point—Data Management toolbox | Documentation
... View more
02-24-2020
10:09 AM
|
1
|
0
|
3412
|
|
POST
|
In your example, a majority filter with FOUR for number of neighbors should work in most situations Majority Filter—Help | Documentation
... View more
02-24-2020
09:47 AM
|
0
|
2
|
3835
|
|
POST
|
There is no updating an existing file with new data except Append—Data Management toolbox | Documentation or if you want to create a new one from existing ones Merge—Data Management toolbox | Documentation But it won't shortcut your xytable step
... View more
02-24-2020
09:44 AM
|
0
|
0
|
3412
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-03-2017 11:39 AM | |
| 1 | 08-05-2019 05:21 PM | |
| 1 | 09-02-2016 08:05 AM | |
| 1 | 01-15-2018 01:10 PM | |
| 1 | 09-17-2018 12:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|