<?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 Feature Layer query for multiple coordinates in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866888#M4466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FeatureLayer that I'm trying to query for a bunch of coordinates. Is there any way to query the FeatureLayer once (from the WWW to my local machine) and then query it once per coordinate, instead of doing an HTTP request per coordinate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2020 14:43:47 GMT</pubDate>
    <dc:creator>GillesJacobs</dc:creator>
    <dc:date>2020-01-28T14:43:47Z</dc:date>
    <item>
      <title>Feature Layer query for multiple coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866888#M4466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FeatureLayer that I'm trying to query for a bunch of coordinates. Is there any way to query the FeatureLayer once (from the WWW to my local machine) and then query it once per coordinate, instead of doing an HTTP request per coordinate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 14:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866888#M4466</guid>
      <dc:creator>GillesJacobs</dc:creator>
      <dc:date>2020-01-28T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query for multiple coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866889#M4467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i understood your need correctly, you can use query with multipoint to get all the points in one go and then query the returned result set further. The api is a bit confusing for the query but you should get the idea from this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; FeatureLayer
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; getpass

password &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; getpass&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getpass&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Enter password: "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'org'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'me'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

feature_layer_item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'bfb34d920bda46388e95a9d4e71e036b'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
feature_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; feature_layer_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

json &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"points"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9816005.5426&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5126478.4306999967&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9814244.3355&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5126472.3226&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9813815.49&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5126409.5697999969&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"spatialReference"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"wkid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;102100&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

multi_point &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MultiPoint&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;multi_point&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;is_valid&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; point &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; multi_point&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;coordinates&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;point&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

query_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; feature_layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;geometry_filter &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; filters&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;contains&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;multi_point&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query_result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:47:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866889#M4467</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2021-12-12T10:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query for multiple coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866890#M4468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #222222; background-color: #ffffff; font-size: 0.875rem; padding: 20px 0px 0px;"&gt;Hi,&lt;/DIV&gt;&lt;DIV class="" style="color: #222222; background-color: #ffffff; font-size: medium;"&gt;&lt;DIV class="" style="font-size: 0.875rem; margin: 8px 0px 0px;"&gt;&lt;DIV class=""&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV dir="ltr"&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I tested it and it doesn't seem to do what I want it to do.&lt;P&gt;&lt;/P&gt;Maybe to explain my use-case better: I have this feature layer (&lt;A data-saferedirecturl="https://www.google.com/url?q=https://gis.wri.org/server/rest/services/LandMark/comm_ind_Documented/MapServer/1&amp;amp;source=gmail&amp;amp;ust=1581079409003000&amp;amp;usg=AFQjCNGnwqBcELZG-oc3bxH-kIwJUd0n_g" href="https://gis.wri.org/server/rest/services/LandMark/comm_ind_Documented/MapServer/1" style="color: #1155cc;" target="_blank" rel="nofollow noopener noreferrer"&gt;https://gis.wri.org/server/rest/services/LandMark/comm_ind_Documented/MapServer/1&lt;/A&gt;) that you can visualize graphically &lt;A href="http://www.landmarkmap.org/map/#x=-102.46&amp;amp;y=13.47&amp;amp;l=3&amp;amp;a=community_FormalDoc%2Ccommunity_NoDoc%2Ccommunity_FormalClaim%2Ccommunity_Occupied%2Cindigenous_FormalDoc%2Cindigenous_NoDoc%2Cindigenous_FormalClaim%2Cindigenous_Occupied" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I would like to query these layer for multiple locations; for example (LAT 36.357824, LNG-109.271351) and (LAT -14.681117, LNG 127.484020). Querying the points one by one I get the results I want, but the MultiPoint approach doesn't get me any results (seemingly because both points need to be&amp;nbsp; in a the same shape).&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code below:&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;MultiPoint:&lt;BR /&gt;feature_layer = arcgis.features.FeatureLayer(FEATURE_LAYER_comm_ind_Documented)&lt;BR /&gt;result = feature_layer.query(geometry_filter=arcgis.geometry.filters.contains(multi_point))&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;Point by point:&lt;/DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;feature_layer = arcgis.features.FeatureLayer(FEATURE_LAYER_comm_ind_Documented)
point = arcgis.geometry.Point({'x': location.lng, 'y': location.lat, 'spatialReference': {'wkid': 4326}})
result = feature_layer.query(return_geometry='false', sr={'wkid': 4326}, geometry_filter=geom_filter).to_dict()&lt;/PRE&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;The reason why I would like to avoind the point-by-point approach is because I have thousands of locations, and I want to save round-trips to the MapServer.&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I also tried downloading the layer to a GeoAccessor or DataFrame, but that takes forever.&lt;/DIV&gt;&lt;DIV&gt;Maybe what I want to do is not possible&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Best,&lt;/DIV&gt;&lt;DIV&gt;Gilles&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866890#M4468</guid>
      <dc:creator>GillesJacobs</dc:creator>
      <dc:date>2021-12-12T17:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query for multiple coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866891#M4469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I totally get that you want to do all in one query to avoid the ridiculous amount of HTTP calls when doing these kind of queries one by one. I think that what you are looking here is to use a correct spatial relationship.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/query-feature-service-.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Feature Service &lt;/A&gt;supports following spatial relationships on the query&lt;/P&gt;&lt;UL style="color: #4c4c4c; background-color: #ffffff; font-size: 0.9375rem; margin-left: 0.75rem; margin-bottom: 1.5rem;"&gt;&lt;LI style="margin: 0.375rem 0px 0.375rem 1.5rem;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;esriSpatialRelIntersects&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;—Part of an input feature is contained in the query geometry&lt;/LI&gt;&lt;LI style="margin: 0.375rem 0px 0.375rem 1.5rem;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;esriSpatialRelContains&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;—Part or all of an input feature is contained within the query geometry&lt;/LI&gt;&lt;LI style="margin: 0.375rem 0px 0.375rem 1.5rem;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;esriSpatialRelCrosses&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;—An input feature crosses the query geometry&lt;/LI&gt;&lt;LI style="margin: 0.375rem 0px 0.375rem 1.5rem;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;esriSpatialRelEnvelopeIntersects&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;—The envelope of an input feature intersects the envelope of the query geometry&lt;/LI&gt;&lt;LI style="margin: 0.375rem 0px 0.375rem 1.5rem;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;esriSpatialRelOverlaps&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;—An input feature overlaps the query geometry&lt;/LI&gt;&lt;LI style="margin: 0.375rem 0px 0.375rem 1.5rem;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;esriSpatialRelTouches&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;—An input feature touches the border of the query geometry&lt;/LI&gt;&lt;LI style="margin: 0.375rem 0px 0.375rem 1.5rem;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;esriSpatialRelWithin&lt;/SPAN&gt;—An input feature is completely enclosed by the query geometry&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So instead of using &lt;STRONG&gt;contains&lt;/STRONG&gt; you should use &lt;STRONG&gt;intersects&lt;/STRONG&gt; instead. That &lt;EM&gt;should/could/maybe&lt;/EM&gt; do the trick.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; FeatureLayerCollection
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;

feature_service_url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'https://gis.wri.org/server/rest/services/LandMark/comm_ind_Documented/MapServer'&lt;/SPAN&gt;
feature_service_root &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureLayerCollection&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature_service_url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
feature_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; feature_service_root&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
feature_layer

&lt;SPAN class="comment token"&gt;# &amp;lt;FeatureLayer url:"https://gis.wri.org/server/rest/services/LandMark/comm_ind_Documented/MapServer/1"&amp;gt;&lt;/SPAN&gt;

multipoint_json &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"points"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;109.271351&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;36.357824&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;127.484020&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;14.681117&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;"spatialReference"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"wkid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4326&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

multipoint &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MultiPoint&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;multipoint_json&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;multipoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;is_valid&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# True&lt;/SPAN&gt;

query_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; feature_layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
                geometry_filter &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; filters&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;intersects&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;multipoint&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
                return_geometry&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'false'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                out_fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'NAME'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Found {} results."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query_result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; feature &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; query_result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    
&lt;SPAN class="comment token"&gt;# Found 3 results.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# {"attributes": {"OBJECTID": 30989, "Name": "Navajo Nation Reservation"}}&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# {"attributes": {"OBJECTID": 106183, "Name": "FORREST RIVER"}}&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# {"attributes": {"OBJECTID": 107290, "Name": "Balanggarra (Combined)"}}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/866891#M4469</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2021-12-12T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query for multiple coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/1108186#M6744</link>
      <description>&lt;P&gt;Whenever we try to use Multipoint directly against the query operation of a hosted feature service endpoint, it seems the feature service always returns the first matching feature, not all matching features. Would you be so kind and validate that maybe our Multipoint geometry is malformed?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 13:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/1108186#M6744</guid>
      <dc:creator>OSINT_ENGINEER</dc:creator>
      <dc:date>2021-10-16T13:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query for multiple coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/1434321#M10006</link>
      <description>&lt;P&gt;Did you ever get follow up on this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 20:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-for-multiple-coordinates/m-p/1434321#M10006</guid>
      <dc:creator>sigccil</dc:creator>
      <dc:date>2024-05-10T20:50:43Z</dc:date>
    </item>
  </channel>
</rss>

