<?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: Feature Service on 2D polyline. Error: &amp;amp;quot;The geometry is not Z-aware&amp;amp;quot; in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133132#M5116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem, but I had a date field that was incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 15:41:25 GMT</pubDate>
    <dc:creator>ThomasCoopman</dc:creator>
    <dc:date>2014-09-25T15:41:25Z</dc:date>
    <item>
      <title>Feature Service on 2D polyline. Error: &amp;amp;quot;The geometry is not Z-aware&amp;amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133130#M5114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On ArcGIS 10.1, I'm using the the 'Featire Service' capabilities to add, change &amp;amp; delete features on point &amp;amp; line feature classes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On 2D points points I can sucessfully do all 3 actions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is when I do the same on a 2D polyline that is NOT z-aware. (This is confirmed when browsing the feature service endpoint.) When submiting a 'addfeature' request via the ArcGIS web test interface, I keep on getting a error message &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"Unable to complete operation. The geometry is not Z-aware"&lt;/SPAN&gt;&lt;SPAN&gt; From the (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Authoring_feature_services/0154000003nt000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;documentation &lt;/A&gt;&lt;SPAN&gt;) it states &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"You can edit and delete features that have z-values.&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;nbsp; When I create a feature class that is z-aware, I can edit it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that mean I can't edit none-Z-aware feature classes? The &lt;/SPAN&gt;&lt;A href="http://servicesbeta2.esri.com/arcgis/sdk/rest/geometry.html" rel="nofollow noopener noreferrer" target="_blank"&gt;geometry documentation&lt;/A&gt;&lt;SPAN&gt; make me assume that I should be able to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did try things like adding default z values in the feature service capabilities, adding a z value in my geometry JSON, but no change in the message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anny feedback would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The JSON I use are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
[
{
"geometry":
{
"hasZ" : false,
"hasM" : false,
"paths":[[
[504341,798781],
[504192,799065],
[505341,795781]
]]
}
,"attributes":{}
}
]
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133130#M5114</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2021-12-11T07:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Service on 2D polyline. Error: "The geometry is not Z-aware"</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133131#M5115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm seeing this as well. My data is not z-aware and i have no required fields. yet i get this message when trying to add via the rest endpoint. oddly, if i have no attribute tag in the AddFeature request then it does work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the error i see in the ags logs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Database error: The field is not nullable. [SHAPE_STLength__]. The geometry is not Z-aware.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 12:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133131#M5115</guid>
      <dc:creator>KeG</dc:creator>
      <dc:date>2013-03-20T12:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Service on 2D polyline. Error: &amp;quot;The geometry is not Z-aware&amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133132#M5116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem, but I had a date field that was incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 15:41:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133132#M5116</guid>
      <dc:creator>ThomasCoopman</dc:creator>
      <dc:date>2014-09-25T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Service on 2D polyline. Error: &amp;quot;The geometry is not Z-aware&amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133133#M5117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had this problem as well, it turns out that I had used another layer as a "template" when creating this layer, and it copied the Shape.STLength() field to Shape_STLength__.&amp;nbsp; I was doing this in a python script so I just did a quick test to see if the Length or Area columns got copied funny and if they did remove them.&amp;nbsp; The Shape_STLength__ (and Shape_STArea__) field is not used by anything, it just causes grief.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real field Shape.STLength() is not actually a field in the database just a pointer to the length of the actual shape column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 15:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-on-2d-polyline-error-amp-amp-quot/m-p/133133#M5117</guid>
      <dc:creator>ChristopherMoravec1</dc:creator>
      <dc:date>2014-12-12T15:27:13Z</dc:date>
    </item>
  </channel>
</rss>

