POST
|
I think you will need python to do this - someone posted a solution here: https://gis.stackexchange.com/questions/34647/creating-lines-from-points-pair-coordinates-with-arcpy I tried the code of Chad Cooper there with four points with the old cursors ... it seems to work. Here is the code I used: import arcpy
fieldnames = ['X1', 'Y1', 'X2', 'Y2']
# Needed input/ output files
inExcel = r"YOURPATH\Points.xlsx"
FGDB = r"YOURPATH\Points2Lines.gdb"
outTable = "Coords"
outLines = "Lines"
arcpy.env.workspace = FGDB
arcpy.env.overwriteOutput = True
# Change to your Sheet name!
arcpy.conversion.ExcelToTable(inExcel, outTable, "Test")
in_rows = arcpy.SearchCursor(outTable)
point = arcpy.Point()
array = arcpy.Array()
# Without Spatial Reference, please change!
arcpy.CreateFeatureclass_management(FGDB, outLines, "POLYLINE")
featureList = []
cursor = arcpy.InsertCursor(outLines)
feat = cursor.newRow()
for in_row in in_rows:
# Set X and Y for start and end points
# Change here to your field names
point.X = in_row.X1
point.Y = in_row.Y1
array.add(point)
point.X = in_row.X2
point.Y = in_row.Y2
array.add(point)
# Create a Polyline object based on the array of points
polyline = arcpy.Polyline(array)
# Clear the array for future use
array.removeAll()
# Append to the list of Polyline objects
featureList.append(polyline)
# Insert the feature
feat.shape = polyline
cursor.insertRow(feat)
del feat
del cursor
... View more
01-04-2023
11:00 PM
|
1
|
1
|
1174
|
POST
|
If you are not happy with the proposed solutions maybe there is a way to create a profile table with python? Don't know if you use python? Some years ago XanderBakker wrote a script for profile graphs, perhaps it's possible to use this script to export excel tables with the profile data with 1m spacing? The script is here: https://community.esri.com/t5/python-documents/using-python-and-matplotlib-to-create-profile/ta-p/914055
... View more
01-04-2023
02:25 AM
|
0
|
0
|
640
|
POST
|
Maybe you could try the snap tool? https://pro.arcgis.com/de/pro-app/latest/tool-reference/editing/snap.htm
... View more
01-03-2023
10:09 PM
|
0
|
0
|
288
|
POST
|
Sorry I did overread that you need a table, I think you could use this tool: https://pro.arcgis.com/en/pro-app/latest/tool-reference/3d-analyst/stack-profile.htm
... View more
01-03-2023
04:05 AM
|
1
|
2
|
675
|
POST
|
could this help you? https://pro.arcgis.com/en/pro-app/latest/help/analysis/3d-analyst/interactively-create-a-profile-graph-with-digitized-lines-on-a-surface.htm
... View more
01-03-2023
02:27 AM
|
0
|
4
|
708
|
POST
|
In addition, if you want to count the number of overlapping sub_strings in your string, maybe this could work: string = 'ABCDCDC'
sub_string = 'CDC'
results = 0
sub_len = len(sub_string)
for i in range(len(string)):
if string[i:i+sub_len] == sub_string:
results += 1
print (results) source: https://stackoverflow.com/questions/8899905/count-number-of-occurrences-of-a-substring-in-a-string#comment50169124_8900059
... View more
01-02-2023
11:27 PM
|
0
|
0
|
700
|
POST
|
There's an answer from ESRI. I've edited the 3D object in the wrong coordinate system (WGS 1984 Web Mercator (auxiliary sphere)) which causes the wrong measurements.
... View more
11-16-2022
10:25 PM
|
0
|
0
|
435
|
POST
|
Thank you for your help and I've invited you. I think the size of the half cylinder now look similar to ArcGIS Pro, only the measurement tool result in different meters?
... View more
11-03-2022
07:38 AM
|
0
|
0
|
462
|
POST
|
Unfortunately I can't share it here in geonet. In addition I have delete the hole scene. But I could recreate it. Maybe there is a way to share it with you personaly?
... View more
11-03-2022
06:50 AM
|
0
|
2
|
474
|
POST
|
Hello, I've a problem with the measure tool in ArcGIS online. I exported a ArcGIS Pro (2.9.3) Scene to ArcGIS online and put the scene in the experience builder. In the scene there is a 3D cylinder with a hight of 450m and a diameter of 1000m. But in the experience builder I can only measure a diameter of 650m instead of 1000m? See attached images ... Any ideas what could be the problem?
... View more
11-03-2022
12:54 AM
|
0
|
5
|
525
|
POST
|
If I use this it seems to work, convert to string: arcpy.management.AlterField(inFc, str(f.name), str(f.aliasName), str(f.aliasName)) Thank you JeffK for the hint with the legal field names ...
... View more
10-19-2022
06:49 AM
|
0
|
0
|
305
|
POST
|
Ah Ok, thank you for your answer. But it wasn't me who puts points in the field name, it is caused throught several arcpy.managment.AddJoin and then copy features processes .... so I don't know how to avoid the points?
... View more
10-19-2022
06:19 AM
|
0
|
0
|
309
|
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
|
340
|
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
|
162
|
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
|
967
|
Title | Kudos | Posted |
---|---|---|
2 | 02-15-2024 07:44 AM | |
1 | 02-12-2024 05:16 AM | |
1 | 02-13-2024 11:31 PM | |
1 | 01-03-2024 10:31 PM | |
1 | 12-13-2023 05:36 AM |
Online Status |
Offline
|
Date Last Visited |
a month ago
|