Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

Closed Issue: RemoveAt does not remove Attributes [178]

$
0
0
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.

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>