|
POST
|
This will get you started: 1.) Loop through layers: ListLayers— ArcGIS for Desktop 2.) Search through layer attributes: SearchCursor— ArcGIS Desktop a.) I would store data in a list [] 3.) Print data in script tool (arcpy.AddMessage) or print in Python IDLE (print ...)
... View more
02-21-2017
07:18 AM
|
1
|
0
|
4152
|
|
POST
|
You will need to Make Feature Layer out of both feature classes. Then run the Select Layer By Location tool. From there you can grab necessary data based on the selected layer with the SearchCursor function.
... View more
02-13-2017
06:40 AM
|
0
|
0
|
1653
|
|
POST
|
I would copy the .geodatabase file to another computer. Save it on the C:\ drive of that machine and try running the tool on that file. Try 10.4 first, if that is the version the original file came from.
... View more
02-10-2017
12:15 PM
|
0
|
3
|
1595
|
|
POST
|
Is the .geodatabase file stored on a local machine? Or over a network?
... View more
02-10-2017
10:36 AM
|
0
|
5
|
1595
|
|
POST
|
You have to specify a complete file path to be moved. For example, you're saying to copy 'source' which is a folder path. You want to include the filename which resides in that folder. folder = r'C:\Test\Path\to\folder'
destination r'C:\Test\Path\to\destination'
file = '12540382834.zip'
shuitl.move(folder+'/'+file, destination)
... View more
02-10-2017
09:01 AM
|
0
|
5
|
6910
|
|
POST
|
Have you tried this tool? Convert Coordinate Notation—Data Management toolbox | ArcGIS Desktop I'm assuming you're using ArcGIS.
... View more
02-10-2017
08:46 AM
|
2
|
1
|
4540
|
|
POST
|
import arcpy
table = r'path to table'
with arcpy.da.SearchCursor(table, ['Arsons','Burglaries','Assault']) as cursor:
for row in cursor:
if row[0] is not None:
row0value = row[0]
if row[1] is not None:
row1value = row[1]
if row[2] is not None:
row2value = row[2]
arcpy.CalculateField_management(table, "Arsons", row0value)
arcpy.CalculateField_management(table, "Burglaries", row1value)
arcpy.CalculateField_management(table, "Assault", row2value) This is assuming all data in the table is Null except for the value wanting to be copied. I haven't tested it.
... View more
02-06-2017
11:55 AM
|
1
|
0
|
3408
|
|
POST
|
Ted has the right idea. Keep an 'Inspections' table in the geodatabase with a relationship to the asset. Whenever the asset is inspected, update the 'Inspections' table with the date and any other attributes.
... View more
02-02-2017
10:27 AM
|
0
|
0
|
4486
|
|
POST
|
Does it look something like this? filepath = r'path to the .sde'
arcpy.env.workspace = filepath
edit = arcpy.da.Editor(filepath)
... View more
12-14-2016
10:06 AM
|
1
|
1
|
3839
|
|
POST
|
This may get you started: import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
outputDir = r'path to output folder location to store .shp'
for x in arcpy.mapping.ListLayers(mxd):
desc = arcpy.Describe(x)
path = desc.catalogPath
arcpy.FeatureClassToShapefile_conversion (path, outputDir)
... View more
12-14-2016
09:54 AM
|
0
|
4
|
1227
|
|
POST
|
Have you tried setting the env workspace? Current Workspace (Environment setting)—Help | ArcGIS for Desktop Right now, your 'workspace' is just a variable. It's not setting the arcpy.env.workspace. Also, that workspace is pointing to 'C:\Users\joanna.grossman\AppDate\Roaming\ESRI\Desktop10.4\ArcCatalog'... which I'm pretty sure isn't correct.
... View more
12-14-2016
09:35 AM
|
0
|
5
|
3839
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-28-2024 11:43 AM | |
| 1 | 09-12-2025 07:32 AM | |
| 1 | 10-26-2018 06:50 AM | |
| 1 | 10-26-2018 08:43 AM | |
| 1 | 02-25-2016 07:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-02-2025
01:10 PM
|