When a featureset is in index mode and RemoveFeaturesAt is called it eventually gets to
FeatureSet.
public void RemoveShapesAt(IEnumerable<int> indices)
{
...
foreach (int index in remove)
{
if (AttributesPopulated)
{
DataTable.Rows.RemoveAt(index);
}
ProgressMeter.Next();
}
...}
}
But AttributesPopulated is false. so the data table is not maintained correctly.
Shapes are deleted but the corresponding rows are not.
Now call FeatureSet.Save and you will have a file where there are more data rows than shapes.
Comments: This issue list is no longer active. This issue has been copied to our issue list on github (https://github.com/DotSpatial/DotSpatial/issues) Please check there to find out whether this issue was fixed.
FeatureSet.
public void RemoveShapesAt(IEnumerable<int> indices)
{
...
foreach (int index in remove)
{
if (AttributesPopulated)
{
DataTable.Rows.RemoveAt(index);
}
ProgressMeter.Next();
}
...}
}
But AttributesPopulated is false. so the data table is not maintained correctly.
Shapes are deleted but the corresponding rows are not.
Now call FeatureSet.Save and you will have a file where there are more data rows than shapes.
Comments: This issue list is no longer active. This issue has been copied to our issue list on github (https://github.com/DotSpatial/DotSpatial/issues) Please check there to find out whether this issue was fixed.