<?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: Convert a database table to a feature class? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1183478#M33353</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Here is an example of creating a table, inserting points, inserting into the user_sdo_geom_metadata table, creating the index, and then registering with your geodatabase:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;create table SDO_Points (OID number(38) not null unique, TestID number, shape SDO_GEOMETRY);

Insert into SDO_Points values (1, 1, SDO_GEOMETRY(4001, 8260, null, SDO_ELEM_INFO_ARRAY(1, 1, 1),  SDO_ORDINATE_ARRAY(10.0, 10.0, 10, 1100)));
Insert into SDO_Points values (2, 2, SDO_GEOMETRY(4001, 8260, null, SDO_ELEM_INFO_ARRAY(1, 1, 1),  SDO_ORDINATE_ARRAY(10.0, 20.0, 20, 1200)));
Insert into SDO_Points values (3, 3, SDO_GEOMETRY(4001, 8260, null, SDO_ELEM_INFO_ARRAY(1, 1, 1),  SDO_ORDINATE_ARRAY(10.0, 30.0, 30, 1300)));
Insert into SDO_Points values (4, 4, SDO_GEOMETRY(4001, 8260, null, SDO_ELEM_INFO_ARRAY(1, 1, 1),  SDO_ORDINATE_ARRAY(10.0, 40.0, 40, 1400)));

insert into user_sdo_geom_metadata values ('SDO_Points', 'SHAPE', SDO_DIM_ARRAY(SDO_DIM_ELEMENT('Lat', -90, 90, 0.05), SDO_DIM_ELEMENT('Long', -180, 180, 0.05), SDO_DIM_ELEMENT('Elevation', 0, 5000, 0.05), SDO_DIM_ELEMENT('M', 0, 5000, 0.05)), 8260);

create index SDO_8260_4D_Point_indx on SDO_Points(shape) indextype is mdsys.spatial_index;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last step is to execute the &lt;A href="https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/register-with-geodatabase.htm" target="_self"&gt;Register with Geodatabase&lt;/A&gt; tool in ArcGIS Pro/ArcMap.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 11:35:04 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2022-06-16T11:35:04Z</dc:date>
    <item>
      <title>Convert a Oracle table to a feature class?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1183375#M33350</link>
      <description>&lt;P&gt;What are the steps needed to convert a Oracle table to a FC in an EGDB?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;1. Take an existing Oracle table.&lt;BR /&gt;2. Add a geometry column if needed.&lt;BR /&gt;3. If it's an SDO_GEOMETRY column, then register with USER_SDO_GEOM_METADATA?&lt;BR /&gt;4. Add a spatial index using the Add Spatial Index GP tool?&lt;BR /&gt;5. Register with the geodatabase using Catalog in ArcMap?&lt;BR /&gt;6. Other?&lt;/P&gt;&lt;P&gt;I've tried various combinations of the above steps, but I often have problems like the resulting FC's attribute table is empty when I view it in ArcMap. Or the spatial reference is broken. Or the geometry type (point/line/polygon) isn't properly defined, etc.&lt;BR /&gt;I usually give up at that point and try something else, like create an empty FC via ArcMap, create a spatial view on the Oracle table, and then use the Load tool in Catalog to load the data into the empty FC. But that's pretty clunky...I'm hoping there's a better way.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 08:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1183375#M33350</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-21T08:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a database table to a feature class?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1183478#M33353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Here is an example of creating a table, inserting points, inserting into the user_sdo_geom_metadata table, creating the index, and then registering with your geodatabase:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;create table SDO_Points (OID number(38) not null unique, TestID number, shape SDO_GEOMETRY);

Insert into SDO_Points values (1, 1, SDO_GEOMETRY(4001, 8260, null, SDO_ELEM_INFO_ARRAY(1, 1, 1),  SDO_ORDINATE_ARRAY(10.0, 10.0, 10, 1100)));
Insert into SDO_Points values (2, 2, SDO_GEOMETRY(4001, 8260, null, SDO_ELEM_INFO_ARRAY(1, 1, 1),  SDO_ORDINATE_ARRAY(10.0, 20.0, 20, 1200)));
Insert into SDO_Points values (3, 3, SDO_GEOMETRY(4001, 8260, null, SDO_ELEM_INFO_ARRAY(1, 1, 1),  SDO_ORDINATE_ARRAY(10.0, 30.0, 30, 1300)));
Insert into SDO_Points values (4, 4, SDO_GEOMETRY(4001, 8260, null, SDO_ELEM_INFO_ARRAY(1, 1, 1),  SDO_ORDINATE_ARRAY(10.0, 40.0, 40, 1400)));

insert into user_sdo_geom_metadata values ('SDO_Points', 'SHAPE', SDO_DIM_ARRAY(SDO_DIM_ELEMENT('Lat', -90, 90, 0.05), SDO_DIM_ELEMENT('Long', -180, 180, 0.05), SDO_DIM_ELEMENT('Elevation', 0, 5000, 0.05), SDO_DIM_ELEMENT('M', 0, 5000, 0.05)), 8260);

create index SDO_8260_4D_Point_indx on SDO_Points(shape) indextype is mdsys.spatial_index;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last step is to execute the &lt;A href="https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/register-with-geodatabase.htm" target="_self"&gt;Register with Geodatabase&lt;/A&gt; tool in ArcGIS Pro/ArcMap.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 11:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1183478#M33353</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2022-06-16T11:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a database table to a feature class?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1184222#M33369</link>
      <description>&lt;P&gt;Thanks very much. That really helps.&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4499820/tips-for-creating-an-entry-in-user-sdo-geom-metadata-nad-1983-utm/" target="_self"&gt;Tips for creating an entry in user_sdo_geom_metadata (NAD 1983 UTM)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 07:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1184222#M33369</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-21T07:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Oracle table to a feature class?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1194142#M33553</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10527"&gt;@JakeSkinner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI - I noticed just now that SQL Developer has a tool for entering Spatial Metadata for a given table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1658346696161.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46336iFA9E469BB9B05D92/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1658346696161.png" alt="Bud_0-1658346696161.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1658346710289.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46337iE875C23CF11D0B2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1658346710289.png" alt="Bud_1-1658346710289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That could be handy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 19:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/convert-a-oracle-table-to-a-feature-class/m-p/1194142#M33553</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-07-20T19:52:52Z</dc:date>
    </item>
  </channel>
</rss>

