<?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 Publish  web service based on spatial query in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-service-based-on-spatial-query/m-p/1368463#M77203</link>
    <description>&lt;P&gt;Our city has a tree inventory that includes trees in our community orchards. I would like to filter the entire tree inventory layer based on trees within parcel boundaries (orchard areas). Some trees are retired/added throughout the year so I would like it to automatically update the orchard trees in those boundaries. Is there a way to essentially do a def query but spatially?&lt;/P&gt;&lt;P&gt;This layer will then be published as a web service to be added to an experience builder.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 17:30:10 GMT</pubDate>
    <dc:creator>LaurenCammack01</dc:creator>
    <dc:date>2024-01-10T17:30:10Z</dc:date>
    <item>
      <title>Publish  web service based on spatial query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-service-based-on-spatial-query/m-p/1368463#M77203</link>
      <description>&lt;P&gt;Our city has a tree inventory that includes trees in our community orchards. I would like to filter the entire tree inventory layer based on trees within parcel boundaries (orchard areas). Some trees are retired/added throughout the year so I would like it to automatically update the orchard trees in those boundaries. Is there a way to essentially do a def query but spatially?&lt;/P&gt;&lt;P&gt;This layer will then be published as a web service to be added to an experience builder.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 17:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-web-service-based-on-spatial-query/m-p/1368463#M77203</guid>
      <dc:creator>LaurenCammack01</dc:creator>
      <dc:date>2024-01-10T17:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Publish  web service based on spatial query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-service-based-on-spatial-query/m-p/1368479#M77209</link>
      <description>&lt;P&gt;Do you have control over the schema of the tree inventory? I think the easiest solution would be to use an attribute as the definition query, either a dedicated attribute or else something else that can work as a stand-in for whether they're in an orchard or not. Looking all the way back to this &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/spatial-definition-query/idi-p/922663" target="_self"&gt;idea from 2010&lt;/A&gt;, it looks like there is not spatial query, at least that's built into ESRI software natively.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 17:47:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-web-service-based-on-spatial-query/m-p/1368479#M77209</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-01-10T17:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Publish  web service based on spatial query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-service-based-on-spatial-query/m-p/1368609#M77234</link>
      <description>&lt;OL&gt;&lt;LI&gt;What kind of enterprise geodatabase? Oracle, SQL Server, PostgreSQL?&lt;/LI&gt;&lt;LI&gt;Are you sure you want to do a spatial definition query (re-run the query every time a user views it in the map)? It can be done with spatial functions, but they're slow.&lt;/LI&gt;&lt;LI&gt;Can you give us an idea of your level of expertise with advanced SQL queries, spatial indexes, etc? Spatial SQL queries can be tricky.&lt;OL class="lia-list-style-type-lower-alpha"&gt;&lt;LI&gt;Do you use a SQL client like Toad or SQL Developer?&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Have you considered pre-computing using a scheduled geoprocessing tool, attribute rules, etc?&lt;/LI&gt;&lt;LI&gt;How many features are there in the trees and parcel feature classes?&lt;/LI&gt;&lt;LI&gt;What version of ArcGIS Pro and Enterprise?&lt;/LI&gt;&lt;LI&gt;What spatial type is used? ESRI’s ST_Geometry? PostgreSQL’s native spatial type?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Related:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-questions/options-for-computing-fields/m-p/1178731" target="_self"&gt;Options for computing fields&lt;/A&gt;&lt;/LI&gt;&lt;LI&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;&lt;EM&gt;Relationship Parameter — Intersect (DBMS)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 11 Jan 2024 03:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-web-service-based-on-spatial-query/m-p/1368609#M77234</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-11T03:56:47Z</dc:date>
    </item>
  </channel>
</rss>

