Tell me please. I want to create a * .tab file. Inside the “CalculateCenterPointSample” example in “HowDoISample”, I added the code
…
//Set the map extent to the censusHousing layer bounding box
censusHousingLayer.Open();
//----------------------------------------------------------
var ids = censusHousingLayer.FeatureSource.GetFeatureIds();
Collection<string> databaseColumns = new Collection<string>();
Collection<TabDbfColumn> columns = new Collection<TabDbfColumn>();
Collection<Feature> features = new Collection<Feature>();
foreach(string id in ids)
{
Collection<string> cols = new Collection<string>();
features.Add(censusHousingLayer.FeatureSource.GetFeatureById(id, cols));
}
TabFeatureLayer.CreateTabFile(“1.tab”, columns, features);
//----------------------------------------------------------
mapView.CurrentExtent = censusHousingLayer.GetBoundingBox();
…
The program closes, does not work. ((