<?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: how to query (spatial query) a map service that has service directory disabled? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275299#M13478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot Robert! i'll look into geometry services &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2019 19:45:29 GMT</pubDate>
    <dc:creator>JennyHuang1</dc:creator>
    <dc:date>2019-05-14T19:45:29Z</dc:date>
    <item>
      <title>how to query (spatial query) a map service that has service directory disabled?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275293#M13472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to using the rest API so this might be a stupid question but i just can't figure it out...&lt;/P&gt;&lt;P&gt;i'm using postman to make&amp;nbsp;get request to the below url. my parameter&amp;nbsp;is f=json&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://maps.gov.bc.ca/arcgis/rest/services/mpcm/bcgwpub/MapServer/3" title="https://maps.gov.bc.ca/arcgis/rest/services/mpcm/bcgwpub/MapServer/3"&gt;https://maps.gov.bc.ca/arcgis/rest/services/mpcm/bcgwpub/MapServer/3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i keep on getting the service directory has been disabled error when i add "query" to the above url string. i know the capabilities supported include query...and if add this service to AGOL's web mapping application it can be used in the query widget...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i'm hoping to achieve here, is to write python code to do spatial queries against this map service layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is appreciated!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 22:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275293#M13472</guid>
      <dc:creator>JennyHuang1</dc:creator>
      <dc:date>2019-05-13T22:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to query (spatial query) a map service that has service directory disabled?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275294#M13473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jenny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Because the service directory is disabled that means you have to know how to formulate your queries manually. For example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.gov.bc.ca/arcgis/rest/services/mpcm/bcgwpub/MapServer/3/query?where=ADMIN_AREA_GROUP_NAME=%27Regional%20District%20of%20Nanaimo%27&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;f=pjson"&gt;https://maps.gov.bc.ca/arcgis/rest/services/mpcm/bcgwpub/MapServer/3/query?where=ADMIN_AREA_GROUP_NAME=%27Regional%20District%20of%20Nanaimo%27&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;f=pjson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you were specifically asking about doing a spatial query you need these parameters&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;amp;geometry= The geometry you are querying by&lt;/LI&gt;&lt;LI&gt;&amp;amp;geometryType= The input geometries type (i.e.&amp;nbsp;esriGeometryEnvelope)&lt;/LI&gt;&lt;LI&gt;&amp;amp;inSR= The input geometries spatial reference&lt;/LI&gt;&lt;LI&gt;&amp;amp;spatialRel=esriSpatialRelIntersects&lt;/LI&gt;&lt;LI&gt;&amp;amp;outSR=&amp;nbsp;&lt;SPAN&gt;The output geometries spatial reference&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 12:51:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275294#M13473</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-14T12:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to query (spatial query) a map service that has service directory disabled?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275295#M13474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for the quick response, Robert! It's working now &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 16:12:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275295#M13474</guid>
      <dc:creator>JennyHuang1</dc:creator>
      <dc:date>2019-05-14T16:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to query (spatial query) a map service that has service directory disabled?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275296#M13475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 17:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275296#M13475</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-14T17:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to query (spatial query) a map service that has service directory disabled?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275297#M13476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea on how to run the query with polygons that have multiple rings? right now i'm thinking of either run the query for each ring geometry (using search cursor) or combine all rings into a multipart polygon. not sure if there's an alternative to these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 18:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275297#M13476</guid>
      <dc:creator>JennyHuang1</dc:creator>
      <dc:date>2019-05-14T18:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to query (spatial query) a map service that has service directory disabled?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275298#M13477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spatial Queries are only expecting one geometry not an array. So as you have said you will have to create a multipart polygon or run the query on each polygon. I normally use a Geometry service merge to get one multipart polygon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 19:42:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275298#M13477</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-14T19:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to query (spatial query) a map service that has service directory disabled?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275299#M13478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot Robert! i'll look into geometry services &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 19:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/275299#M13478</guid>
      <dc:creator>JennyHuang1</dc:creator>
      <dc:date>2019-05-14T19:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to query (spatial query) a map service that has service directory disabled?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/1055685#M39943</link>
      <description>&lt;P&gt;May i reignite this thread to ask whether it's possible to add a bounding box geomtery to a feature service?&lt;/P&gt;&lt;P&gt;Im have a service that i'd like to constrain and though this would be the url:&lt;/P&gt;&lt;P&gt;&lt;A href="https://...........vessels/FeatureServer/0/query?geometryType=esriGeometryEnvelope&amp;amp;geometry=-0.7,53.2,1.2,54.6" target="_blank"&gt;https://...........vessels/FeatureServer/0/query?geometryType=esriGeometryEnvelope&amp;amp;geometry=-0.7,53.2,1.2,54.6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but it's not working&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 15:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-query-spatial-query-a-map-service-that-has/m-p/1055685#M39943</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2021-05-07T15:23:05Z</dc:date>
    </item>
  </channel>
</rss>

