Hi,
Is there a way to retrieve individual features by ID from an OGC API - Features Service?
I have a list of feature IDs from an OGC API Feature Collection and want to select or highlight specific features on my map programmatically.
The issue is that I can't query features using the endpoint /collections/{collectionId}/items/{featureId}, as I can't find a way to do this with ArcGIS natively. Is there a solution for this?
For other feature layers like WFS, I’ve implemented selection using WfsFeatureTable.PopulateFromServiceAsync with an ID filter to return the desired feature. However, this doesn't work with all OGC APIs because the unique ID isn’t queryable in some cases. For example, see this service: https://demo.ldproxy.net/daraa/collections/TransportationGroundCrv/queryables.
Can I achieve this selection using the ArcGIS Maps SDK without manually implementing HTTPS requests?
Hi there,
The ArcGIS Maps SDK does not currently support retrieving individual features directly via the /collections/{collectionId}/items/{featureId} endpoint or querying by non-numeric IDs that are not exposed as queryable fields by the service. Since the OgcFeatureCollectionTable relies on standard query parameters that require the ID field to be explicitly filterable, there is no supported native method in the API to select these specific features programmatically.