<?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: ArcGIS 10.2 SDE Create a view of one feature based on another in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388147#M22241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the helpful posts.&amp;nbsp; I can see that I didn't explain well enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax I think I can work out through trial and error.&amp;nbsp; It is the spatial intersection that escape me.&amp;nbsp; In 'pseudo-code' what I am trying to do is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT * FROM Temp.DBO.NTS_50k WHERE (Temp.DBO.NTS_50k features spatially intersect any part of Temp.DBO.CountyBoundary)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the above select statement even possible with MSSQL Standard 2012?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is, where would I look for information on what syntax would be required for the 'spatially intersect' part of the query, again keeping in mind what I am curious about is if I can use this to create a view.&amp;nbsp; If there is a better way to keep an original data set intact, reduce the need for an extra data set and be able to access a subset based on spatial location rather than a query data contained in a field, please let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 14:08:50 GMT</pubDate>
    <dc:creator>NathanOgden</dc:creator>
    <dc:date>2013-10-11T14:08:50Z</dc:date>
    <item>
      <title>ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388142#M22236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm new to this so please bear with me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw this cool feature new -&amp;gt; view in ArcCatalog when I right clicked on my database.&amp;nbsp; I immediately created a view with the sql statement select * from Temp.DBO.NTS_50k where NTS50K = '72E16' and it worked perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got to thinking wouldn't it be great if I could create a view of one dataset based on its intersection with another.&amp;nbsp; That would sure save me a lot of time and not affect my original data.&amp;nbsp; Can anyone tell me how to create (or if it is possible to create) such a query to make a view where one dataset is a subset of features which intersect another feature found in a geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for parcels which intersect my county's boundary.&amp;nbsp; Similar to Select by Location if possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layers Temp.DBO.Parcels, Temp.DBO.CountyBoundary&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL Server 2012 Std&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server Enterprise 10.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcCatalog 10.2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 19:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388142#M22236</guid>
      <dc:creator>NathanOgden</dc:creator>
      <dc:date>2013-10-10T19:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388143#M22237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use a subselect in a SQL query, but it might get expensive, especially&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you need to aggregate the shapes to avoid polynomial expansion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 19:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388143#M22237</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-10T19:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388144#M22238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please excuse my very basic understanding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if expensive will impact me or not.&amp;nbsp; Usually under 10 users - VMware environment with lots of resources. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way to accomplish the goal?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 19:57:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388144#M22238</guid>
      <dc:creator>NathanOgden</dc:creator>
      <dc:date>2013-10-10T19:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388145#M22239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, would you have a link to any documentation on creating a subset query?&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 20:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388145#M22239</guid>
      <dc:creator>NathanOgden</dc:creator>
      <dc:date>2013-10-10T20:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388146#M22240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-style:italic;"&gt;Based on the "DBO" I'm assuming that you're using SQL-Server, but you haven't&lt;BR /&gt;specified what version is in use.&amp;nbsp; Your options change slightly with Geometry&lt;BR /&gt;implementation. &lt;/SPAN&gt;&lt;SPAN&gt;[Oops, never mind; I guess I mentally edit out anything&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that looks like a signature]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's more Google hits on "SQL" than any other topic (except "hot girls"), but a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;search on "learn SQL subquery" seems to return a number of &lt;/SPAN&gt;&lt;A href="http://technet.microsoft.com/en-us/library/ms189575.aspx"&gt;reasonable options&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The trick is making the subquery result into a Geometry that can be used as a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameter in a&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://technet.microsoft.com/en-us/library/bb933899.aspx"&gt;STIntersects&lt;/A&gt;&lt;SPAN&gt; (or &lt;/SPAN&gt;&lt;A href="http://technet.microsoft.com/en-us/library/bb933838.aspx"&gt;STCrosses&lt;/A&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;A href="http://technet.microsoft.com/en-us/library/bb933904.aspx"&gt;STContains&lt;/A&gt;&lt;SPAN&gt;) query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expensive queries (like unioning 1:100k counties to determine a state boundary)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;always impact everyone.&amp;nbsp; If you can add a field or even a list of Boolean fields&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that store pre-calculated relationships, you can make a view join hum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 20:51:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388146#M22240</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-10T20:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388147#M22241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the helpful posts.&amp;nbsp; I can see that I didn't explain well enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax I think I can work out through trial and error.&amp;nbsp; It is the spatial intersection that escape me.&amp;nbsp; In 'pseudo-code' what I am trying to do is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT * FROM Temp.DBO.NTS_50k WHERE (Temp.DBO.NTS_50k features spatially intersect any part of Temp.DBO.CountyBoundary)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the above select statement even possible with MSSQL Standard 2012?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is, where would I look for information on what syntax would be required for the 'spatially intersect' part of the query, again keeping in mind what I am curious about is if I can use this to create a view.&amp;nbsp; If there is a better way to keep an original data set intact, reduce the need for an extra data set and be able to access a subset based on spatial location rather than a query data contained in a field, please let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 14:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388147#M22241</guid>
      <dc:creator>NathanOgden</dc:creator>
      <dc:date>2013-10-11T14:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388148#M22242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vince, I didn't read your previous post well enough so I'm going to look into STIntersects a bit more, but I think I tried it yesterday and got an error so I just assumed my system wasn't capable.&amp;nbsp; Maybe it was just the syntax.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 14:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388148#M22242</guid>
      <dc:creator>NathanOgden</dc:creator>
      <dc:date>2013-10-11T14:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388149#M22243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For whatever reason, the Microsoft operator functions are case-sensitive, so you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;need to be very careful when you type out the query. There's a possibility that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE will UPCASE your query, in which case, you'll need to change the WHERE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;clause to something mundane ("1=1") then edit the view later.&amp;nbsp; You should &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;certainly prototype your query within SQL-Server tools, then once it's working,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;paste it into the "Create View" window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 15:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388149#M22243</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-11T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388150#M22244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So my latest try is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT * FROM Temp.DBO.NTS_50k WHERE Temp.DBO.County_Boundary_2005.STIntersection(Temp.DBO.NTS_50k)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and I received the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[[Microsoft][SQL Server Native Client 10.0][SQL Server]An expression of non-Boolean type specified in a context where a condition is expected, near ')'.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty sure I have the Caps etc right because the select statement without the where clause works to create the appropriate view.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 17:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388150#M22244</guid>
      <dc:creator>NathanOgden</dc:creator>
      <dc:date>2013-10-11T17:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388151#M22245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SELECT * FROM Temp.DBO.NTS_50k WHERE Temp.DBO.County_Boundary_2005.STIntersection(Temp.DBO.NTS_50k)=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Results in the error below in the image&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 17:06:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388151#M22245</guid>
      <dc:creator>NathanOgden</dc:creator>
      <dc:date>2013-10-11T17:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 SDE Create a view of one feature based on another</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388152#M22246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Look at the examples in the Microsoft documentation for their implementation use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;paradigm.&amp;nbsp; The STIntersects method is a property of the geometry column, so the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE clause should look like&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;WHERE geometrycolumnname.STIntersects( someothergeometry )&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The function itself returns Boolean (nulls allowed), but getting the geometry out of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;another table (which of course my have the same SRID) and into that function is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;likely going to be the trick, since I've never seen a subselect inside parenthesis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(though it certainly wouldn't hurt to try).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 18:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgis-10-2-sde-create-a-view-of-one-feature-based/m-p/388152#M22246</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-11T18:11:04Z</dc:date>
    </item>
  </channel>
</rss>

