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

Adding different types of towers and masts #2671

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

kocio-pl
Copy link
Collaborator

@kocio-pl kocio-pl commented Jul 4, 2017

Resolves #2556
Resolves #2791
Resolves #1225
Resolves #2024

This code is based on @wmyrda patch. It renders, but each type of tower/mast needs to be tested if it really appears on the map, so for now it's a work in progress.

@imagico
Copy link
Collaborator

imagico commented Jul 4, 2017

I think the mast and lattice tower icon are not really recognizable at normal resolution, for mast i preferred the suggestions by @BushmanK in #2556 (comment) (the double guy lines version probably requires some tuning though).

I have doubts the starting zoom level logic you suggest makes sense. Starting tall masts/towers one zoom level earlier and small ones one later makes some sense but stretching this across five zoom levels requires demonstrating that this has some specific advantages i think.

And in case of towers mapped as building polygons with both building tag and man_made=tower rendering both the building and an icon would be irritating since this will possibly look like there is a tower on the building.

@wmyrda
Copy link

wmyrda commented Jul 5, 2017

About the icons. Those are the only once I got from @BushmanK to test. If there will be different set present I have no objections to change them for the better types.

Levels can always change. My are just a proposition which can change if some agreement there is made for different level. Height there plays important role as it is obvious that tower with greater height is visible from further distance therefore should appear sooner.

If tower is also tagged as building than that to me seems as bad tagging which should be fixed on the map and only reason someone tagged it like was that it was the closest tag possible to have them appear on the map.

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Jul 5, 2017

Please be as specific as possible when discussing, so I could make the changes to the code. @wmyrda - are you capable of creating proper patches? It would be much easier for me to just apply them here instead of tracking someone else's code.

@kocio-pl
Copy link
Collaborator Author

@wmyrda Since you are now capable of making your own PRs, I suggest that you recreate this one by yourself too. It will allow you to make changes any time you want instead of waiting for me to apply patches.

Rendering examples is needed for all the tower types you propose.

@matthijsmelissen
Copy link
Collaborator

What is the status of this proposal?

@kocio-pl
Copy link
Collaborator Author

I plan to take over this code after some easier problems are resolved.

Copy link
Collaborator

@matthijsmelissen matthijsmelissen left a comment

Choose a reason for hiding this comment

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

Tagging as request changes, for administrative purposes.

@kocio-pl kocio-pl self-assigned this Sep 1, 2017
@kocio-pl kocio-pl changed the title Adding diferent types of towers [WIP] Adding different types of towers [WIP] Feb 13, 2018
@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Feb 26, 2018

This is much anticipated PR - and rightly so, because towers and masts are visible from a long distance. Some icons are redundant (the same image with a different name), but that can be not touched for now until we agree which ones we want to use.

For now just a test rendering with linked examples (they might be useful for testing further changes):

man_made=mast
k6 uncci
man_made=mast + tower:type=communication
i8ss7 td

man_made=tower
i2tvdrhq
man_made=tower + tower:type=communication
z1jddhej
man_made=tower + tower:type=communication + tower:construction=freestanding
xbcdlmw5
man_made=tower + tower:type=communication + tower:construction=lattice
wz5o kf_

tower_cantilever.svg and tower_lattice.svg are included, but not used.

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Feb 27, 2018

Other possible shapes to render:

@turnsole80
Copy link

This will be fantastic when you roll it out. It looks pretty good to my amateur eyes

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Feb 28, 2018

Code update, new types added and name labels fixed so they appear only when the object is shown.

tower:type=defensive
btboto5z

tower:type=observation
_sonx0cv

tower:construction=lattice
aid5qzcr

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Feb 28, 2018

Currently I just cut down the initial zoom level for labels, so it always starts with the z17 (towers) and z18 (masts), because these are the zoom levels where the towers/masts are rendered even in the worst case. Do you think it makes sense to render labels as soon as the objects are visible (correlated with height tag value)?

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Mar 1, 2018

I like this observation tower shape more:
vvfcxdbi

@kocio-pl kocio-pl changed the title Adding different types of towers [WIP] Adding different types of towers and masts Mar 1, 2018
@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Mar 1, 2018

The code is in mergeable shape now.

Done the code cleaning and fixing height selection to be numeric. I also think that names should be not revealed too early to not eclipse other objects names - it's enough to see the shape of a tower/mast early on if it's big enough (see the examples below).

Examples of really big objects on initial zoom level (actually both are telecommunication masts, but that's the current tagging):

mast (z15)
allawb8k

tower (z13)
lq5jh0ll

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Mar 2, 2018

I think tower:type=lighting is rather a local feature (especially a small element of the stadium), so I made an exception and special icons (based on the lighthouse icon) visible on z18+ (not earlier, unlike the rest of towers/masts). Examples on z18:

tower
9ertu 8y

mast
6htape8p

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Mar 4, 2018

Lattice towers should be taller to be easier recognized as towers (similar to Eiffel Tower proportions).

It seems that both generic and lattice towers were made smaller as a fix for communication waves (so the top of the tower is in the center of the rings) and generic tower without them is taller, so it also makes perfect sense design-wise.

hkjqe8wh

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Mar 5, 2018

BTW - after fixing tagging of the Eiffel Tower it looks not too strong, even though it's the center of a big city, and introducing this icon fixes problem on z15:

z13
ulpwmvdn

z14
j8ibtdro

z15
Before
m7ict1mv

After
06qw_qdl

@geozeisig
Copy link

I've made lattice towers as high as the 14 px allow, for it to be easily seen.
tower_lattice2

@kocio-pl
Copy link
Collaborator Author

I don't think we should really try to differentiate basing on materials, having different shapes is enough in my opinion.

@geozeisig
Copy link

dome v2 might be somewhat misleading to the viewer in me eyes. tower:construction=dome is also not very common with 129x.

@geozeisig
Copy link

I miss man_made=communications_tower in v4.9.0...master.

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Mar 23, 2018

Of course, it's still not being added to the code. I try to collect the ideas how do we want to render few other masts/towers and then make part 2 of this PR pretty soon, not adding them case by case.

@geozeisig
Copy link

tower:construction=dish merged with man_made=telescope
We should think about an icon for man_made=telescope because that describes the feature better.

@dieterdreist
Copy link

dieterdreist commented Mar 24, 2018 via email

@AllroadsNL
Copy link

I think tower:type=lighting is rather a local feature (especially a small element of the stadium), so I made an exception and special icons (based on the lighthouse icon)

Where a lighthouse, light mostly horizontal, a lighting tower, light, say, 45 degree to the surface.
A communication tower give more a 360 signal.

I think, icon lighting look to much at communication icon. Could be more of a difference?

@kocio-pl
Copy link
Collaborator Author

I'm satisfied with the result, but feel free to redesign it if you want.

@geozeisig
Copy link

@dieterdreist A telescope can be optical but there is also radio telescope (see Wiki. Otherwise the tagging would be wrong here ? We do not have a good wiki page for dish yet. On the other hand, a dish is not a real tower.

@kocio-pl
Copy link
Collaborator Author

There is a handy tag called location - I'd like to use it for example for hiding communication masts mounted on the building, since their height is counted with the whole building, which might be weird and misleading, because they are not that important and visible, like here:

https://www.openstreetmap.org/node/2471572605#map=14/52.2543/20.9838

Interesting value seems to be location=rooftop ("Located on top of a building that is used for something else."). I'm not sure about location=roof ("Used where a feature is mounted on the roof of a building."), because this might be a legitimate mast located on a small building under it, but I suspect it's safer to hide them too just in case.

@AllroadsNL
Copy link

The height of the building roof should be mentioned in
min_height for the mast

@kocio-pl
Copy link
Collaborator Author

Is it documented somewhere? I don't remember seeing it on tower/mast pages.

@AllroadsNL
Copy link

AllroadsNL commented Mar 26, 2018

Is it documented somewhere?

I could not find it either, seems logical to me. Therefor "should be". Watching 3D buildings.

When a height is mentioned for the antenna/transponder.
Often the extern data gives only height for mobil_phone mounted height, not total length of tower/mast, there often multiple on the mast/tower. (Not good described, looks like multiple traffic_sign problem, which method to use)

So the mast/ tower should get a min_height but also this transponder a min_height.
pitfall:
But when min_height is used on a building node, it means also that the building get a strange shape.
Loose node or not?
or this not documented :min_height= with ;height=

Side of building.
About mounting: look at
mount_to/mounted_on, power_tower, building (not documented)
lamp_mount wall, wall_mounted, wall_mount

A mast or is it a pole for some communication:mobile_phone?
flagpole
Also the same min_height strategy, needed?

There must be a tag, that says not on ground level. As always in OSM there multiple tags that indicate it.
But which is the best?

@kocio-pl
Copy link
Collaborator Author

Thanks for the research.

I think that min_height for masts and towers should be discussed on Tagging list and when accepted (I don't expect any problems with this - it's just natural consequence of tagging "brutto" height that it should be able to calculate "netto" height) documented on wiki. Could you do this, please?

But since it's not yet done and requires calculating in SQL, I prefer to start with simpler approach and use location. It won't hurt if we skip rendering few masts mounted on roofs but it may clutter urban areas when mapped in detail if we don't know exact height of the building for example, but it's clear that these are not standalone masts.

@dieterdreist
Copy link

dieterdreist commented Mar 26, 2018 via email

@dieterdreist
Copy link

dieterdreist commented Mar 26, 2018 via email

@geozeisig
Copy link

@dieterdreist

a telescope doesn’t have to have a dish, it is simply an instrument to look into the distance

Optical telescopes are almost never outdoors. They are operated under a dome, tagged with man_made=observatory . In addition, it is still possible to add: telescope:type=optical, telescope:diameter etc

For man_made=telescope + telescope:type=radio, the icon dish should also be used.
Just like for tower:construction=dish
dish

@turnsole80
Copy link

It occurs to me that dome v2 image is very similar to the weather radars used here in Australia. It would useful for describing those at the very least

@kocio-pl
Copy link
Collaborator Author

What is the tagging used for them?

@kocio-pl
Copy link
Collaborator Author

It looks to me that it's just a dome type construction, the whole station should be tagged as:

https://wiki.openstreetmap.org/wiki/Tag:man_made%3Dmonitoring_station

See this picture:

https://wiki.openstreetmap.org/wiki/File:Mildura_Airport_Weatherstation.jpg

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Mar 31, 2018

I think this one should be rendered the same as tower:type=observation:

https://wiki.openstreetmap.org/wiki/Tag:tower:type%3Dwatchtower

@geozeisig
Copy link

Do you mean Tower observation.svg?
tower: type=watchtower does not have an icon yet. It is possible that watchtower should have the same icon as observation.

@turnsole80
Copy link

turnsole80 commented Mar 31, 2018

What is the tagging used for them?

It's a higgledy-piggledy mess unfortunately. A lot of them aren't (yet) tagged at all - something i'm working on now.

To me, these rainfall radars should be tagged as man_made=tower + tower:type:radar. I would have thought that man_made=monitoring_station was better suited to ground based weather stations that record temperature, wind, rain, humidity, etc - although there's a addable preset in JOSM that would tags these as man_made=observatory + observatory:type=meteorological, so i'm a bit confused at the moment as what to do.

@turnsole80
Copy link

Scrub that. They're tagged man_made=tower + tower:type=radar + tower:construction=dome

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Apr 1, 2018

I have created new PR with the proposed changes, please discuss all the things related to vertical structures there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.