Skip to content

Add Population Date and Population Source fields#261

Merged
tyrasd merged 4 commits intoopenstreetmap:mainfrom
1ec5:population-date-6672
Oct 14, 2022
Merged

Add Population Date and Population Source fields#261
tyrasd merged 4 commits intoopenstreetmap:mainfrom
1ec5:population-date-6672

Conversation

@1ec5
Copy link
Copy Markdown
Contributor

@1ec5 1ec5 commented Nov 3, 2021

Added Population Date and Population Source fields that only show up if Population is already tagged on the feature. Unlike the Source field, Population Source completes the most popular values on taginfo instead of a fixed set of known values, since there are so many possible values depending on the region.

Ideally, census:population would be deprecated in favor of a combination of population and population:date: openstreetmap/iD#6678. However, I don’t think the deprecated.json format supports splitting a tag value across two keys (which is one of the problems with census:population in the first place).

Fixes openstreetmap/iD#6672 except for the validation ideas in there. In my opinion, it would be worth visually grouping the fields first to set a user expectation that the fields are related: #2050.

@tyrasd
Copy link
Copy Markdown
Member

tyrasd commented Dec 10, 2021

In my opinion, it would be worth visually grouping the fields first to set a user expectation that the fields are related: #2050.

👍

Ideally, census:population would be deprecated in favor of a combination of population and population:date: openstreetmap/iD#6678. However, I don’t think the deprecated.json format supports splitting a tag value across two keys (which is one of the problems with census:population in the first place).

After reading the cleanup section of the corresponding wiki page, I think this is a bit more complex than what one could reasonably model in the context of the deprecated.json data. To me it looks like as if such situations would need to get "hard" coded validators for each explicit tag, wouldn't they?

@1ec5
Copy link
Copy Markdown
Contributor Author

1ec5 commented Dec 15, 2021

Right, I only meant that census:population would ideally be deprecated, but we’re far from that point and I don’t think iD’s tag deprecation mechanism is the right tool for the job. (It’s probably a job for MapRoulette.) This PR would assist any manual efforts at cleaning up population data by making the approved tags more visible.

@tyrasd tyrasd added the new-field create a new field (see add-field for cases where field from presets is added to new entries) label Dec 16, 2021
@tyrasd tyrasd force-pushed the main branch 2 times, most recently from 9d3204d to 49f529e Compare June 22, 2022 16:19
@tyrasd tyrasd removed the enhancement New feature or request label Oct 14, 2022
@tyrasd tyrasd merged commit 1b29e3b into openstreetmap:main Oct 14, 2022
k-yle pushed a commit that referenced this pull request Mar 19, 2026
Bumps [globals](https://github.com/sindresorhus/globals) from 17.3.0 to 17.4.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](sindresorhus/globals@v17.3.0...v17.4.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-version: 17.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-field create a new field (see add-field for cases where field from presets is added to new entries)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add source:population and population:date presets for places

2 participants