Hi,
The FeatureLayer.QueryTools.GetFeaturesContaining(point, ReturningColumnsType.AllColumns) function only returns the ID column value in Map Suite v 9.0.
I’ve tested two options:
GetFeaturesContaining(BaseShape, IEnumerable<String>)
and
GetFeaturesContaining(BaseShape, ReturningColumnsType)
And both returned the ID field only.
I believe it worked properly in the version 8.
I’ve also tested it using the returned ID in the FeatureSource.GetFeatureById method and got all feature’s columns in v.9.
Thanks,
Gene
QueryTools.GetFeaturesContaining ReturningColumnsType.AllColumns returns the ID column value only
Hi Gene,
I am sorry I cannot reproduce that with the latest version. I think that should because maybe your dlls hadn’t been updated to the latest.
As below is my simple test code and result, if you found I missed anything please let me know.
Map1.MapUnit = GeographyUnit.DecimalDegree;
Map1.CurrentExtent = new RectangleShape(5, 8, 5.2, 7);
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"…\SampleData\Data\Countries02.shp");
worldLayer.Open();
Collection<Feature> features = worldLayer.QueryTools.GetFeaturesContaining(Map1.CurrentExtent, ReturningColumnsType.AllColumns);
Regards,
Don