Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tileset: fix population parsing of commas. #38

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

bdon
Copy link
Member

@bdon bdon commented Jun 1, 2023

@nvkelso this ignores OSM population tag values that have commas in them (though we should either fix them upstream or handle those correctly)

@sonarcloud
Copy link

sonarcloud bot commented Jun 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Collaborator

@nvkelso nvkelso left a comment

Choose a reason for hiding this comment

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

LGTM

Longer term there's a lot of junk in OSM tag values that can be sanitized.

Looks like there are other useful built-in functions for sanitizing, like:

  • meters - not sure why this isn't called parseMeters?
  • parseRoundInt which uses regex in TO_ROUND_INT_SUBSTRING_PATTERN.

So any new logic should be compatible with an upstream merge there.

@bdon bdon merged commit a3c55e5 into main Jun 2, 2023
@bdon bdon deleted the bdon/fix-population-parsing branch July 13, 2023 12:24
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