OK looks like there is nothing wrong with the code (whether it is the best way to do the job is a different question) but with my geodatabase. When it was made it looks like 2 of the 9 features in it were omitted somehow, because when I call geodatabaseFeatureTable.getNumberOfFeatures(); only 7 is returned. Also, when I pass 3 to getFeature() the expected polygon is returned. Is there a good why to look inside of a runtime geodatabase after it has been made, just to confirm that it is what one thinks it is?
Thanks,
Forest