|
POST
|
Aggregate Points—ArcGIS Pro | Documentation Aggregate features into bins—ArcGIS Pro | Documentation or if you create your own bins (eg fishnet) Aggregate Points—Standard Feature Analysis tools | Documentation And there are other options
... View more
03-05-2020
12:28 PM
|
0
|
5
|
4418
|
|
POST
|
So your source field is also called ...Junk... ?? Maybe you had better show what is in that field as well
... View more
03-05-2020
12:21 PM
|
0
|
3
|
4002
|
|
POST
|
Geographically Weighted Regression (GWR)—ArcGIS Pro | Documentation has a caution about using nominal/categorical data which you may be running into. Read the help documentation to ensure that there aren't others that may be affecting your results. Use caution when including nominal or categorical data in a GWR model. Where categories cluster spatially, there is strong risk of encountering local multicollinearity issues.
... View more
03-05-2020
11:09 AM
|
0
|
1
|
1245
|
|
POST
|
"12345 01".split(" ")[0] '12345' visually, splitting values in a 'junk' field so that values appear in the 'More_Junk' field
... View more
03-05-2020
08:52 AM
|
0
|
5
|
4002
|
|
POST
|
split, splits on the space [0] keeps the first bit, so [1] will keep the second bit. Now if you have nulls and other 'stuff' in there, then either query for the good stuff only, or the field calculation will have to be edited
... View more
03-05-2020
08:34 AM
|
0
|
7
|
4002
|
|
POST
|
If you know what you want to use, you can import directly For instance from arcpy import gp
import arcgisscripting as ags
You can follow the import chain by examining the code in the import path (look for __init__ files) For example, when you import arcpy, the path is as follows, and the imports cascade within the imports therein. C:\YourProInstallFolder\Resources\ArcPy\arcpy Also, arcgisscripting is located in C:\YourProInstallFolder\bin\Python\envs\arcgispro-py3\Lib\site-packages So if you only need the geoprocessor, or the data access stuff, just import those directly. You will eventually develop a "chain of command" to limit importing everything in the namespace.
... View more
03-05-2020
06:37 AM
|
1
|
0
|
1600
|
|
POST
|
The instructions in the link are for 2.5, and you need to update the packages for that version if you didn't
... View more
03-05-2020
02:34 AM
|
0
|
0
|
3454
|
|
POST
|
You can specify parameters in a model's tools Model parameters—ArcGIS Pro | Documentation right-click on the tool and you can specify the parameter you want
... View more
03-05-2020
02:32 AM
|
0
|
0
|
1787
|
|
POST
|
exactly my point..that is the slice that is needed. (my example, your example fc1List = [row[0] for row in cursor] valueList = [r[0] for r in arcpy.da.SearchCursor(fc2, fld2)] If tuples are being returned, then it has to be sliced 'zilch' in [('zilch',)]
Out[1]: False
'zilch' in [('zilch',)[0]]
Out[2]: True
'zilch' in ['zilch']
Out[3]: True
... View more
03-04-2020
07:45 PM
|
2
|
0
|
1454
|
|
POST
|
"12345 01".split(" ")[0] # ---- keep as string
'12345'
int("12345 01".split(" ")[0]) # ---- convert to integer
12345 might be what you are looking for, in field calculator-ese or the 2nd one if you want integers !YourFieldWithTheValues!.split(" ")[0]
... View more
03-04-2020
04:58 PM
|
1
|
0
|
4002
|
|
POST
|
Ran a test on my own data, could be what it is returning. # ---- this returns tuples of values
with arcpy.da.SearchCursor(tbl1,["Text_vals"]) as cursor:
fc1List = [row for row in cursor]
fc1List
[('zilch',)]
# ---- This returns values
with arcpy.da.SearchCursor(tbl1,["Text_vals"]) as cursor:
fc1List = [row[0] for row in cursor]
fc1List
['zilch'] So you can't compare single values to tuples in case that is what you are getting. Try seeing if the checks work before you go to the updatecursor # tbl1, tbl2 are two tables with a common field (Text_vals)
with arcpy.da.SearchCursor(tbl1, ["Text_vals"]) as cursor:
fc1List = [row[0] for row in cursor]
print (fc1List)
tableFieldList = ['Text_vals'] # ---- field to check
with arcpy.da.SearchCursor(tbl2, tableFieldList) as tablecursor:
for tablerow in tablecursor:
if tablerow[0] in fc1List:
print("is in")
else:
print("not in")
# ---- print and run results
['zilch'.....
is in
....
... View more
03-04-2020
04:47 PM
|
2
|
0
|
1454
|
|
POST
|
Good catch. Are you suggesting that it would be useful to check the size of the legend element and compare it to the page size? LegendElement—ArcPy | Documentation elementWidth (Read and Write) The width of the element in page units. MapFrame—ArcPy | Documentation same as for MapFrame elementWidth (Read and Write) The width of the map frame on the page layout. The units assigned or reported are in page units. Maybe these checks aren't automatic.
... View more
03-04-2020
03:50 PM
|
1
|
0
|
1536
|
|
POST
|
Tony, both the tools can be used in a script, check the code samples but a Merge_management to a temporary table and a FindIdentical_management or DeleteIdentical_management might do the trick
... View more
03-04-2020
03:30 PM
|
2
|
0
|
2726
|
|
POST
|
works for me... no clue why it doesn't work for you
... View more
03-04-2020
03:24 PM
|
4
|
0
|
2342
|
|
POST
|
last = 8 # ---- change me
def seq_cal():
"""change last = 1 line to show last """
global last
a = 1
if last == 0:
last = a
else:
last = last + a
return "SSP{:>04}".format(last) python parser you need a code block emulate the above highlight the rows you want to calculate change the last = .... line to enter your previous value
... View more
03-04-2020
02:43 PM
|
2
|
3
|
2003
|
| 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
|