<?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: Querying a feature layer with a large amount of points in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127350#M75638</link>
    <description>&lt;P&gt;I have to admit, I haven't had a chance to test out client side processing but it seems like you should have access to all the attributes like normal are you specifying the attributes you want in the query&amp;nbsp;outFields parameter?&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 22:54:29 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2021-12-17T22:54:29Z</dc:date>
    <item>
      <title>Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1125962#M75597</link>
      <description>&lt;P&gt;Greetings! Working in ArcGIS JS API 4.22:&lt;/P&gt;&lt;P&gt;I am trying to query a feature layer (polygons) with a large amount of points (~1000) in order to find which polygons the points intersect with (by name only, no need for geometries. Doing this with a loop for each point individually is extremely slow and errors out. I've tried condensing the points to a multipoint geometry in hopes of speeding the process to no avail. Is there a solution to this that I am just overlooking?&lt;/P&gt;&lt;PRE&gt;const layer = new FeatureLayer({
            url: "https://arcgis-server.lsa.umich.edu/arcgis/rest/services/IFR/glahf_classification_poly/MapServer/0",
            outFields: ["AEU_Code"],
        });
//gets a server error at about 250 points
var multipoint = new Multipoint({
            points: [
                [-86, 45],
                [-85, 47],
                [-84, 49]
            ]
        });

        const query = new Query();
        query.geometry = multipoint;
        query.outSpatialReference = { wkid: 102100 };
        query.returnGeometry = false;
        query.outFields = ["AEU_Code"];

        layer.queryFeatures(query).then(function (results) {
            console.log(results.features);  // prints the array of features to the console
        });&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:50:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1125962#M75597</guid>
      <dc:creator>Barty</dc:creator>
      <dc:date>2021-12-17T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127213#M75629</link>
      <description>&lt;P&gt;Hi Barty, could you please share your code so we can better understand what you are trying to achieve?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127213#M75629</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2021-12-17T16:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127218#M75630</link>
      <description>&lt;P&gt;Yep - edited post with code!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127218#M75630</guid>
      <dc:creator>Barty</dc:creator>
      <dc:date>2021-12-17T16:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127221#M75631</link>
      <description>&lt;P&gt;have you tried this sample&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featureeffect-geometry" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featureeffect-geometry&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127221#M75631</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2021-12-17T16:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127286#M75635</link>
      <description>&lt;P&gt;that process does work for the display which is great, however, featureFilters won't return any of the attribute data which I need in order to determine the names of the polygons that intersect the points.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 19:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127286#M75635</guid>
      <dc:creator>Barty</dc:creator>
      <dc:date>2021-12-17T19:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127316#M75636</link>
      <description>&lt;P&gt;See if you can do this querying on the client side rather than calling on the server.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/turbo-charge-your-web-apps-with-client-side-queries/" target="_blank"&gt;Turbo charge your web apps with client-side queries (esri.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 21:01:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127316#M75636</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-12-17T21:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127340#M75637</link>
      <description>&lt;P&gt;This works great, thanks! Is it possible to return the attributes from each of the geometries queried? At the moment, I can only return unique values. For example, I'm querying 500 points on the polygon layer (contains 77 OIDs), and the query only returns the unique polygons that intersect with the points. But rather, I would like to return the value of the intersecting polygon for each point (e.g., generating a list of 500 polygon OIDs).&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 22:30:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127340#M75637</guid>
      <dc:creator>Barty</dc:creator>
      <dc:date>2021-12-17T22:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127350#M75638</link>
      <description>&lt;P&gt;I have to admit, I haven't had a chance to test out client side processing but it seems like you should have access to all the attributes like normal are you specifying the attributes you want in the query&amp;nbsp;outFields parameter?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 22:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127350#M75638</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-12-17T22:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127365#M75639</link>
      <description>&lt;P&gt;I did specify the outFields param, but it just is only returning the value for only one instance of the point layer intersecting a polygon (featureLayerView). So, even if 50 points are intersecting one of the polygons, it only returns the outField value once per feature (when in reality I want it to return it 50 times).&lt;/P&gt;</description>
      <pubDate>Sat, 18 Dec 2021 00:11:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1127365#M75639</guid>
      <dc:creator>Barty</dc:creator>
      <dc:date>2021-12-18T00:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer with a large amount of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1129120#M75717</link>
      <description>&lt;P&gt;So you have two separate layers in this situation right? A polygon layer and a points layer? Use the pairwise intersect tool, it should result in an feature class where the attribute table has all of your points along with the fields from the polygon layer they intersect with. 1000 points really isn't that many, this should not be very computationally intense.&lt;/P&gt;&lt;P&gt;If this is not what you're doing can you be more descriptive with the data you have and what you are trying to accomplish?&lt;/P&gt;&lt;P&gt;The other way &lt;A href="http://www.jbbatterychina.com/" target="_self"&gt;I&lt;/A&gt; interpret the question is that you already have the feature layer I described, but are trying to query it in some way. If this is the case can you elaborate on what you are trying to glean from the data? I don't understand why you would need to query each point individually.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 09:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-a-feature-layer-with-a-large-amount-of/m-p/1129120#M75717</guid>
      <dc:creator>sidrakiyani</dc:creator>
      <dc:date>2021-12-28T09:53:15Z</dc:date>
    </item>
  </channel>
</rss>

