|
POST
|
I found a solution to this problem based on James Whitacre answer from this thread. Copy and paste the default, read-only 'arcgispro-py3' env in 'C:\Program Files\ArcGIS\Pro\bin\Python\envs' to 'C:\Users\[username]\AppData\Local\ESRI\conda\envs' I created a new directory on my C: drive and pasted the copied directory there. (C:\ArcGIS_Pro\Conda\Cloned_Envs) Rename the folder to be unique (e.g. 'arcgispro-py3-username') Open ArcGIS Pro, then Package Manager, and activate the env (Note that a new 'proenv.txt' file is added to the env folder. I am not sure what this does, but it lists the folder of the newly create env.)
... View more
10-30-2019
07:25 AM
|
10
|
0
|
13769
|
|
POST
|
I cannot clone my Python environment with ArcGIS Pro 2.4.2. I get an error with no error message as to why it failed. How can I install packages without cloning my environment?
... View more
10-24-2019
01:47 PM
|
2
|
9
|
15955
|
|
POST
|
If you're using a Strip Map Index, you can summarize all data that falls within the boundaries of each SMI feature (Use Summarize Within. From there you can add a Table Frame to the map layout and display the summarized attributes pulling from the SMI features.
... View more
10-14-2019
01:02 PM
|
0
|
0
|
863
|
|
POST
|
I have run the "Summarize Within" GP tool in ArcGIS Pro 2.3.3 and it seems to be giving incorrect results. The input is a Parcel feature class with a definition query applied to only show one parcel. The summary polygon feature class is representing a site that also has a definition query applied. After running the "Add Geometry Attributes" GP tool, the [POLY_AREA] field reads '124999.66403816' (see image 1). But, after running the "Summarize Within" tool, the summary area found in the result table reads '125018.31814394'. Does anyone have any idea why? 1.) Before running "Summarize Within" with inputs 2.) Result table after "Summarize Within" tool is complete
... View more
06-06-2019
06:41 PM
|
5
|
6
|
2369
|
|
POST
|
This is kind of a long-winded answer, but it should give you the results you're looking for. Since you did not specify, I assume your date field is in a format like this 5/31/2019. date = str'5/31/2019'
ds = date.split('/')
formatted = ds[2] + ds[0] + ds[1]
>>> formatted
'2019531'
... View more
05-31-2019
05:44 AM
|
1
|
0
|
7759
|
|
POST
|
If you have a newer camera that stores exif coordinate metadata (most newer smart phones capture this) you could take pictures outside of the Collector app and geolocate them with ESRI's Geotagged Photos to Point tool. If I understand correctly, you want to use Collector JUST to collect the centerline of trail with a GPS receiver hooked up, correct? And take pictures outside of the Collector app?
... View more
05-02-2019
01:15 PM
|
0
|
1
|
1187
|
|
POST
|
Have you looked into enabling attachments for the polyline feature class? An overview of the Attachments toolset—Data Management toolbox | ArcGIS Desktop. Or if you have many feature classes that are being consumed in the web map, you can enable attachments on all of them. This would allow users to capture photos from the point, line, polygon features they're editing in Collector.
... View more
05-02-2019
11:54 AM
|
0
|
0
|
1187
|
|
POST
|
Jarret, Thanks so much for the reply. It's funny I actually thought of that and tried it out yesterday, but I don't think it will work with a map series with a rotated Map Frame. When the Map Frame is not rotated, the custom symbols look good. In Layout with Map Series enabled (and rotation is set via a Strip Map Index), the symbols don't honor the rotation of the Map Frame. Is there a workaround for this?
... View more
05-02-2019
06:32 AM
|
0
|
0
|
2452
|
|
POST
|
Is there a way to change the arrow and line color of a dimension feature class in ArcGIS Pro. I see where you can change the text color, but not the arrow/line color. I am using 2.3.2 and can't seem to find it anywhere.
... View more
04-30-2019
06:57 AM
|
0
|
4
|
2925
|
|
POST
|
All all JPGs stored in the same directory? If so, you can use string formatting and an update cursor to create a complete path. Also, a Calculate Field could work as well. Test this on scratch data first (create a backup). import arcpy, os
fc = r'pathto\Projects\DOT_SignInventory\Data.gdb\WCDOT_Signs'
jpg_dir = r"P:\GIS_Highway_Dept\Applications\Sign Inventory\Photos\CH01"
fields = ['Post_Number', 'Photo']
with arcpy.da.UpdateCursor(fc, fields) as cursor:
for row in cursor:
path_to_jpg = """{0}\{1}.jpg""".format(jpg_dir, row[0])
cursor.updateRow(row)
del cursor
... View more
03-19-2019
08:52 AM
|
1
|
4
|
2159
|
|
POST
|
You could build a dictionary of both geometries and compare them with arcpy. However, I don't know if this will be any faster... especially connecting to a non-local database. I would test this on scratch data first. import arcpy
#datasources
polygon = r'path\to\polygon'
point = r'path\to\point'
#cursor objects
polyCur = arcpy.da.SearchCursor(polygon, ['SHAPE@','PlanRefID'])
pointCur = arcpy.da.SearchCursor(point, ['SHAPE@','OBJECTID'],"PlanRefID IS NULL")
#dictionary to store geometry:value pairs for comparison
poly_dict = {row[0]:row[1] for row in polyCur}
point_dict = {row[0]:row[1] for row in pointCur}
#populated match dictionary of polygon.PlanRefID, if point geom is within poly geom
#see here: http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-classes/point.htm
match = {}
for pnt in point_dict:
for poly in poly_dict:
if pnt.within(poly):
ID = point_dict[pnt]
value = poly_dict[poly]
match[ID] = value
#could add qry to make it run faster.. may not work with different data formats (.shp)
qry = "OBJECTID IN {}".format(tuple(k for k in match))
#iterate over points w/ qry and update PlanRefID if OBJECTID is found in dictionary
with arcpy.da.UpdateCursor(point, ['OBJECTID','PlanRefID'],qry) as cursor:
for row in cursor:
if row[0] in match:
row[1] = match[row[0]]
cursor.updateRow(row)
del cursor
Lastly, I created a similar ESRI Script Tool that has worked successfully with ArcMap 10.4. I call is Spatially Append Attributes.
... View more
03-13-2019
12:09 PM
|
1
|
1
|
2184
|
|
POST
|
This tool should do it: Table To Excel—Conversion toolbox | ArcGIS Desktop
... View more
03-05-2019
01:29 PM
|
2
|
1
|
612
|
|
POST
|
Aaron, Perhaps the some code is broken prior to exporting the map series. I have quickly written the code below to test the functionality of the MapSeries module, and it seems to be working okay. This was completed without any errors and with a proper output. import arcpy
datasource = r'path/to/aprx.aprx'
aprx = arcpy.mp.ArcGISProject(datasource)
l = aprx.listLayouts()[0]
if l.mapSeries.enabled is True:
print ("Printing map series for layout: {}".format(l.name))
ms = l.mapSeries
ms.exportToPDF(r'desktop\path\MapSeries_Test.pdf',"ALL",
"",
"PDF_SINGLE_FILE",
150,
"BEST",
True,
"ADAPTIVE",
True,
"LAYERS_ONLY",
True,
80,
True,
False) This was run with Python 3.6.6 with ArcGIS Pro 2.3.
... View more
02-26-2019
09:13 AM
|
2
|
1
|
7193
|
|
POST
|
First, are you getting any errors? I think you're simply checking to see if the map series is enabled (line 31) instead of enabling MapSeries if the layout does not already have it enabled. Replace the lines 28 - 32 in your existing code with the snippet below and see if you get any results. #export mapseries as PDF - This Works
if not l.mapSeries is None:
ms = l.mapSeries
if ms.enabled:
ms.exportToPDF(r"C:\EsriPress\Ex3_SelectedFeatures.pdf", "ALL", "", "PDF_SINGLE_FILE", 150, "BEST", True, "ADAPTIVE", True, "LAYERS_ONLY", True, 80, True, False)
else:
ms.enabled = True
ms.exportToPDF(r"C:\EsriPress\Ex3_SelectedFeatures.pdf", "ALL", "", "PDF_SINGLE_FILE", 150, "BEST", True, "ADAPTIVE", True, "LAYERS_ONLY", True, 80, True, False)
... View more
02-26-2019
07:23 AM
|
1
|
3
|
7194
|
| 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 |
Tuesday
|