<?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 export service area polygons, ends up as points in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/export-service-area-polygons-ends-up-as-points/m-p/1347639#M69198</link>
    <description>&lt;P&gt;Im trying to export polygons using .export(output_type=arcpy.nax.ServiceAreaOutputType.Polygons, output_features=&amp;lt;path&amp;gt;) &amp;nbsp;after solving&amp;nbsp;arcpy.nax.ServiceArea(). However the resulting featureclass shows up as points. Can somebody see what I'm getting wrong? The code is shown below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;xy_lists is a dictionary holding a list of facilities for each name&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sa_obj = arcpy.nax.ServiceArea(in_network=sa_nd_layer)
sa_obj.travelMode = &amp;lt;string&amp;gt;
sa_obj.defaultImpedanceCutoffs= [5]
sa_obj.outputType = arcpy.nax.ServiceAreaOutputType.Polygons
sa_obj.geometryAtOverlap = arcpy.nax.ServiceAreaOverlapGeometry.Overlap
sa_fields= ['Name', 'SHAPE@XY']
with sa_obj.insertCursor(arcpy.nax.ServiceAreaInputDataType.Facilities,sa_fields) as insert_cursor:
	for name, coord_pairs in xy_lists.items():
            for coord_pair in coord_pairs:
                insert_cursor.insertRow([name,coord_pair])
result = sa_obj.solve()
if not result.solveSucceeded:
	print("Solved failed")
        print(result.solverMessages(arcpy.nax.MessageSeverity.All))
else:
	result.export(output_type=arcpy.nax.ServiceAreaOutputType.Polygons, output_features=solved_sa)
        print('SA exported')
del sa_obj&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 12:35:23 GMT</pubDate>
    <dc:creator>Torbjørn_EidsheimBøe</dc:creator>
    <dc:date>2023-11-09T12:35:23Z</dc:date>
    <item>
      <title>export service area polygons, ends up as points</title>
      <link>https://community.esri.com/t5/python-questions/export-service-area-polygons-ends-up-as-points/m-p/1347639#M69198</link>
      <description>&lt;P&gt;Im trying to export polygons using .export(output_type=arcpy.nax.ServiceAreaOutputType.Polygons, output_features=&amp;lt;path&amp;gt;) &amp;nbsp;after solving&amp;nbsp;arcpy.nax.ServiceArea(). However the resulting featureclass shows up as points. Can somebody see what I'm getting wrong? The code is shown below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;xy_lists is a dictionary holding a list of facilities for each name&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sa_obj = arcpy.nax.ServiceArea(in_network=sa_nd_layer)
sa_obj.travelMode = &amp;lt;string&amp;gt;
sa_obj.defaultImpedanceCutoffs= [5]
sa_obj.outputType = arcpy.nax.ServiceAreaOutputType.Polygons
sa_obj.geometryAtOverlap = arcpy.nax.ServiceAreaOverlapGeometry.Overlap
sa_fields= ['Name', 'SHAPE@XY']
with sa_obj.insertCursor(arcpy.nax.ServiceAreaInputDataType.Facilities,sa_fields) as insert_cursor:
	for name, coord_pairs in xy_lists.items():
            for coord_pair in coord_pairs:
                insert_cursor.insertRow([name,coord_pair])
result = sa_obj.solve()
if not result.solveSucceeded:
	print("Solved failed")
        print(result.solverMessages(arcpy.nax.MessageSeverity.All))
else:
	result.export(output_type=arcpy.nax.ServiceAreaOutputType.Polygons, output_features=solved_sa)
        print('SA exported')
del sa_obj&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 12:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-service-area-polygons-ends-up-as-points/m-p/1347639#M69198</guid>
      <dc:creator>Torbjørn_EidsheimBøe</dc:creator>
      <dc:date>2023-11-09T12:35:23Z</dc:date>
    </item>
  </channel>
</rss>

