|
POST
|
Hello, I try to rename the fields of a feature class with their alias name, but I get an error message ERROR 99999. I use notebook in ArcGIS PRo 2.9.3 Any ideas why? inFc = "A4_Moorkulisse_2022"
fields = arcpy.ListFields(inFc)
for f in fields:
print (f.name + " - " + f.aliasName)
if f.aliasName in ("OBJECTID", "SHAPE"):
continue
else:
arcpy.management.AlterField(inFc, f.name, f.aliasName, f.aliasName) print output: A4_Moorkulisse_2022.OBJECTID - OBJECTID A4_Moorkulisse_2022.SHAPE - SHAPE A4_Moorkulisse_2022.A3_Moorkulisse_2022_A2_Moorkulisse_2022_A1_Moorkulisse_2022_SP_R - Ref_Prozent ExecuteError: ERROR 999999: Beim Werkzeug ist ein unerwarteter Fehler aufgetreten. Wenden Sie sich an den technischen Support von Esri (http://esriurl.com/support), und ziehen Sie die Fehlerhilfe zu Rate, die Informationen zu möglichen Lösungen oder Problemumgehungen enthält.
Fehler beim Ausführen von (AlterField).
... View more
10-19-2022
05:17 AM
|
0
|
3
|
944
|
|
POST
|
Hello, I observe a small problem with the arcpy.SummarizeWithin_analysis in ArcGIS Pro 2.9.3. Somehow the Summarized area is bigger than the destination area of the polygon? 100,07 %? Not that much but ugly in the attribute table 🙂 What can be the reason? Both polygon feature classes have the same coord. system and both have no overlays as far as I can say? Is it a normal inaccuracy? Or is there something wrong with the geometries? GE_Kulisse = "Projektkulisse_2018"
polys = "A18_Moorkulisse_2022"
poly = GE_Kulisse
outFeatureClass = "A19_Moorkulisse_2022"
keepAll = 'KEEP_ALL'
sumFields = ""
addShapeSum = 'ADD_SHAPE_SUM'
groupField = ''
addMinMaj = ''
addPercents = ''
outTable = ''
arcpy.SummarizeWithin_analysis(polys, poly, outFeatureClass, keepAll,
sumFields, addShapeSum, 'METERS', groupField,
addMinMaj, addPercents, outTable)
... View more
10-19-2022
12:55 AM
|
0
|
0
|
486
|
|
POST
|
Maybe have a look here ... if you don't find it https://gis.stackexchange.com/questions/131132/how-to-create-a-missing-dbf-file-for-shapefile
... View more
09-15-2022
04:46 AM
|
0
|
0
|
2685
|
|
POST
|
I think for the first part of your question I would convert the raster to polygon, add a dissolve field with one value, do a dissolve on the polygons and then do a multipart to singlepart to be able to select the wanted group size of the polygons. This polygon feature class I would further use to "select/mask" all the wanted cells of the raster data or to use as input in the zonal statistic tool for the second part of your question? https://pro.arcgis.com/de/pro-app/2.8/tool-reference/spatial-analyst/extract-by-mask.htm https://pro.arcgis.com/de/pro-app/2.8/tool-reference/spatial-analyst/zonal-statistics.htm But the second part of your question I didn't really understand ...
... View more
09-15-2022
02:01 AM
|
0
|
0
|
1822
|
|
POST
|
Maybe the problem is the recording date. If I understand it right the tool tries to write the recording date of the foto in the attribute table ... has img1 a recording date? https://pro.arcgis.com/de/pro-app/latest/tool-reference/data-management/geotagged-photos-to-points.htm EDIT: no it's not the problem - the value is then "Null" of the date field - so I don't know ... btw I can convert both pictures to point but without the option "add photos as attachment" (don't have a advanced license)
... View more
09-14-2022
06:15 AM
|
1
|
0
|
5952
|
|
POST
|
Hallo, musst du nicht einfach auch die Wassereinzugsgebiete berechnen, für die Zuordnung zu den Strängen? https://pro.arcgis.com/de/pro-app/latest/tool-reference/spatial-analyst/how-stream-order-works.htm https://pro.arcgis.com/de/pro-app/latest/tool-reference/spatial-analyst/basin.htm
... View more
08-16-2022
11:35 PM
|
0
|
0
|
742
|
|
POST
|
Could it be some kind of refreshing problem and that you can't refresh the map/ catalog view programatically in pro? Don't know, maybe something to read: https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/td-p/406325/page/3
... View more
08-10-2022
03:54 AM
|
0
|
1
|
3261
|
|
POST
|
Only an idea for a very simplified solution could be to insert the height of the dam into your digital elevation model and then run the fill tool of the spatial analyst? Maybe if you then use the minus tool between filled dem and the original dem you will hopefully get the resulting lake extend and the height of the water in each cell? Or maybe this can help you? https://learn.arcgis.com/de/projects/predict-floods-with-unit-hydrographs/
... View more
08-08-2022
05:52 AM
|
1
|
1
|
1345
|
|
POST
|
Hello, I've found a script of JoshuaBixby from here: https://community.esri.com/t5/python-questions/extend-line-up-to-polygon-feature/td-p/705806/page/2 it work well to extend lines within a polygon up to the border of the polygon feature. But it couldn't work with lines which are somehow between the polygons (see attached image - in black original line). Could you think of a solution for this? I tested "Have their center in" in line 21 instead of "within" but it doesn't work ... I use notebook in ArcGIS Pro 2.9 # -*- coding: utf-8 -*-
import arcpy
import math
arcpy.env.workspace = FGDB
arcpy.env.overwriteOutput = True
dist = 100
fc_line = "line feature class"
fc_line_1 = "Sperren_C_1"
arcpy.CopyFeatures_management(fc_line, fc_line_1)
fc_line_FL = arcpy.MakeFeatureLayer_management(fc_line_1, "fc_line")
fc_poly = "Polygon Feature Class"
fc_poly_FL = arcpy.MakeFeatureLayer_management(fc_poly, "fc_poly")
with arcpy.da.SearchCursor(fc_poly_FL, "SHAPE@") as scur:
for poly, in scur:
boundary = poly.boundary()
arcpy.SelectLayerByLocation_management(fc_line_FL, "WITHIN", poly)
with arcpy.da.UpdateCursor(fc_line_FL, "SHAPE@") as ucur:
for line, in ucur:
arr, = line.getPart()
SR = line.spatialReference
p1, p2 = arr[0], arr[1]
angle = math.atan2(p2.Y - p1.Y, p2.X - p1.X)
p = arcpy.Point(p1.X - dist * math.cos(angle),
p1.Y - dist * math.sin(angle))
arr.insert(0, p)
pn1, pn = arr[len(arr)-2], arr[len(arr)-1]
angle = math.atan2(pn.Y - pn1.Y, pn.X - pn1.X)
p = arcpy.Point(pn.X + dist * math.cos(angle),
pn.Y + dist * math.sin(angle))
arr.append(p)
line = arcpy.Polyline(arr, SR, True, False)
line = line.cut(boundary)[1]
arr, = line.getPart()
p1, pn = arr[0], arr[len(arr)-1]
p1.Z, pn.Z = 0, 0
arr.insert(0, p1)
arr.append(pn)
line = arcpy.Polyline(arr, SR, True, False)
ucur.updateRow([line])
... View more
06-23-2022
01:12 AM
|
0
|
2
|
1235
|
|
POST
|
If it's really urgent maybe you're able to use open source GIS like QGIS or OpenJump GIS: https://gis.stackexchange.com/questions/115687/achieving-flat-end-line-buffers-in-qgis
... View more
06-10-2022
03:43 AM
|
0
|
1
|
1853
|
|
POST
|
According to the help pages JohannesLindner is right - you need a advanced license in Pro 2.8 and 2.9. Also in ArcMap 10.6.1 you need a advanced license ... https://pro.arcgis.com/de/pro-app/latest/tool-reference/analysis/buffer.htm
... View more
06-10-2022
03:19 AM
|
1
|
0
|
3029
|
|
POST
|
Hallo, würde die Frage glaube ich woanders stellen (vielleicht im Datenmanagment?). Ich würde auch die Ausschreibung nicht so vornehmen. Die UAV Befliegung und die Orthobilderstellung haben ja erstmal nichts mit ESRI Produkten zu tun, und nicht jede Befliegungsfirma arbeitet mit ESRI Produkten. Du raubst damit vielen Anbietern die Möglichkeit mitzubieten .... . Ich würde das also auftrennen in Befliegungsdaten und Datenmanagment? Grüße Johannes
... View more
06-09-2022
11:13 PM
|
0
|
0
|
1821
|
|
POST
|
Hello, I think the problem is "round scale to nearest 1000", change it to 100 or 10?
... View more
05-30-2022
09:24 PM
|
2
|
1
|
797
|
| 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 |
a week ago
|