<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to draw a 3D arc (flight path) in ArcGIS Pro?  in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297733#M12959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out a way to create the 3D arcs manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s a multi-step process that involves creating a table of X &amp;amp; Y for all the points of the path you want to turned into a 3D arc, then calculating the Z value (in metres) using a formula:  X^2*-1 + D2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was planning to create a model for the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m happy to share the steps with you (or the model if I get around to making it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to find a more efficient way to do this, or even better, an ArcGIS tool to do it for me! I suspect you’re after the something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2019 04:36:48 GMT</pubDate>
    <dc:creator>NickShannon</dc:creator>
    <dc:date>2019-11-25T04:36:48Z</dc:date>
    <item>
      <title>How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297731#M12957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the best way to draw an arc in ArcGIS Pro?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'create features --&amp;gt; create circular arc' only works for 2D (from what I can see).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can import a table with coordinates &amp;amp; Z field, but just wondering if this is the best way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Screen capture - I would like to create an arc as shown in the example below:&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/426590_arc__Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 06:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297731#M12957</guid>
      <dc:creator>NickShannon</dc:creator>
      <dc:date>2018-10-29T06:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297732#M12958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where you able to get this figured out?&amp;nbsp; I'm sure it is possible, but I'm just overlooking some small item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Heath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 16:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297732#M12958</guid>
      <dc:creator>HeathAnderson</dc:creator>
      <dc:date>2019-11-22T16:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297733#M12959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out a way to create the 3D arcs manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s a multi-step process that involves creating a table of X &amp;amp; Y for all the points of the path you want to turned into a 3D arc, then calculating the Z value (in metres) using a formula:  X^2*-1 + D2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was planning to create a model for the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m happy to share the steps with you (or the model if I get around to making it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to find a more efficient way to do this, or even better, an ArcGIS tool to do it for me! I suspect you’re after the something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 04:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297733#M12959</guid>
      <dc:creator>NickShannon</dc:creator>
      <dc:date>2019-11-25T04:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297734#M12960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I would be happy with either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Heath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 17:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/297734#M12960</guid>
      <dc:creator>HeathAnderson</dc:creator>
      <dc:date>2019-11-25T17:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1157371#M53213</link>
      <description>&lt;P&gt;Hei. I have the a little bit of the same problem. I am trying to visualize&amp;nbsp;projectile trajectory in arcgis. can you help me out?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 15:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1157371#M53213</guid>
      <dc:creator>HelenaÅstveit</dc:creator>
      <dc:date>2022-03-24T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1275949#M67645</link>
      <description>&lt;P&gt;What is D2 in your formula: X^2*-1 + D2?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 19:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1275949#M67645</guid>
      <dc:creator>OlesyaBerenbak</dc:creator>
      <dc:date>2023-04-05T19:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1557029#M89961</link>
      <description>&lt;P&gt;Hi NickShannon,&lt;/P&gt;&lt;P&gt;I am revisiting this problem I have creating an arc.&amp;nbsp; Could you elaborate on what X and D stand for and how they are calculated?&amp;nbsp; If possible could you provide and example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Heath&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 21:43:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1557029#M89961</guid>
      <dc:creator>HeathAnderson</dc:creator>
      <dc:date>2024-11-08T21:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1565127#M90874</link>
      <description>&lt;P&gt;I'd be interested if any one has figured this out.&amp;nbsp; &amp;nbsp;I have origin destination links from our fire stations to fire calls and I want to display them like 3D arches rather than straight lines.&amp;nbsp; &amp;nbsp; &amp;nbsp;I have some python samples but none do what I want with a nice curve in 3D from point to point. Thank you for any insights.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 14:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1565127#M90874</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2024-12-05T14:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1566704#M91075</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6782"&gt;@MeleKoneya&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I do believe I have a solution for you.&amp;nbsp; Please take a look at the image and let me know if this is what you would like to recreate and I can share my solution?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HeathAnderson_0-1733839687118.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121283i592A76C0507FAACD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HeathAnderson_0-1733839687118.png" alt="HeathAnderson_0-1733839687118.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Heath&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 14:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1566704#M91075</guid>
      <dc:creator>HeathAnderson</dc:creator>
      <dc:date>2024-12-10T14:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1566740#M91081</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/102264"&gt;@HeathAnderson&lt;/a&gt;&amp;nbsp; Yes!&amp;nbsp; &amp;nbsp; That is what I am looking to create.&amp;nbsp; &amp;nbsp; I am working on a regional level with Origin and Destinations from Fire stations to fire calls but want to show them like what you sent.&amp;nbsp; &amp;nbsp; I'd be interested to know how you did yours.&amp;nbsp; &amp;nbsp; Looks great!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 15:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1566740#M91081</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2024-12-10T15:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1566867#M91092</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6782"&gt;@MeleKoneya&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The real bulk of of the lines takes place at line 77.&amp;nbsp; When the Geodesic are created.&amp;nbsp; Everything else I preparing to set the start and end locations of the flight path.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lines 77-109&lt;/STRONG&gt; is the mathematical expression to create the circle. Then print the start and end values&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(line 78) num_points=100&lt;/STRONG&gt; it will create 100 vertices along the line.&amp;nbsp; You can raise or lower this to smooth it out but I find 100 to be antiquate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lines 138-146&lt;/STRONG&gt; set the height of the Geodesic line by changes the divisional value&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lines 148-164&lt;/STRONG&gt; creates an array to hold the new z-values&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lines 166-175&lt;/STRONG&gt; updates the z-vales of the line work to push the geodesic line work to 3D&lt;/P&gt;&lt;P&gt;I hope this helps.&amp;nbsp; If what you are working in is publicly available I would love to see what it looks like.&amp;nbsp; Reply with your site or an image if you'd rather.&lt;/P&gt;&lt;P&gt;Let me know if you need anything else.&lt;/P&gt;&lt;P&gt;Cheer,&lt;/P&gt;&lt;P&gt;Heath&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the example of my working site and script.&amp;nbsp; Just for fun&amp;nbsp;&lt;A href="https://gis.appleton.org/grinch.html" target="_blank" rel="noopener"&gt;https://gis.appleton.org/grinch.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy, random, webbrowser, math, datetime
import numpy as np
import math
import matplotlib.pyplot as plt
from IPython.display import display
from xml.sax.saxutils import escape
from arcpy import GetPortalInfo, GetActivePortalURL

#--- AGOL Login Info ---
agol_org = '[PORTAL AND AGOL URL]'
agol_user = '[USERNAME]' # See line 172 and make that match
agol_pass = '[PASSWORD]'

gis = arcpy.SignInToPortal(agol_org, agol_user, agol_pass)

print(arcpy.GetPortalInfo(portal_URL=arcpy.GetActivePortalURL()))

# Checks to see if the user is signed into Portal
##def portal_sign_in_check() -&amp;gt; None:
##    portal_info: dict = GetPortalInfo(portal_URL = GetActivePortalURL())
##    if portal_info['role'] == '':
##        print('User is not signed-in to portal ' + str(portal_info))
##    else:
##        print('User is signed-in to portal ' + str(portal_info))
##
##print(portal_sign_in_check())

# get Grinch current location
grinchCurXY = "https://services1.arcgis.com/KowZ0VFM04w7hjgW/arcgis/rest/services/Grinch_Location/FeatureServer/0"

for loc in arcpy.da.SearchCursor(grinchCurXY, ["SHAPE@XY", "CITY_NAME", "POP", "CNTRY_NAME"]):
    grXY = loc[0]
    grCity = loc[1]
    grPop = loc[2]
    grCnt = loc[3]
    print ("PointXY: {0}, City: {1}, Population: {2}, Country: {3}".format (loc[0], loc[1], loc[2], loc[3]))

# Update grinch location as historical
griHist = "https://services1.arcgis.com/KowZ0VFM04w7hjgW/arcgis/rest/services/grinchHistoricLocs/FeatureServer/0"
values = [(grXY, grCity, grPop, grCnt)]

griCur = arcpy.da.InsertCursor(griHist, ["SHAPE@XY", "CITY_NAME", "POP", "CNTRY_NAME"])
for loc in values:
    griCur.insertRow(loc)

del griCur

# Updates historical points with xy flight data
arcpy.management.CalculateField(
    in_table=griHist,
    field="START_X",
    expression="-123.105556",
    expression_type="SQL",
    code_block="",
    field_type="TEXT",
    enforce_domains="NO_ENFORCE_DOMAINS"
)

arcpy.management.CalculateField(
    in_table=griHist,
    field="START_Y",
    expression="49.714444",
    expression_type="SQL",
    code_block="",
    field_type="TEXT",
    enforce_domains="NO_ENFORCE_DOMAINS"
)

arcpy.management.CalculateGeometryAttributes(
    in_features=griHist,
    geometry_property="POINT_X POINT_X;POINT_Y POINT_Y",
    length_unit="",
    area_unit="",
    coordinate_system='GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]',
    coordinate_format="SAME_AS_INPUT"
)

# Create a function to generate points along the geodesic
def great_circle_points(start, end, num_points=100):
    lat1, lon1 = np.radians(start[1]), np.radians(start[0])
    lat2, lon2 = np.radians(end[1]), np.radians(end[0])
    
    d = 2 * np.arcsin(np.sqrt(np.sin((lat2 - lat1) / 2) ** 2 +
                              np.cos(lat1) * np.cos(lat2) * np.sin((lon2 - lon1) / 2) ** 2))
    
    lats = np.linspace(lat1, lat2, num_points)
    lons = np.linspace(lon1, lon2, num_points)
    
    arc_points = []
    for i in range(num_points + 1):
        a = math.sin((1 - i / num_points) * d) / math.sin(d)
        b = math.sin((i / num_points) * d) / math.sin(d)
        x = a * np.cos(lat1) * np.cos(lon1) + b * np.cos(lat2) * np.cos(lon2)
        y = a * np.cos(lat1) * np.sin(lon1) + b * np.cos(lat2) * np.sin(lon2)
        z = a * np.sin(lat1) + b * np.sin(lat2)
        lat = np.arctan2(z, np.sqrt(x * x + y * y))
        lon = np.arctan2(y, x)
        arc_points.append((np.degrees(lon), np.degrees(lat)))
    
    return arc_points


#set geodesic startup
for loc in arcpy.da.SearchCursor(griHist, ["SHAPE@XY", "CITY_NAME", "POP", "CNTRY_NAME", "START_X", "START_Y", "POINT_X", "POINT_Y"]):
    start_point = (loc[4], loc[5])
    end_point = (loc[6], loc[7])
    
    print ("Start point: {0}, End point: {1}".format (start_point, end_point))



# calculate geodesic

# Generate geodesic points
arc_points = great_circle_points(start_point, end_point)

# Convert to 3D with Z values
line_length = arcpy.PointGeometry(arcpy.Point(*start_point)).distanceTo(arcpy.PointGeometry(arcpy.Point(*end_point)))

z_values = line_length * np.sin(np.linspace(0, math.pi, len(arc_points)))
arc_points_3d = [(lon, lat, z) for (lon, lat), z in zip(arc_points, z_values)]

# Use arcpy to create a polyline and save it to a feature class
arcpy.env.workspace = "[WORK SPACE ENVIRONMENT]"
arcpy.env.overwriteOutput = True
sr = arcpy.SpatialReference(4326)  # WGS84

# Create the polyline geometry
polyline = arcpy.Polyline(arcpy.Array([arcpy.Point(*coords) for coords in arc_points_3d]), sr)

# Save the polyline to a feature class
arcpy.management.CreateFeatureclass(arcpy.env.workspace, "geodesicArc3D", "POLYLINE", spatial_reference=sr, has_z="ENABLED")
with arcpy.da.InsertCursor("geodesicArc3D", ["SHAPE@"]) as cursor:
    cursor.insertRow([polyline])

#TEMPFlights = "holding"
TEMPFlights = "geodesicArc3D"

# Calculate the geodesic distance (length of the line)
with arcpy.da.SearchCursor(TEMPFlights, ["SHAPE@"]) as cursor:
    for row in cursor:
        line = row[0]
        start_point = line.firstPoint
        end_point = line.lastPoint
        line_length = line.getLength("GEODESIC")/5

del cursor

# Function to adjust Z-values in a semi-circle arc
def adjust_z_values_semi_circle(line, max_z):
    num_points = len(line.getPart(0))
    angles = np.linspace(0, np.pi, num_points)
    z_values = max_z * np.sin(angles)
    
    # Print the Z-values
    print("Z-values for each vertex:")
    for i, z in enumerate(z_values):
        print(f"Vertex {i + 1}: Z = {z}")
    
    # Create new vertices with updated Z-values
    new_vertices = []
    for i, point in enumerate(line.getPart(0)):
        new_vertices.append(arcpy.Point(point.X, point.Y, z_values[i]))
    
    return arcpy.Array(new_vertices), z_values

# Extract all vertices and update their Z-values
with arcpy.da.UpdateCursor(TEMPFlights, ["SHAPE@"]) as cursor:
    for row in cursor:
        line = row[0]
        new_vertices, z_values = adjust_z_values_semi_circle(line, line_length)
        new_line = arcpy.Polyline(arcpy.Array([new_vertices]), line.spatialReference, has_z=True)
        row[0] = new_line
        cursor.updateRow(row)
        
del cursor

print("Z-values have been updated successfully.")

# Plot the Z-values
'''
plt.plot(z_values)
plt.title("Z-values Along the Arc (Semi-Circle Shape)")
plt.xlabel("Vertex Index")
plt.ylabel("Z Value (meters)")
plt.grid(True)
plt.show()
'''

# Grinch Flight lines
grinLine = "https://services1.arcgis.com/KowZ0VFM04w7hjgW/arcgis/rest/services/flightpath/FeatureServer/0"

arcpy.management.Append(
    inputs="geodesicArc3D",
    target=grinLine,
    schema_type="NO_TEST",
    field_mapping='POINT_X "POINT_X" true true false 0 Double 0 0,First,#;POINT_Y "POINT_Y" true true false 0 Double 0 0,First,#;START_X "START_X" true true false 0 Double 0 0,First,#;START_Y "START_Y" true true false 0 Double 0 0,First,#',
    subtype="",
    expression="",
    match_fields=None,
    update_geometry="NOT_UPDATE_GEOMETRY"
)

print ("done")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 17:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1566867#M91092</guid>
      <dc:creator>HeathAnderson</dc:creator>
      <dc:date>2024-12-10T17:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1566883#M91099</link>
      <description>&lt;P&gt;I love the scene you created, that is very cool!&amp;nbsp; &amp;nbsp;From the looks of what you did, that is exactly what I wanted!&amp;nbsp; Thank you for this code.&amp;nbsp; &amp;nbsp; I will work with against my data and will absolutely share what I am doing when I get there.&amp;nbsp; &amp;nbsp; Mele&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 18:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1566883#M91099</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2024-12-10T18:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1568669#M91302</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/102264"&gt;@HeathAnderson&lt;/a&gt;&amp;nbsp; I am still playing around with what you sent, but can't thank you enough for sending the code.&amp;nbsp; &amp;nbsp;I have a ways to go to get the map I want but so far so good.&amp;nbsp; &amp;nbsp;So Cool!&amp;nbsp; &amp;nbsp;Thank you!&amp;nbsp; &amp;nbsp;I'll you posted&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MeleKoneya_0-1734211601038.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121777i98399870D9F669EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MeleKoneya_0-1734211601038.png" alt="MeleKoneya_0-1734211601038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2024 21:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1568669#M91302</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2024-12-14T21:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1571554#M91525</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MeleKoneya_0-1735337849279.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/122501i729EC3617D1AA210/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MeleKoneya_0-1735337849279.png" alt="MeleKoneya_0-1735337849279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/102264"&gt;@HeathAnderson&lt;/a&gt;&amp;nbsp; The latest!&amp;nbsp; &amp;nbsp;Can't thank you enough!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 22:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1571554#M91525</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2024-12-27T22:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1598122#M94252</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/102264"&gt;@HeathAnderson&lt;/a&gt;&amp;nbsp; I am going to submit a map to the Esri UC and would like to know how to credit you on the poster&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 17:00:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1598122#M94252</guid>
      <dc:creator>MeleKoneya1</dc:creator>
      <dc:date>2025-03-21T17:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a 3D arc (flight path) in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1598291#M94264</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427106"&gt;@MeleKoneya1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is me I had to create a new account. Cool map.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;My name is Heath Anderson and I work for the City of Appleton in Appleton, WI. &amp;nbsp;I use some prompt engineering and AI to help generate the code for that I sent you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Heath&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2025 06:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-draw-a-3d-arc-flight-path-in-arcgis-pro/m-p/1598291#M94264</guid>
      <dc:creator>HeathAnderson</dc:creator>
      <dc:date>2025-03-22T06:45:22Z</dc:date>
    </item>
  </channel>
</rss>

