<?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: Inserting a feature into a polygon featureclass with z-values in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530097#M41506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Discovered this little ditty...&lt;/P&gt;&lt;P&gt;&amp;nbsp; - buried in the bowels of hell.... aka .... the help files.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; - &lt;A class="unlinked" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Output_has_M_values/001w00000007000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Output_has_M_values/001w00000007000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - For shapefiles, storage of M and Z values is closely connected;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if the output has Z, then regardless of this environment setting,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the output will also have M.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Feb 2015 03:07:45 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2015-02-28T03:07:45Z</dc:date>
    <item>
      <title>Inserting a feature into a polygon featureclass with z-values</title>
      <link>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530091#M41500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I am experiencing a bit wierd response as I would like to create a polygon object and enter its z-values using arcpy. It seems all goes fine interms of execution but when I try to query the newly created object, the z-values are set to zeros. I am using ArcGIS Desktop 10.2 on windows 7. Here is the code snippet.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="python" name="code"&gt;# Import system modules import arcpy import time, datetime from time import strftime import sys, traceback, os from arcpy import env from arcpy import da&amp;nbsp;&amp;nbsp; def showMessage(msgText): &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(msgText); &amp;nbsp;&amp;nbsp;&amp;nbsp; print msgText def showErrorMessage(msgText): &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(msgText); &amp;nbsp;&amp;nbsp;&amp;nbsp; print msgText def readGeom(inputFC, fieldNames): ##&amp;nbsp;&amp;nbsp;&amp;nbsp; infc = arcpy.GetParameterAsText(0) &amp;nbsp;&amp;nbsp;&amp;nbsp; infc = inputFC &amp;nbsp;&amp;nbsp;&amp;nbsp; # Enter for loop for each feature &amp;nbsp;&amp;nbsp;&amp;nbsp; # &amp;nbsp;&amp;nbsp;&amp;nbsp; # Print the current multipoint's ID &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in arcpy.da.SearchCursor(infc, fieldNames): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showMessage("Feature {0}:".format(row[0])) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; partnum = 0 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Step through each part of the feature &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for part in row[1]: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Print the part number &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showMessage("Part {0}:".format(partnum)) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Step through each vertex in the feature &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for pnt in part: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if pnt: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Print x,y coordinates of current point &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showMessage("{0}, {1}, {2}".format(pnt.X, pnt.Y, pnt.Z)) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # If pnt is None, this represents an interior ring &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showMessage("Interior Ring:") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; partnum += 1&amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp; aoiCoords = "5581313.715,3090151.188,88;5581925.211,3085259.218,88;5574281.509,3085259.218,22;5570918.28,3091679.929,55;5575198.75,3093208.669,44" &amp;nbsp;&amp;nbsp;&amp;nbsp; template = r"PathTo_abc_POL" &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Starting Processing... " + strftime("%d%b%y")) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; spatial_reference = arcpy.Describe(template).spatialReference &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ##&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = out_path ##&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.overwriteOutput = True; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; dummyPoint = arcpy.Point() &amp;nbsp;&amp;nbsp;&amp;nbsp; firstPoint = arcpy.Point() &amp;nbsp;&amp;nbsp;&amp;nbsp; pointsArray = arcpy.Array() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; coordsTokens = aoiCoords.split(';') &amp;nbsp;&amp;nbsp;&amp;nbsp; loopIndex = 0; &amp;nbsp;&amp;nbsp;&amp;nbsp; for coord in coordsTokens: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coordValues = coord.split(',') &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummyPoint.X = float(coordValues[0]); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummyPoint.Y = float(coordValues[1]); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummyPoint.Z = float(coordValues[2]); ##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showMessage("X, Y, Z: " +coordValues[0] + ", " +coordValues[1] + ", " + coordValues[2]) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(loopIndex ==0): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstPoint = dummyPoint &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loopIndex = loopIndex + 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointsArray.add(dummyPoint) &amp;nbsp;&amp;nbsp;&amp;nbsp; #close the polygon &amp;nbsp;&amp;nbsp;&amp;nbsp; pointsArray.add(firstPoint); &amp;nbsp;&amp;nbsp;&amp;nbsp; has_z = "ENABLED" &amp;nbsp;&amp;nbsp;&amp;nbsp; has_m = "DISABLED" &amp;nbsp;&amp;nbsp;&amp;nbsp; aoiPolygon = arcpy.Polygon(pointsArray, spatial_reference, has_z, has_m) &amp;nbsp;&amp;nbsp;&amp;nbsp; out_path = arcpy.env.scratchGDB &amp;nbsp;&amp;nbsp;&amp;nbsp; test1 = "test1" &amp;nbsp;&amp;nbsp;&amp;nbsp; geometry_type = "POLYGON" &amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = out_path &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.overwriteOutput = True; &amp;nbsp;&amp;nbsp;&amp;nbsp; outFCName = arcpy.CreateFeatureclass_management(out_path, test1, geometry_type, template, has_m, has_z, spatial_reference) &amp;nbsp;&amp;nbsp;&amp;nbsp; aoiWMName = outFCName.getOutput(0) &amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.InsertCursor(test1, ["SHAPE@"]) &amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow([aoiPolygon]) &amp;nbsp;&amp;nbsp;&amp;nbsp; del cursor &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(test1) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("0: HasZ: " + str(desc.hasZ) + ", HasM: " + str(desc.hasM)) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; readGeom(test1, ["OID@", "SHAPE@"]) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Processing completed") except Exception as e: &amp;nbsp;&amp;nbsp;&amp;nbsp; tb = sys.exc_info()[2] &amp;nbsp;&amp;nbsp;&amp;nbsp; tbinfo=traceback.format_tb(tb)[0] &amp;nbsp;&amp;nbsp;&amp;nbsp; strMessages = "Exception Type is: " + str(sys.exc_type) &amp;nbsp;&amp;nbsp;&amp;nbsp; strMessages = strMessages +"\nException Value is: " + str(sys.exc_value) &amp;nbsp;&amp;nbsp;&amp;nbsp; strMessages = strMessages + "\nFailure Info: " + tbinfo &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(strMessages) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(e.message)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone kindly share any thought or reference on how to fix it? Thanks in advance. Here are the resuts.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feature 1:&lt;/P&gt;&lt;P&gt;Part 0:&lt;/P&gt;&lt;P&gt;5581313.715, 3090151.188, 0.0&lt;/P&gt;&lt;P&gt;5581925.211, 3085259.218, 0.0&lt;/P&gt;&lt;P&gt;5574281.509, 3085259.218, 0.0&lt;/P&gt;&lt;P&gt;5570918.28, 3091679.929, 0.0&lt;/P&gt;&lt;P&gt;5575198.75, 3093208.669, 0.0&lt;/P&gt;&lt;P&gt;5581313.715, 3090151.188, 0.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 11:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530091#M41500</guid>
      <dc:creator>MoizIshfaq</dc:creator>
      <dc:date>2015-02-10T11:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a feature into a polygon featureclass with z-values</title>
      <link>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530092#M41501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is probably due to this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14235707425453549" jivemacro_uid="_14235707425453549"&gt;&lt;P&gt;aoiPolygon = arcpy.Polygon(pointsArray, spatial_reference, has_z, has_m)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating a polygon, the "has_z" should be boolean (True,&amp;nbsp; in your case).&lt;/P&gt;&lt;P&gt;When creating the featureclass the "has_z" is string ("ENABLED" in your case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change that line to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14235707736597227 jive_text_macro" jivemacro_uid="_14235707736597227"&gt;&lt;P&gt;aoiPolygon = arcpy.Polygon(pointsArray, spatial_reference, has_z=True, has_m=False)&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 12:19:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530092#M41501</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-10T12:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a feature into a polygon featureclass with z-values</title>
      <link>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530093#M41502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just ran this code and it created a PolygonZM (&lt;EM&gt;no idea why it is M aware when it is set as False&lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
aoiCoords = "5581313.715,3090151.188,88;5581925.211,3085259.218,88;5574281.509,3085259.218,22;5570918.28,3091679.929,55;5575198.75,3093208.669,44"
fc_out = r"D:\Xander\GeoNet\Polygon3D\test2.shp"

pnts = aoiCoords.split(';')
arrPnts = arcpy.Array()
sr= arcpy.SpatialReference(102100)
for pnt in pnts:
&amp;nbsp;&amp;nbsp;&amp;nbsp; crds = pnt.split(',')
&amp;nbsp;&amp;nbsp;&amp;nbsp; point = arcpy.Point(float(crds[0]), float(crds[1]), float(crds[2]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; arrPnts.add(point)

polygon = arcpy.Polygon(arrPnts, sr, True, False)
lst_polygons = [polygon]

arcpy.CopyFeatures_management(lst_polygons, fc_out)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530093#M41502</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T23:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a feature into a polygon featureclass with z-values</title>
      <link>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530094#M41503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that this answers the question &lt;EM&gt;why&lt;/EM&gt; the file is M aware, but the issue seems to be in saving to a shapefile. If you run the code saving to an 'in_memory' feature class, it is PolygonZ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:00:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530094#M41503</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-02-10T17:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a feature into a polygon featureclass with z-values</title>
      <link>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530095#M41504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Called a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530095#M41504</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-02-10T17:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a feature into a polygon featureclass with z-values</title>
      <link>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530096#M41505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your comments. Xander pointed it correctly as I somehow was using arcpy.Polygon and arcpy.CreateFeatureclass_management methods in my original script, both methods use the same variables 'has_m and has_z' and I didn't pay attention to them as they both take different values and data types. Once again a round of applaud for Xander &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention that arcpy exception handling didn't help in catching this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 07:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530096#M41505</guid>
      <dc:creator>MoizIshfaq</dc:creator>
      <dc:date>2015-02-11T07:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a feature into a polygon featureclass with z-values</title>
      <link>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530097#M41506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Discovered this little ditty...&lt;/P&gt;&lt;P&gt;&amp;nbsp; - buried in the bowels of hell.... aka .... the help files.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; - &lt;A class="unlinked" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Output_has_M_values/001w00000007000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Output_has_M_values/001w00000007000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - For shapefiles, storage of M and Z values is closely connected;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if the output has Z, then regardless of this environment setting,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the output will also have M.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2015 03:07:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inserting-a-feature-into-a-polygon-featureclass/m-p/530097#M41506</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-28T03:07:45Z</dc:date>
    </item>
  </channel>
</rss>

