Select to view content in your preferred language

GeoDatabaseHelper.getFeatures() [Java]

956
2
09-14-2010 06:20 AM
PeterRoe
New Contributor
I am trying to use GeoDatabaseHelper.getFeatures() to get the individual features out of a FeatureClass.

One of the arguments is an array of object/feature IDs (int[] fids). I have not been able to determine where to get the values that go in this array. How do I get the values to go in this array?
0 Kudos
2 Replies
NeilClemmons
Honored Contributor
You have to create the array and fill it with the ObjectIds of the features you want.  If you don't know the ObjectIds then this isn't the method you need to use.  In that case, you would query the feature class for the feature you want by using a query filter and calling IFeatureClass.Search.
0 Kudos
PeterRoe
New Contributor
Thanks. This is more like what I was looking for in the first place. Looks like this should do the trick.
0 Kudos