MapSuite Team,
FileGeoDatabaseFeatureLayer.FeatureSource.GetFirstFeaturesWellKnownType – always return Invalid.
TheFileGeoDatabaseFeatureLayer = new FileGeoDatabaseFeatureLayer(TheFilePath, TheTableName, "OBJECTID");
TheFileGeoDatabaseFeatureLayer.Open();
TheWellKnownType = TheFileGeoDatabaseFeatureLayer.QueryTools.GetFirstFeaturesWellKnownType();
TheWellKnownType = TheFileGeoDatabaseFeatureLayer.FeatureSource.GetFirstFeaturesWellKnownType();
The above lines always returns WellKnownType.Invalid.
However, these lines always return a valid value:
cAllFeatures = TheFileGeoDatabaseFeatureLayer.FeatureSource.GetAllFeatures(ReturningColumnsType.AllColumns);
foreach (Feature TheFeature in cAllFeatures)
{
TheWellKnownType = TheFeature.GetWellKnownType();
}
The equivalent method for an SQLiteFeatureLayer is successful:
TheWellKnownType = TheSqliteFeatureLayer.GetFirstGeometryType();
Thanks,
Dennis