<?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: Oracle SQL - Spatial View With Union of Polygon Feature Classes in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644401#M36457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't think it's possible to construct a UNION view without unique rowid values in the source tables. It's far easier to tear apart a single table than to join multiple tables in this manner (and the performance would be better as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Jul 2014 13:27:47 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2014-07-27T13:27:47Z</dc:date>
    <item>
      <title>Oracle SQL - Spatial View With Union of Polygon Feature Classes</title>
      <link>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644398#M36454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So at my office I curate a lot of datasets maintained by other (ArcGIS-compatible, but not ArcGIS-using) departments, fed into an Oracle-based SDE, for consumption by all departments in an intranet web mapping system used by all departments and all divisions at my company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the groups of data I have contains two feature classes of point data that are functionally very similar, and for an unrelated project it looked like I needed both FCs merged into one FC, so I tried to accomplish this using a union in a Spatial View:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Table names have been changed and some fields removed for anonymity's sake)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CREATE OR REPLACE FORCE VIEW POINTS_COMBINED&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(OBJECTID, SHAPE)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;AS&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; SELECT CAST (ROWNUM AS INTEGER) AS OBJECTID, SHAPE&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; (&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; SELECT SHAPE FROM POINTS_1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; UNION ALL&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; SELECT SHAPE FROM POINTS_2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; ORDER BY OBJECTID;&lt;/P&gt;&lt;P&gt;This seems to work perfectly - the total number of features in the Spatial View is the same as the sum of the features in the individual FCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this, I decided to try the same method with a couple of polygon FCs, but for whatever reason I get the error "Stream Not Found" when I use literally the same SQL statement with the FC names changed to reflect the polygon FCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what I'm missing? I've checked the Spatial Reference for both and they're the same, so it's not that, as far as I can tell. Is it possibly just that polygon shape data is more complex than point shape data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 23:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644398#M36454</guid>
      <dc:creator>MatthewMiles</dc:creator>
      <dc:date>2014-07-24T23:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL - Spatial View With Union of Polygon Feature Classes</title>
      <link>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644399#M36455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use ROWNUM as a registered rowid.&amp;nbsp; The value MUST be repeatable on subsequent&lt;/P&gt;&lt;P&gt;queries, or the graphic to table relationship will be random.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 23:29:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644399#M36455</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-07-24T23:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL - Spatial View With Union of Polygon Feature Classes</title>
      <link>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644400#M36456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there another way to create a unique non-nullable integer field in the view using an expression, then? Most of the solutions I found by googling around online just suggested using the ROWNUM on the container level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2014 23:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644400#M36456</guid>
      <dc:creator>MatthewMiles</dc:creator>
      <dc:date>2014-07-26T23:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL - Spatial View With Union of Polygon Feature Classes</title>
      <link>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644401#M36457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't think it's possible to construct a UNION view without unique rowid values in the source tables. It's far easier to tear apart a single table than to join multiple tables in this manner (and the performance would be better as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jul 2014 13:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644401#M36457</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-07-27T13:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL - Spatial View With Union of Polygon Feature Classes</title>
      <link>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644402#M36458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afraid of that. Oh, well. It's not too hard to just add another GP to my update scripts to accomplish the same thing; I was just mostly trying this out as an experiment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 14:22:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644402#M36458</guid>
      <dc:creator>MatthewMiles</dc:creator>
      <dc:date>2014-07-30T14:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL - Spatial View With Union of Polygon Feature Classes</title>
      <link>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644403#M36459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I am running into the same problem.&lt;/P&gt;&lt;P style="text-align: left;"&gt;If there is a field (for example uKey) that is unique between the two tables (my responsibility to manage it) can I use it as OBJECTID?&lt;/P&gt;&lt;P style="text-align: left;"&gt;Should I register my view into the geodatabase once it created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Thanks&lt;/P&gt;&lt;P style="text-align: left;"&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 06:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/oracle-sql-spatial-view-with-union-of-polygon/m-p/644403#M36459</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2014-11-13T06:06:18Z</dc:date>
    </item>
  </channel>
</rss>

