Skip to content

fix: prevent skipped features from being added to chunk features#46

Merged
almog8k merged 2 commits into
v3.xfrom
fix/skipped-feature-duplication
Dec 3, 2025
Merged

fix: prevent skipped features from being added to chunk features#46
almog8k merged 2 commits into
v3.xfrom
fix/skipped-feature-duplication

Conversation

@almog8k
Copy link
Copy Markdown
Contributor

@almog8k almog8k commented Dec 3, 2025

Question Answer
Bug fix

Further information:
Features exceeding maxVertices were incorrectly added to chunks after
nextChunk() cleared the skippedFeatures array. Using CanAddFeatureMode
enum (ADD/FULL/SKIPPED) instead of boolean ensures skipped features
are properly excluded from processing.

Comment thread src/files/shapefile/types/index.ts Outdated
}

/* eslint-disable @typescript-eslint/naming-convention */
export const CanAddFeatureMode = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to rename it - can is kinda for boolean types

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to FeatureStatus

@almog8k almog8k merged commit 3df5336 into v3.x Dec 3, 2025
7 checks passed
@almog8k almog8k deleted the fix/skipped-feature-duplication branch December 3, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants