|
POST
|
Could this help you: https://community.esri.com/t5/python-questions/simple-merge-of-shapefiles-in-a-single-folder/td-p/337113
... View more
04-13-2022
02:07 AM
|
1
|
0
|
760
|
|
POST
|
Don't know if I understand you right, but there's a tool "add surface information" in Spatial Analyst? Maybe you can use it to add the information of the geotiff to your feature class of buildings? https://pro.arcgis.com/de/pro-app/latest/tool-reference/spatial-analyst/add-surface-information.htm
... View more
04-13-2022
01:39 AM
|
1
|
0
|
1289
|
|
POST
|
Could it be that updateConnectionProperties method is only for Pro aprx projects, not ArcMaP mxd? Updating and fixing data sources with arcpy.mapping—ArcMap | Dokumentation (arcgis.com)
... View more
04-12-2022
03:58 AM
|
3
|
0
|
1437
|
|
POST
|
Hello, i've slightly adapted a script of Bera - Stackexchange - https://gis.stackexchange.com/questions/308705/split-a-line-at-a-specific-elevation It should set a point every 10 cm hight change on a line. The script is somehow working but not very efficient, is there a better way to do it? Originally the script was for one best point on a line ... How not to write single bestpoints to fclass? Any ideas? # erzeugt Punktshape alle x cm Hoehe entlang Linie
import arcpy
import numpy as np
arcpy.env.overwriteOutput = True
arcpy.env.workspace = r"Path\Berechnung_4.gdb"
fc = r'Path_to_FGDB\Gew_Morre'
inDGM = r"Path_to_FGDB\dgm01m"
step = 1 # 0.1 in script - Change, as small as possible without making the execution time unacceptably long
arcpy.CheckOutExtension("3D")
Gewaesser_3D = "Gewaesser_3D"
arcpy.InterpolateShape_3d(inDGM, fc, Gewaesser_3D)
arcpy.AddSurfaceInformation_3d(Gewaesser_3D, inDGM, "Z_MIN;Z_MAX", "BILINEAR")
arcpy.CheckInExtension("3D")
with arcpy.da.SearchCursor(Gewaesser_3D,['SHAPE@','Z_MIN','Z_MAX']) as cursor:
for row in cursor:
print("valueMin = {} and valueMAx = {}".format(row[1], row[2]))
arr = np.arange(row[1], row[2], 0.1) # hier Hoehenstufen definieren!
print(arr)
for r in arr:
geom = row[0]
points = []
position = 0
while position < geom.length:
points.append(geom.positionAlongLine(position))
position+=step
bestpoint = min(points, key=lambda x: abs(x.centroid.Z-r))
strR = round(r, 5)
print (strR)
ReplaceRstrR = str(strR).replace(".", "_")
arcpy.CopyFeatures_management(in_features=bestpoint, out_feature_class='bestpoint{}'.format(ReplaceRstrR))
featureclasses = arcpy.ListFeatureClasses("bestpoint*")
arcpy.Merge_management(featureclasses, "merge_ergebnis_bruchhof_10cm")
... View more
03-30-2022
12:02 AM
|
0
|
0
|
416
|
|
POST
|
Hello, we have a concurrent license model on a seperate server. We are only allowed to check out the advanced license for the needed time ... . In arcpy ArcMap you could set the product temporarily very easy, in Pro 2.8 notebook this doesn't seem to work with check product in our case. There's always the message "ArcGIS for Desktop Advanced license not available" even if more than one license is available with the following code? import sys
import arcpy
arcpy.env.workspace = "c:/data/world.gdb"
if arcpy.CheckProduct("ArcInfo") == "Available":
arcpy.PolygonToLine_management("Lakes", "LakeLines")
else:
msg = 'ArcGIS for Desktop Advanced license not available'
print(msg)
sys.exit(msg) Does this work only with licenses saved online? Are there any workarounds? It would be very uncomfortable to check out the license manually in Pro every time the advanced license is needed ...
... View more
02-14-2022
10:41 PM
|
0
|
1
|
1194
|
|
POST
|
you are right the () are useless, I put them in out of despair because without it doesn't work as well 🙂
... View more
02-09-2022
04:45 AM
|
0
|
0
|
1324
|
|
POST
|
Thank you for your good idea. It leads then to something like this (if I build a model and export to python): arcpy.analysis.Select(in_features=outUnion, out_feature_class=outUnion_Select, where_clause="FID_Nutzung_Weide > -1 And FID_outBarriereBuffer = -1") but doesn't work in the notebook. Think I will use the select by attribute + copy feature solution to get to an end ...
... View more
02-09-2022
04:44 AM
|
0
|
0
|
1324
|
|
POST
|
If I use select layer by attribute and copy feature there is no problem? arcpy.management.MakeFeatureLayer(outUnion, outUnionLayer)
arcpy.management.SelectLayerByAttribute(outUnionLayer, 'NEW_SELECTION',
'"FID_Nutzung_Weide" > -1 And "FID_outBarriereBuffer" = -1')
arcpy.management.CopyFeatures(outUnionLayer, outWeide)
... View more
02-09-2022
01:16 AM
|
0
|
0
|
1339
|
|
POST
|
I have problems in ArcGIS Pro 2.8 notebooks with a where clause of two long fields of a file geodatabase feature class (FID fields after union): where_clause_1 = '("FID_outBarriereBuffer" = -1 AND "FID_Nutzung_Weide" > -1)'
arcpy.analysis.Select(inBarriere, outWeide, where_clause_1) With this I get the following message: ExecuteError: ERROR 000358: Ungültiger Ausdruck ("FID_outBarriereBuffer" = -1 AND "FID_Nutzung_Weide" > -1)
Fehler beim Ausführen von (Select). Any ideas for a solution?
... View more
02-09-2022
12:14 AM
|
0
|
5
|
1369
|
|
POST
|
Ah ok, dann solltest du deine Antwort als richtige Antwort markieren, falls jemand danach sucht findet er gleich die richtige Lösung 🙂
... View more
11-24-2021
06:00 AM
|
0
|
0
|
3006
|
|
POST
|
Gerne, müsste auch zwischen Polygon und Linie funktionieren.
... View more
11-24-2021
04:56 AM
|
0
|
0
|
3014
|
|
POST
|
Hast du Polygon Features verwendet für die Kartenserie? Dann könntest du einfach einen Intersect machen?
... View more
11-24-2021
04:39 AM
|
0
|
2
|
3020
|
|
POST
|
Hello, I've problems with the "MULTIPOINT" option in arcpy.ASCII3DToFeatureClass_3d, it creates stranges results in the outgoing fc. See attached image in red there are squares create with the wrong hight information out of lidar vegetation (first pulse) data. In the image I analyse vegetation hight over 3m. If I use the "POINT" option the vegetation is correctly shown in the output raster data (black in the image). What's wrong, can't you use "MULTIPOINT" with lidar data with a resolution of 8 points/m²? Is it a bug? It takes very long time to process the data with the "POINT" option ...
... View more
11-24-2021
03:35 AM
|
0
|
0
|
641
|
|
POST
|
Hello, is there a size limit creating a terrain. I want to add about 3000 tiles of lidar masspoint feature classes? Or is there a other possibility to create a seamless ground point raster out of tiles of lidar xyz files? So far I use this tools: 1. arcpy.ASCII3DToFeatureClass_3d 2. arcpy.AddFeatureClassToTerrain_3d Best wishes johannes
... View more
11-18-2021
09:30 PM
|
0
|
0
|
420
|
|
POST
|
Maybe a bug: BUG-000137385 https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzNzM4NQ==
... View more
08-13-2021
12:47 AM
|
2
|
1
|
2160
|
| 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
|