Filter one FeatureLayer by another FeatureLayer using ArcGIS Javascript 4.1x

346
1
08-23-2019 08:25 AM
fsdgsdgs
New Contributor

I'm attempting to use one FeatureServer layer that stores city boundaries to filter data that has Census Tract data. The goal of this is to limit Census Tract data to within the provided boundaries. I am not able to do any preprocessing of data from the server or using ArcGIS online, and I'm limited to using ArcGIS Javascript 4.12 to do this. Is there a way to do the geoprocessing to filter this data using the ArcGIS Javascript api to do this?

An alternative might be to access a FeatureServer that has tract data that includes a Cesus Designated Place or city identifier. If you can point me in that direction, that would help as well.

0 Kudos
1 Reply
SaschaBrunnerCH
Esri Contributor

This could be achieved with FeatureFilter | ArcGIS API for JavaScript 4.12.

Check sample: Filter features by geometry with SceneLayer | ArcGIS API for JavaScript 4.12 

For your purpose use the geometry-boundaries to filter on the Census Tract Data.

0 Kudos