<?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: shape.area 0 after insert to oracle polygon featureclass in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/shape-area-0-after-insert-to-oracle-polygon/m-p/859371#M5651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears you are inserting a LINESTRING into a polygon feature class.&amp;nbsp; I am surprised it isn't generating an error.&amp;nbsp; What if you use:&lt;SPAN style="font-family: courier new,courier,monospace;"&gt; 'POLGYON((104 87, -47 71, -93 64, -148 72, 104 87))'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 19:02:25 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2016-10-27T19:02:25Z</dc:date>
    <item>
      <title>shape.area 0 after insert to oracle polygon featureclass</title>
      <link>https://community.esri.com/t5/geodatabase-questions/shape-area-0-after-insert-to-oracle-polygon/m-p/859370#M5650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a versioned (not move to base) polygon feature class in oracle.&amp;nbsp; I do an insert to the versioned view to create a new feature.&amp;nbsp; The result looks valid, there is a feature, it has a polygon, it works in ArcMap but looking at the table the shape.area is zero, the shape.length has a value.&amp;nbsp; Versions are Oracle 11gR2 and Geodatabase 10.3.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code in oracle:&lt;/P&gt;&lt;P&gt;insert into mytable_evw (begdate, globalid,&amp;nbsp; shape)&lt;/P&gt;&lt;P&gt;values(&lt;/P&gt;&lt;P&gt;sysdate +3,&lt;/P&gt;&lt;P&gt;sde.gdb_util.next_globalid(),&lt;/P&gt;&lt;P&gt;sde.st_transform(sde.st_geometry('linestring(104 87, -47 71, -93 64, -148 72, 104 87)', 4326), (select&amp;nbsp; srid from sde.st_geometry_columns where table_name= ‘MYTABLE’))&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;Commit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I found strange is that if I didn't provide the last coordinate pair matching the first, the polygon didn't form porperly contrary to the documentation I read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/shape-area-0-after-insert-to-oracle-polygon/m-p/859370#M5650</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2016-10-27T16:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: shape.area 0 after insert to oracle polygon featureclass</title>
      <link>https://community.esri.com/t5/geodatabase-questions/shape-area-0-after-insert-to-oracle-polygon/m-p/859371#M5651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears you are inserting a LINESTRING into a polygon feature class.&amp;nbsp; I am surprised it isn't generating an error.&amp;nbsp; What if you use:&lt;SPAN style="font-family: courier new,courier,monospace;"&gt; 'POLGYON((104 87, -47 71, -93 64, -148 72, 104 87))'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 19:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/shape-area-0-after-insert-to-oracle-polygon/m-p/859371#M5651</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-10-27T19:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: shape.area 0 after insert to oracle polygon featureclass</title>
      <link>https://community.esri.com/t5/geodatabase-questions/shape-area-0-after-insert-to-oracle-polygon/m-p/859372#M5652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua, it was the double bracket that got me when I first tried it.&amp;nbsp; The st_transform example only had linestring,&amp;nbsp; linestring works with single brackets.&amp;nbsp; Everything except shape.area looked ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the record&lt;/P&gt;&lt;P&gt;insert into mytable_evw (begdate, globalid,&amp;nbsp; shape)&lt;BR /&gt;values(&lt;BR /&gt;sysdate +3,&lt;BR /&gt;sde.gdb_util.next_globalid(),&lt;BR /&gt;sde.st_transform(sde.st_geometry('POLYGON((104 87, -47 71, -93 64, -148 72, 104 87))', 4326), (select&amp;nbsp; srid from sde.st_geometry_columns where table_name='MYTABLE'))&lt;BR /&gt;);&lt;BR /&gt;Commit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 19:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/shape-area-0-after-insert-to-oracle-polygon/m-p/859372#M5652</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2016-10-27T19:27:13Z</dc:date>
    </item>
  </channel>
</rss>

