|
POST
|
The Select Layer By Location tool allows for an ArcPy Geometry object to be passed as the selecting layer. I would extract the polygon you want, store it in an ArcPy Geometry, then loop through all your feature layers in the map using Select Layer By Location on each one (with mixed geometry types, I would use basic intersection). After running Select Layer By Location, you run Get Count to see how many features were selected.
... View more
03-10-2021
01:58 PM
|
3
|
0
|
11007
|
|
POST
|
Although Includes will be the path moving forward, it is new in Arcade. If you are working with < 1.12 Arcade, the pattern is to use IndexOf.
... View more
03-10-2021
09:52 AM
|
4
|
1
|
6493
|
|
POST
|
You can license multiple roles on the same GIS Server, e.g., ArcGIS GIS Server and ArcGIS Image Server, and each role adds functionality regardless of the other roles. That said, licensing two roles is two licenses and not one.
... View more
03-10-2021
08:37 AM
|
0
|
0
|
2196
|
|
POST
|
Just for learning purposes, it is helpful to look to the documentation: 5.5 Dictionaries -- Data Structures -- Python 3.9.2 documentation The dict() constructor builds dictionaries directly from sequences of key-value pairs Using an annotated, multi-line format to represent the single-line of code: iterable = csv.reader(master) # CSV reader object is an iterable
dictionary = dict( # dictionary constructor
( # generator expression
(count, value) # key-value pair
for count, value in # for comprehension
enumerate( # enumerating function
iterable # iterable or sequence
)
)
)
master_indices = dictionary # master_indicies is a dictionary
... View more
03-07-2021
10:35 AM
|
0
|
0
|
3617
|
|
POST
|
@JoanneMcGraw, in the new GeoNet (aka Esri Community) platform, multiple replies can be marked as the solution, if you want.
... View more
03-05-2021
10:03 AM
|
0
|
0
|
6963
|
|
POST
|
Processes within a pool don't share memory unless objects are passed as specific multiprocessing data types, e.g., multiprocessing.Array . Since you are not doing that in your code (I am not even sure any ArcPy objects can be passed that way), the in-memory workspace in each worker process is independent of the others. An example: from multiprocessing import Pool
import arcpy
import time
i = 0
def f(x):
global i
i += 1
arcpy.CreateTable_management("in_memory", "xx{}".format(i))
time.sleep(1)
arcpy.env.workspace = "in_memory"
return arcpy.ListTables()
if __name__ == '__main__':
with Pool(4) as p:
print(p.map(f, range(6))) Yields: [['xx1'], ['xx1'], ['xx1'], ['xx1'], ['xx1', 'xx2'], ['xx1', 'xx2']]
>>> As you can see, each of the four worker processes is able to create the same-named table in its in-memory workspace, and each arcpy.ListTables() only sees the tables in its own in-memory workspace.
... View more
03-05-2021
09:58 AM
|
0
|
0
|
1842
|
|
POST
|
NumPy has been a standard package in Esri's Python deployment for years. If your Python deployment has ArcPy, it has NumPy installed too.
... View more
03-05-2021
08:41 AM
|
0
|
0
|
5434
|
|
POST
|
Does it happen when running the tool on any field in the data set or just a specific field? The fact you exported it to a different data format, DBF, and it still generates the same error is odd. I was initially thinking some corrupt data, but usually trying to export data would cause that to show itself.
... View more
03-05-2021
08:32 AM
|
0
|
0
|
5791
|
|
POST
|
If you want to delete a service, you need to go through the Admin API and not the REST Services endpoint. If you are getting a list of services, then you have the service already, you just need to grab it from the list. Iterate through the list to find the one you are interested in.
... View more
03-04-2021
03:08 PM
|
0
|
0
|
7038
|
|
POST
|
David is correct, passing an SQL WHERE clause to MakeFeatureLayer creates a layer with a DefinitionQuery set to the SQL WHERE clause. The definition query is separate from selections and applies before the Select By tools.
... View more
03-04-2021
02:58 PM
|
1
|
0
|
1893
|
|
POST
|
Are you connecting directly to GIS Server or through a Web Adaptor? If the latter, does the WA allow admin access or not?
... View more
03-04-2021
12:34 PM
|
0
|
0
|
4210
|
|
POST
|
The "filename" is the name you want on the FTP Server, not the name of the file on the local machine. The local file is already addressed through the file object being passed to the command.
... View more
03-04-2021
11:56 AM
|
2
|
0
|
5400
|
|
POST
|
This should work: !DEFMAINTENANCE! - !COST! if !MAINTENANCETYPE! in ('DM General','DM Asset Protection','DM Priority Safety Concern') else !MAINTENANCECOMPLETE!
... View more
03-03-2021
07:29 AM
|
1
|
0
|
1986
|
|
POST
|
EGDBs can be deployed on a variety of DBMS, so it is good to include which one since different DBMS implement SQL support differently.
... View more
03-03-2021
07:25 AM
|
0
|
0
|
5124
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2026 07:04 AM | |
| 1 | 07-17-2026 06:54 AM | |
| 2 | 07-06-2026 12:29 PM | |
| 1 | 07-06-2026 12:00 PM | |
| 2 | 06-05-2026 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|