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

don't require man_made=bridge outlines have area=yes [#180] #182

Merged
merged 2 commits into from
Jan 2, 2024
Merged

Conversation

bdon
Copy link
Member

@bdon bdon commented Nov 12, 2023

See #180

Refer to https://wiki.openstreetmap.org/wiki/Tag:man_made%3Dbridge :

The tag man_made=bridge is used to tag a bridge defined by the outline of the bridge.

@wipfli @nvkelso

Copy link

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

37.5% 37.5% Coverage
0.0% 0.0% Duplication

@wipfli
Copy link
Collaborator

wipfli commented Nov 13, 2023

Looks good to me

@@ -21,14 +21,14 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
sf.hasTag("landuse", "recreation_ground", "industrial", "brownfield", "railway", "cemetery", "commercial",
"grass", "orchard", "farmland", "farmyard", "residential", "military") ||
sf.hasTag("leisure", "park", "garden", "golf_course", "dog_park", "playground", "pitch", "nature_reserve") ||
sf.hasTag("man_made", "pier") ||
sf.hasTag("man_made", "pier") || sf.hasTag("man_made", "bridge") ||
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit, since these are both the same tag key, rewrite asa list of values, like:

  sf.hasTag("man_made", "pier", "bridge") ||

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agree that in the case of bridge it's assumed to be a polygon per the wiki and in practice.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this need a style change, too? Something like id: "landuse_pedestrian", either duplicating that style layer or adding bridge to it's the filter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you include a before/after screenshot showing the data change in the style?

(I think that style layer filter needs a logic change...)

Copy link
Member Author

Choose a reason for hiding this comment

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

Will provide visual test link when the 3.0.1 build completes tomorrow... think the style with pmap:kind=pedestrian is good enough

* make landuse filters more concise
Copy link

sonarqubecloud bot commented Jan 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@bdon bdon merged commit 65abca7 into main Jan 2, 2024
@bdon bdon deleted the bridge-areas branch January 2, 2024 07:36
@bdon
Copy link
Member Author

bdon commented Jan 3, 2024

@nvkelso
Copy link
Collaborator

nvkelso commented Jan 3, 2024

Great bug fix!

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.

None yet

3 participants