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

Reformat road SQL #2168

Merged
merged 1 commit into from
Jun 17, 2016
Merged

Reformat road SQL #2168

merged 1 commit into from
Jun 17, 2016

Conversation

pnorman
Copy link
Collaborator

@pnorman pnorman commented Jun 15, 2016

Pulled from #2058

@@ -992,7 +1011,7 @@ Layer:
foot,
bicycle,
tracktype,
'null',
'null' AS surface, -- Should be a SQL NULL?
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not understanding this comment. Is it question about why the NULL is here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor

Choose a reason for hiding this comment

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

null is here as it makes little sense to query surface for railways.

on the other hand querying some other tags like tracktype, bicycle, foot for railways is also rather pointless so there is no good reason to do the same for surface.

Also, for aeroway querying surface is not completely pointless.

Overall replacing this null by querying surface may be a good idea.

Choose a reason for hiding this comment

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

sent from a phone

Il giorno 15 giu 2016, alle ore 12:45, Mateusz Konieczny [email protected] ha scritto:

on the other hand querying some other tags like tracktype, bicycle, foot for railways is also rather pointless so there is no good reason to do the same for surface.

maybe this is (or was) to cater for some railway=abandoned that now are tracks, or footways or cycleways?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There has to be a column as part of that query as it's part of a JOIN. The question isn't why there's a colum, but if it should be 'null'::text or NULL::text

@matkoniecz matkoniecz merged commit 7b0ea93 into gravitystorm:master Jun 17, 2016
@pnorman pnorman deleted the road_reformat branch July 10, 2016 22:11
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.

3 participants