Using Map Suite Web Edition how come when I do the call to GetFeaturesNearestTo I get the error "The Field name you want is not exist"?
I have removed all code but the GetFeaturesNearestTo() call just to make sure it isn't something else but still throws the error.
string[] shapeFiles = new string[] {ConfigurationManager.AppSettings["MapDataDirectory"] + "/USA/TLKA/NDlkaA10.shp"
, ConfigurationManager.AppSettings["MapDataDirectory"] + "/USA/TLKA/NDlkaA20.shp"
, ConfigurationManager.AppSettings["MapDataDirectory"] + "/USA/TLKA/NDlkaA30.shp"
, ConfigurationManager.AppSettings["MapDataDirectory"] + "/USA/TLKA/NDlkaA40.shp"
, ConfigurationManager.AppSettings["MapDataDirectory"] + "/USA/TLKA/NDlkaA50.shp"
, ConfigurationManager.AppSettings["MapDataDirectory"] + "/USA/TLKA/NDlkaA60.shp"
, ConfigurationManager.AppSettings["MapDataDirectory"] + "/USA/TLKA/NDlkaA65.shp"
, ConfigurationManager.AppSettings["MapDataDirectory"] + "/USA/TLKA/NDlkaA70.shp"
};
for (int idx = 0; idx < shapeFiles.Length; ++idx)
{
MultipleShapeFileFeatureLayer.BuildIndex(shapeFiles[idx], BuildIndexMode.DoNotRebuild);
}
MultipleShapeFileFeatureLayer lineLayer = new MultipleShapeFileFeatureLayer(shapeFiles);
lineLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
billingOverlay.Layers.Add("ND", lineLayer);
Collection<Feature> closestFeatures = billingLayer.QueryTools.GetFeaturesNearestTo(new PointShape(vertex), GeographyUnit.Feet, 100, ReturningColumnsType.AllColumns);
Any help would be greatly appreciated.
- Josh