<?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>idea Select Layer by Location — Intersect (DBMS) — User-defined output database view name in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/select-layer-by-location-intersect-dbms-user/idi-p/1365481</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.6.8; Oracle 18c 10.7.1 EGDB; SDE.ST_Geometry:&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-location.htm" target="_self" rel="nofollow noopener noreferrer"&gt;Select Layer By Location (Data Management)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;docs, the&amp;nbsp;&lt;EM&gt;Relationship Parameter — Intersect (DBMS)&amp;nbsp;&lt;/EM&gt;section says:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;For the&amp;nbsp;&lt;SPAN class=""&gt;Relationship&lt;/SPAN&gt;&amp;nbsp;parameter, the&amp;nbsp;&lt;SPAN class=""&gt;Intersect (DBMS)&lt;/SPAN&gt;&amp;nbsp;option may provide better performance than the&amp;nbsp;&lt;SPAN class=""&gt;Intersect&lt;/SPAN&gt;&amp;nbsp;option when using enterprise geodatabase data; however, this option is only supported under specific conditions. If all conditions are met, the spatial operation will be performed in the enterprise geodatabase database management system (DBMS) rather than on the client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...The user connecting to the geodatabase must have privileges to &lt;STRONG&gt;create a view in the database&lt;/STRONG&gt; where the feature classes are stored.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;In other words, the tool automatically creates a database view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was able to determine what the view is called by querying the database using SQL to get a list of views and sort by creation date:&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-1704218870780.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90299iA57928E1E11BEE15/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1704218870780.png" alt="Bud_1-1704218870780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The view is called&amp;nbsp;SELECTIONOUTPUT&lt;STRONG&gt;NAME&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Idea:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;It seems clunky that the tool:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Secretly creates a view.&lt;/LI&gt;&lt;LI&gt;Uses an odd naming convention (why is the word "NAME" in the name?).&lt;/LI&gt;&lt;LI&gt;Doesn't tell the user what its name is (not even in the docs).&lt;/LI&gt;&lt;LI&gt;Doesn't let the user choose the name.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Could that behaviour be improved, such as adding a parameter to the tool that lets us define the name of the output view?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 18:40:32 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-01-02T18:40:32Z</dc:date>
    <item>
      <title>Select Layer by Location — Intersect (DBMS) — User-defined output database view name</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/select-layer-by-location-intersect-dbms-user/idi-p/1365481</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.6.8; Oracle 18c 10.7.1 EGDB; SDE.ST_Geometry:&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-location.htm" target="_self" rel="nofollow noopener noreferrer"&gt;Select Layer By Location (Data Management)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;docs, the&amp;nbsp;&lt;EM&gt;Relationship Parameter — Intersect (DBMS)&amp;nbsp;&lt;/EM&gt;section says:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;For the&amp;nbsp;&lt;SPAN class=""&gt;Relationship&lt;/SPAN&gt;&amp;nbsp;parameter, the&amp;nbsp;&lt;SPAN class=""&gt;Intersect (DBMS)&lt;/SPAN&gt;&amp;nbsp;option may provide better performance than the&amp;nbsp;&lt;SPAN class=""&gt;Intersect&lt;/SPAN&gt;&amp;nbsp;option when using enterprise geodatabase data; however, this option is only supported under specific conditions. If all conditions are met, the spatial operation will be performed in the enterprise geodatabase database management system (DBMS) rather than on the client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...The user connecting to the geodatabase must have privileges to &lt;STRONG&gt;create a view in the database&lt;/STRONG&gt; where the feature classes are stored.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;In other words, the tool automatically creates a database view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was able to determine what the view is called by querying the database using SQL to get a list of views and sort by creation date:&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-1704218870780.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90299iA57928E1E11BEE15/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1704218870780.png" alt="Bud_1-1704218870780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The view is called&amp;nbsp;SELECTIONOUTPUT&lt;STRONG&gt;NAME&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Idea:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;It seems clunky that the tool:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Secretly creates a view.&lt;/LI&gt;&lt;LI&gt;Uses an odd naming convention (why is the word "NAME" in the name?).&lt;/LI&gt;&lt;LI&gt;Doesn't tell the user what its name is (not even in the docs).&lt;/LI&gt;&lt;LI&gt;Doesn't let the user choose the name.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Could that behaviour be improved, such as adding a parameter to the tool that lets us define the name of the output view?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:40:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/select-layer-by-location-intersect-dbms-user/idi-p/1365481</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-02T18:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select Layer by Location — Intersect (DBMS) — User-defined output database view name</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/select-layer-by-location-intersect-dbms-user/idc-p/1365482#M27829</link>
      <description>&lt;P&gt;Additional info:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The GP tool settings that I used:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1704219669770.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90302iC79E1D7FDBF9A3F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1704219669770.png" alt="Bud_0-1704219669770.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(the AGOL_PARKINGLOT layer isn't actually in AGOL; it's in SDE, just like the ACTIVE_TRANSPORTATION layer)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The output database view:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1704218764380.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90298i6989E840D284D6DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1704218764380.png" alt="Bud_0-1704218764380.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;select "OBJECTID" from ( SELECT a.OBJECTID FROM INFRASTR.ACTIVE_TRANSPORTATION a,&lt;BR /&gt;INFRASTR.AGOL_PARKINGLOT b WHERE SDE.ST_INTERSECTS(a.SHAPE, b.SHAPE) = 1 ) esri_sql&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/select-layer-by-location-intersect-dbms-user/idc-p/1365482#M27829</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-02T18:21:37Z</dc:date>
    </item>
  </channel>
</rss>

