[core] Keep the same sort index for all feature rings

This commit is contained in:
Mikhail Pozdnyakov
2019-06-12 19:14:20 +03:00
parent ce91218b42
commit 2acfa8b86f

View File

@@ -32,7 +32,7 @@ void FeatureIndex::insert(const GeometryCollection& geometries,
envelope.min.y < util::EXTENT &&
envelope.max.x >= 0 &&
envelope.max.y >= 0) {
grid.insert(IndexedSubfeature(index, sourceLayerName, bucketLeaderID, featureSortIndex++),
grid.insert(IndexedSubfeature(index, sourceLayerName, bucketLeaderID, featureSortIndex),
{convertPoint<float>(envelope.min), convertPoint<float>(envelope.max)});
}
}