|
POST
|
If I use the Python Window it's faster I think, about 20 Minutes for my table? Script Tool is really fast, about a minute ... I think that's strange?
... View more
2 weeks ago
|
0
|
1
|
154
|
|
POST
|
Hello, The following code is very slow in jupyter notebook, why? Any Ideas? ArcGIS Pro 3.4.3 It's even many times faster to go through the steps manually with the same geoprocessing tools? An excel table with about 50 000 points takes an hour or more to process? To write in memory isn't really faster in the code? import arcpy
import os
input_folder = r"Folder"
gdb = r"File GDB"
x_field = "X"
y_field = "Y"
wgs84 = arcpy.SpatialReference(4326)
etrs32 = arcpy.SpatialReference(25832)
arcpy.env.overwriteOutput = True
def ensure_numeric_fields(table, x_field, y_field):
"""
Converts X/Y fields to numeric FLOAT fields if needed.
Creates new fields X_NUM and Y_NUM and fills them with numeric values.
"""
# New safe numeric fields
x_num = x_field + "_NUM"
y_num = y_field + "_NUM"
# Create numeric fields if not already present
if x_num not in [f.name for f in arcpy.ListFields(table)]:
arcpy.management.AddField(table, x_num, "DOUBLE")
if y_num not in [f.name for f in arcpy.ListFields(table)]:
arcpy.management.AddField(table, y_num, "DOUBLE")
# Convert text numbers → float
with arcpy.da.UpdateCursor(table, [x_field, y_field, x_num, y_num]) as cursor:
for row in cursor:
try:
row[2] = float(str(row[0]).replace(",", ".")) # X
row[3] = float(str(row[1]).replace(",", ".")) # Y
except:
row[2] = None
row[3] = None
cursor.updateRow(row)
return x_num, y_num
excel_files = [f for f in os.listdir(input_folder) if f.lower().endswith((".xls", ".xlsx"))]
for excel in excel_files:
excel_path = os.path.join(input_folder, excel)
name = os.path.splitext(excel)[0]
print(f"Processing: {excel}")
# 1 — Convert Excel to table
table_out = os.path.join(gdb, f"{name}_tbl")
arcpy.ExcelToTable_conversion(excel_path, table_out)
# 2 — Make sure X and Y are numeric
numeric_x, numeric_y = ensure_numeric_fields(table_out, x_field, y_field)
# 3 — Now create XY points from numeric fields
fc_wgs = os.path.join(gdb, f"{name}_WGS84")
arcpy.management.XYTableToPoint(
table_out,
fc_wgs,
numeric_x,
numeric_y,
coordinate_system=wgs84
)
# 4 — Project to EPSG:25832
fc_etrs = os.path.join(gdb, f"{name}_25832")
arcpy.management.Project(fc_wgs, fc_etrs, etrs32)
print(f" → Created {fc_etrs}")
print("All Excel files processed.") If I use python console in QGIS it's finished under one minute?
... View more
3 weeks ago
|
0
|
3
|
274
|
|
POST
|
Thank you for your answer. I used also a cellsize of 1m but in a longer time period. I think I used a hole vegetation period. My area include big trees, smaller trees and no trees, so I tried to represent this with different classes of shadows. But I stopped working on this because it were only assumed values.
... View more
10-29-2025
05:44 AM
|
0
|
0
|
66
|
|
POST
|
Your examples are strange, maybe open a ticket with ESRI technical support? Don't know SMS, but I sometimes try to work with HEC-RAS. It's very complicated to build a working model there. For me it look like ArcGIS Pro does a lot of simplification and generalization to be that fast in modeling? It's strong in graphical things in 3D but maybe not that reliable?
... View more
09-19-2025
02:01 AM
|
0
|
0
|
170
|
|
POST
|
Have you tried GeoPandas? https://geopandas.org/en/stable/docs/user_guide/io.html#writing-spatial-data
... View more
09-10-2025
08:08 AM
|
1
|
2
|
838
|
|
POST
|
Hello, according to the technical paper: "It is intended to complement and not replace existing engineering tools and models". I think it can't replace complex software like hec ras? https://www.esri.com/content/dam/esrisites/en-us/media/technical-papers/flood-simulation-arcgis-pro.pdf
... View more
09-05-2025
02:48 AM
|
0
|
1
|
368
|
|
POST
|
Thank you for the code and explanation. But I think the further steps exceed my python possibilities. There's specialized commercial software like autoturn or heavyGoods: https://autoturnonline.com/?gad_source=1&gad_campaignid=910989046&gclid=EAIaIQobChMIp_vNkPH3jgMVR4KDBx0OUAZ8EAAYAyAAEgKxCPD_BwE#vehicle-turning https://heavygoods.net/de/apps/swept-paths
... View more
08-06-2025
09:50 PM
|
0
|
0
|
308
|
|
POST
|
Hello, I would like to calculate drag curves/ swept paths for a very long truck which transports rotor blades of a wind turbine. Is there a possibility to do this in arcgispro in a simplified manner for a line feature class?
... View more
08-05-2025
10:41 PM
|
0
|
3
|
374
|
|
POST
|
I would try other software? But there are as well problems with open water and pictures with no land on it: "You cannot map over water with OpenDroneMap software, unless you can also capture some of the land in each image (but sounds like this is not the case here)." for OpenDroneMap: https://community.opendronemap.org/t/mapping-over-water/23169 "I think the ultimate problem is the water. Water is difficult, and it is expected that Mapper will cut most of it out. What caught my eye were the sharp right angles in the orthomosaic. It had the appearance of a tiling issue. At this point, I do not think that was the problem. It is the water." for Pix4D: https://community.pix4d.com/t/orthophoto-cutting-problem-on-sea-water/29008
... View more
05-13-2025
05:05 AM
|
1
|
0
|
1026
|
|
POST
|
Are there brackets missing in the con statemant? Con(((inRaster1 == 1) & (inRaster2 == 5)), inRaster1 + inRaster2, 99) https://desktop.arcgis.com/de/arcmap/latest/tools/spatial-analyst-toolbox/con-.htm
... View more
05-12-2025
04:45 AM
|
0
|
0
|
297
|
|
POST
|
if snap doesn't work in the link could be a python solution? https://community.esri.com/t5/python-questions/extend-line-up-to-polygon-feature/td-p/705806
... View more
04-28-2025
03:40 AM
|
1
|
0
|
843
|
|
POST
|
Hello, I want to use the raster solar radiation tool to compare the impact of tree removal measurements on solar intensity. To show that the solar radiation is bigger in tree removal areas I use a digital surface model before and after the measurements. With the solar radiation then I use focal statistics to find the minimal values in the given area where vegetation grows because I want to find the shadow values? In areas with no vegetation i keep the calculated solar radiation values. What do you think, is that a possible solution? Any ideas are welcome?
... View more
04-06-2025
10:45 PM
|
0
|
2
|
486
|
|
POST
|
Think you need to contact ESRI technical support? https://community.esri.com/t5/arcgis-storymaps-questions/storymap-not-loading/m-p/1344834#M4282
... View more
01-09-2025
12:46 AM
|
0
|
0
|
630
|
|
POST
|
Are you sure that the extent is wrong? I think it should be the correct extent? Maybe you could test it if you use mapFrame.camera.setExtent(arcpy.Describe(lyr).extent) to zoom in the map Frame to another extent, the one of a layer file in your map Frame? There's also a solution here: https://gis.stackexchange.com/questions/467522/adding-data-to-existing-aprx-layout-and-zooming-to-extent-of-new-data-using-arc
... View more
08-27-2024
04:59 AM
|
0
|
0
|
932
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-10-2025 08:08 AM | |
| 1 | 05-13-2025 05:05 AM | |
| 1 | 04-28-2025 03:40 AM | |
| 4 | 08-13-2024 10:49 PM | |
| 1 | 08-13-2024 09:52 PM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|