How can I select features without adding the Feature Layer to TOC in ArcGIS Pro SDK

388
4
02-08-2021 09:43 AM
OguzSariyildiz
Occasional Contributor

I would like to select features (image footprints) in the view extent on a FeatureLayer. Then, I will use those selected features to call aerial images. Users do not have anything to do with the FeatureLayer. I would like making selection part behind the scenes. 

Or, is there another way to show all images when user at 1:20,000 scale or bigger. 

Is there a possible way to do one if these in AGP SDK? 

0 Kudos
4 Replies
CharlesMacleod
Esri Contributor

select directly from the underlying datasource. 

0 Kudos
OguzSariyildiz
Occasional Contributor

Hi @CharlesMacleod

Thanks for your answer! Is there way to select features directly without converting a shapefile/Feature Class into a project item? Would you mind sharing a simple example selecting directly from a shapefile or feature class? 

0 Kudos
CharlesMacleod
Esri Contributor
0 Kudos
OguzSariyildiz
Occasional Contributor

@CharlesMacleod 

Great resources! I use multiple layers some of them pointing to shapefiles some of them pointing to feature classes. I will see what I can do. Thanks for your answer. 

0 Kudos