|
POST
|
I might be overly simplifying but it might be worth using a tool such as https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/generate-near-table.htm I'd recommend you create the best spatial index you can for both features prior to running the tool. If it's faster then you can then just run a SeachCursor on the table to create whatever dictionaries you need.
... View more
04-10-2023
06:42 AM
|
1
|
1
|
3464
|
|
POST
|
I'd test on a subset where everything is in the same planimetric xy coordinate system. Something is in WGS84 so I'd try to reproject that.
... View more
04-10-2023
03:41 AM
|
0
|
0
|
2823
|
|
POST
|
It sounds like your coordinates are from a projected coordinate system and you need to define that coordinate system at the add XY / make XY event layer stage. Your layer is probably incorrectly define as WGS84 and taking the XY as Lon Lat. Find out the coordinate system and set that in the map and the add XY tool.
... View more
04-09-2023
01:20 PM
|
2
|
0
|
1154
|
|
POST
|
Can you share your input parameters? WGS84 jumps out at me, do you have Planar or Geodesic set?
... View more
04-08-2023
03:23 PM
|
0
|
2
|
2878
|
|
POST
|
You can copy/paste the data from Excel to the attribute table directly. Just be sure about how your data has been sorted. Consecutive rows and columns can also be pasted-in. I believe new rows are created if the paste count exceeds the current number of rows. For combining 2 column values you can use Calculate Field (right-click on the column heading in the attribute table and Calculate Field button or GP tool https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field.htm). You then build a simple expression using Arcade or Python e.g. in Python to add 2 string fields with a space between: !FieldName1! + " " + !FieldName2! I generally avoid doing this on a field that currently contains data unless I'm absolutely sure of the expression. Generally I find it best to create a new field and calculate the values into that. I understand that edits can be undone but mistakes happen.
... View more
04-08-2023
12:24 PM
|
0
|
0
|
6162
|
|
POST
|
https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/feature-to-polygon.htm
... View more
04-08-2023
12:11 PM
|
0
|
0
|
1074
|
|
POST
|
Might be a case for an inset map. Google inset maps or multiple maps in layout and I think there's several videos. Might be best to have your main map as your solar panels and a smaller map to identify the borough.
... View more
04-08-2023
05:43 AM
|
1
|
1
|
2428
|
|
POST
|
I've tried to simplify the logic by using return statements. tested in https://developers.arcgis.com/arcade/playground/ with dummy variables and seems to work as intended. //dummy values for testing
var Run_Slope1_PC = 7
var ramp_style = 'Blended_Transition'
//if empty FAIL
if (IsEmpty(Run_Slope1_PC)) {
return 'Fail'
}
//if >5 and (blendedT or CutThru) FAIL
if (Run_Slope1_PC > 5 && (ramp_style == 'Blended_Transition' || ramp_style == 'Cut_Through')) {
return 'Fail'
}
//anything else <=8.3 PASS
if (Run_Slope1_PC <= 8.3) {
return 'Pass'
}
else {
return 'Fail'
}
... View more
04-08-2023
04:58 AM
|
0
|
0
|
4855
|
|
POST
|
It seems like supports() is giving a false positive. I would try and catch the specific layer causing the issue in a try except block initially as that might help you figure out the cause. I'd also avoid using map as an object name as it could cause confusion, but that's just my opinion.
... View more
04-07-2023
09:24 AM
|
0
|
0
|
875
|
|
POST
|
Seems strange. Are you sure the layer is referenced rather than the FC?
... View more
04-07-2023
09:13 AM
|
0
|
0
|
2268
|
|
POST
|
Obviously try it on a copy and/or subset of your data first (and keep a backup of the original for some time regardless) also close down arcmap etc to get rid of any locks for renaming: import arcpy
import os
index_fc = r'C:\ArcGIS\yourFGDBgdb\Your index polygons'
line_gdb = r'C:\ArcGIS\FGDB containing your lines.gdb'
#list the fc names and paths to line FCs
arcpy.env.workspace = line_gdb
lines_fclist = [[fc, os.path.join(line_gdb, fc)] for fc in arcpy.ListFeatureClasses(feature_type="line")]
#create a list to store FC name and
#single line geom from each lines FC
linefc_list=[]
for line_fc in lines_fclist:
with arcpy.da.SearchCursor(line_fc[1],["SHAPE@"]) as cursor:
for row in cursor:
linefc_list.append([line_fc[0],row[0]])
break
#create a dictionary of line fc path and intersecting index polygon name
index_line_dict = {}
with arcpy.da.SearchCursor(index_fc,[“Tile_Num","SHAPE@"]) as cursor:
for row in cursor:
for line in linefc_list:
if row[1].disjoint(line[1]) is False:
index_line_dict[os.path.join(line_gdb, line[0])] = row[0]
break
print(index_line_dict)
#rename lines to match
for filepath in index_line_dict:
arcpy.management.Rename(filepath,index_line_dict[filepath],"FeatureClass")
... View more
04-05-2023
02:19 PM
|
1
|
2
|
2405
|
|
POST
|
Are the lines in their own FGDB separate from the index polygon, what's the layout of the data - is there anhything else in that FGDB? If you iterated through that workspace it would only return the line FCs?
... View more
04-05-2023
12:46 PM
|
0
|
1
|
2412
|
|
POST
|
Was puzzling over how a default time could get altered, the client explanation makes perfect sense. Do you know if Esri changed the default time from 12 am to 12pm? I guess doing so greatly reduced the chances of date changes due to timezone differences.
... View more
04-04-2023
12:58 PM
|
0
|
0
|
1129
|
|
POST
|
var dist = DistanceGeodetic($feature, w_point, 'meters')
... View more
04-03-2023
10:33 AM
|
1
|
0
|
1591
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-17-2023 12:44 PM | |
| 1 | 06-13-2025 01:08 PM | |
| 1 | 09-25-2025 03:19 PM | |
| 1 | 09-24-2025 02:35 PM | |
| 1 | 09-17-2025 02:42 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-06-2026
06:42 AM
|