<?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: Question about spatial views in ArcGIS 10.1 in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119391#M6810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're using a 10.1 desktop client, you have the option to use the Create Database View GP tool as described &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000177000000"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; That being said, to generate spatial views with this tool you would need to be using ST_Geometry or Geometry rather than a binary storage data type.&amp;nbsp; So, if you're using SDEBINARY for example, this tool probably won't help you create spatial views.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've always had good luck with the SDE command-line tools.&amp;nbsp; Although more complex commands can be tedious to write at times, the tools (at least the SDETABLE command tool) works with most if not all spatial data types.&amp;nbsp; There are times where I'll create the query using SDE commands and then further edit the view's SQL using RDBMS tools (e.g., SQL Studio Management Studio) afterwards.&amp;nbsp; I believe the SDE command-line tools are going away once the next release of ArcGIS comes out (whatever comes out after the 10.2.1 release).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The method you described for creating a query layer isn't the same as a what we'd traditionally call a "spatial view", which are persistent views that live inside the database and contain a spatial column.&amp;nbsp; In my experience, query layers are temporary views (which can be spatial or non-spatial) and reside only within a map document or model.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in summary, you can use the Create Database View GP tool if you are using the right spatial data types.&amp;nbsp; Otherwise, use the SDE command-line tools as you are currently doing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Feb 2014 20:05:44 GMT</pubDate>
    <dc:creator>WilliamCraft</dc:creator>
    <dc:date>2014-02-15T20:05:44Z</dc:date>
    <item>
      <title>Question about spatial views in ArcGIS 10.1</title>
      <link>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119390#M6809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have an enterprise geodatabase in SQL server which was created in ArcGIS 10.0. From the time we created this, we have created spatial views in this database using the sdetable -o create_view command combining fields from more than one table in the same database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the last year, we have upgraded our Client applications and our ArcGIS server to version 10.1.&amp;nbsp; We have not upgraded the geodatabase at this point and still use the sdetable -o create_view command to create spatial views.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm struggling to understand at this point the correct method for creating spatial views at 10.1.&amp;nbsp; I have tried using the new view option when you right click a database connection and specify a query; When I do this, it creates a query table instead of a spatial view despite specifying the ObjectID and shape field in the view query.&amp;nbsp; ArcMap can't seem to determine the ObjectID field when I try to add it to the map either, so I get a dialog box asking to select a unique identifier field every time I add it to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the correct way to create a spatial view at 10.1? Should I just continue to use the sde command on my database server to do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 21:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119390#M6809</guid>
      <dc:creator>HelenRoulston_SelwynDC</dc:creator>
      <dc:date>2014-02-12T21:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question about spatial views in ArcGIS 10.1</title>
      <link>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119391#M6810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're using a 10.1 desktop client, you have the option to use the Create Database View GP tool as described &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000177000000"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; That being said, to generate spatial views with this tool you would need to be using ST_Geometry or Geometry rather than a binary storage data type.&amp;nbsp; So, if you're using SDEBINARY for example, this tool probably won't help you create spatial views.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've always had good luck with the SDE command-line tools.&amp;nbsp; Although more complex commands can be tedious to write at times, the tools (at least the SDETABLE command tool) works with most if not all spatial data types.&amp;nbsp; There are times where I'll create the query using SDE commands and then further edit the view's SQL using RDBMS tools (e.g., SQL Studio Management Studio) afterwards.&amp;nbsp; I believe the SDE command-line tools are going away once the next release of ArcGIS comes out (whatever comes out after the 10.2.1 release).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The method you described for creating a query layer isn't the same as a what we'd traditionally call a "spatial view", which are persistent views that live inside the database and contain a spatial column.&amp;nbsp; In my experience, query layers are temporary views (which can be spatial or non-spatial) and reside only within a map document or model.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in summary, you can use the Create Database View GP tool if you are using the right spatial data types.&amp;nbsp; Otherwise, use the SDE command-line tools as you are currently doing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Feb 2014 20:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119391#M6810</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2014-02-15T20:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Question about spatial views in ArcGIS 10.1</title>
      <link>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119392#M6811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the other main difference between the two views created using the Desktop interface and using SDE Command line tools, is that -- "&lt;/SPAN&gt;&lt;STRONG&gt;Views created in enterprise geodatabases using the 'Create Database View' tool are not registered with the geodatabase.&lt;/STRONG&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't want to select an unique identifier field every time while adding that view to ArcMap, try the below workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Launch ArcMap--&amp;gt;go to File--&amp;gt;Add data--&amp;gt;Add Query layer--&amp;gt;connect to the geodatabase--&amp;gt;select the database view table--&amp;gt;Run the query select * from (table_name) --&amp;gt;validate--&amp;gt;check show advanced options box--&amp;gt;next--&amp;gt;the unique identifer's should already be identified--&amp;gt;ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can continue using the sde command line to create the view for now, however as William mentioned, the command lines will be deprecated in the &lt;/SPAN&gt;&lt;STRONG&gt;next MAJOR release&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 14:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119392#M6811</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2014-02-18T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question about spatial views in ArcGIS 10.1</title>
      <link>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119393#M6812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm struggling to understand at this point the correct method for creating spatial views at 10.1.&amp;nbsp; I have tried using the new view option when you right click a database connection and specify a query; When I do this, it creates a query table instead of a spatial view despite specifying the ObjectID and shape field in the view query.&amp;nbsp; ArcMap can't seem to determine the ObjectID field when I try to add it to the map either, so I get a dialog box asking to select a unique identifier field every time I add it to the map.&lt;BR /&gt;&lt;BR /&gt;What is the correct way to create a spatial view at 10.1? Should I just continue to use the sde command on my database server to do this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really recommend you to read the entire thread I link below and try to digest what I have been writing there, as, although it has a different titel related to metadata too, it actually deals with the same issues and the misunderstandings about ordinary RDBMS database views (as the spatial view you created through the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000177000000"&gt;Create Database View&lt;/A&gt;&lt;SPAN&gt; tool or the &lt;/SPAN&gt;&lt;STRONG&gt;New / View&lt;/STRONG&gt;&lt;SPAN&gt; menu option), and ArcSDE&amp;nbsp; registered views created by the ArcSDE Command Line tools. &lt;/SPAN&gt;&lt;STRONG&gt;These are not the same!&lt;/STRONG&gt;&lt;SPAN&gt; Read this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/99723-Database-Views-and-Metadata"&gt;Database Views and Metadata&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/question-about-spatial-views-in-arcgis-10-1/m-p/119393#M6812</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-02-18T16:28:37Z</dc:date>
    </item>
  </channel>
</rss>

