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

Add rendering for historic=castle #744

Closed
matthijsmelissen opened this issue Jul 20, 2014 · 56 comments
Closed

Add rendering for historic=castle #744

matthijsmelissen opened this issue Jul 20, 2014 · 56 comments

Comments

@matthijsmelissen
Copy link
Collaborator

Castles are important landmarks, so I think we should render them. See also https://trac.openstreetmap.org/ticket/2247.

@dieterdreist
Copy link

Am 20/lug/2014 um 02:49 schrieb math1985 notifications@github.com:

Castles are important landmarks, so I think we should render them.

+1

@matkoniecz
Copy link
Contributor

-1, it is a bad tagging scheme, castle is a very poor name for "A fortified building in medieval and modern times" ( from http://wiki.openstreetmap.org/wiki/Tag:historic%3Dcastle ).

In my region there are many forts and bunkers tagged with it and making it displayable in this style would ensure that this tag scheme will be not fixed for a very long time.

@dieterdreist
Copy link

Am 21/lug/2014 um 05:52 schrieb Mateusz Konieczny notifications@github.com:

In my area there are many forts and bunkers tagged with it and making it displayable in this style would ensure that this tag scheme will be not fixed for a very long time.

You can fix them, e.g. there are "fortification" and military=bunker tags. Displaying something will often lead to fixing mistagged objects because people become aware

@matkoniecz
Copy link
Contributor

I think that fixing http://wiki.openstreetmap.org/wiki/Tag:historic%3Dfort would be a good idea - but as it requires translation from German I am unable to do it.

@matthijsmelissen matthijsmelissen modified the milestones: 3.x - Needs upgrade to mapnik or openstreetmap-carto.style, New features Aug 18, 2014
@matthijsmelissen matthijsmelissen changed the title Render historic=castle Add rendering for historic=castle Sep 24, 2014
@matkoniecz
Copy link
Contributor

Note, It depends on #565.

I propose to render it without icon - but as a special building. Like place of worship on the attached image.

https://cloud.githubusercontent.com/assets/899988/4741530/2ed1b746-5a17-11e4-982b-ccac76eb2b31.png

@dieterdreist
Copy link

2014-10-30 8:21 GMT+01:00 Mateusz Konieczny notifications@github.com:

I propose to render it without icon - but as special building. Like place
of worship on the attached image.

in German maps castles are typically divided into ruins and castles and are
prominently rendered in many maps (official topographic maps and leisure
maps). See here for an example (German Style):
http://openstreetmap.de/karte.html?zoom=14&lat=48.27362&lon=9.48293&layers=B000TT
(its those black circles with the flag, ruins are bent)

@matkoniecz
Copy link
Contributor

Note, I am no longer considering rendering it as a special building to be a good idea.

historic=castle tagging scheme is a poor tagging scheme and IMHO should not be supported.

@abdeldjalil09
Copy link

abdeldjalil09 commented Jan 3, 2017

Note, I am no longer considering rendering it as a special building to be a good idea.

How about castles tagged as nodes (11 016 uses) ? and castles without building=* (16 143) ?

@aceman444
Copy link

Because historic=castle may be the whole area of the fortification/palace grounds and is comprised of multiple buildings.

@dieterdreist
Copy link

dieterdreist commented Jan 6, 2017 via email

@kocio-pl
Copy link
Collaborator

kocio-pl commented Jan 6, 2017

building=castle would be of use, we can also render historic=castle+building=*, when the proper tagging is chosen. For castle area however or nodes we can find different rendering ideas.

School example:

  • school on node is currently rendered with a name with special color
  • area tagged with amenity=school has special color and a name with special color
  • building tagged with amenity=school is like any other buildings, but shows a name (I don't remember the color)

It doesn't mean it's how we want it to be in the future, it's just a starting point for further ideas for castle rendering.

@dieterdreist
Copy link

dieterdreist commented Jan 6, 2017 via email

@kocio-pl
Copy link
Collaborator

kocio-pl commented Jan 6, 2017

This icon might be good as default symbol for a castle:
https://github.com/gmgeo/osmic/blob/master/tourism/castle-fortress-14.svg

I guess Tagging discussion is needed and Wiki changes for a start. This can take a long time before it'll be a standard of tagging, and we can use this time to design rendering strategy for all the cases (node, building, area), no matter what tagging scheme will be chosen in the end.

@wolfbert
Copy link

@dieterdreist +1

render a name from z15

Currently, historic=castle + name=* is not rendered, which causes mappers to put the name tag on the buildings instead of the castle grounds where it belongs. At the very least, give mappers the chance to map the grounds by rendering the name.

@jojo4u
Copy link

jojo4u commented Apr 15, 2017

There is discussion about historic=castle tagging on german forum (https://forum.openstreetmap.org/viewtopic.php?id=57896). People agree that the tag as area means the whole ensemble. This would include the courtyards and even some modern-day additions like a kiosk. Buildings or ruins have to be tagged separately.

A technical question arised if there are no surroundings and the sole building is tagged as multipolygon because of a courtyard (example: https://www.openstreetmap.org/relation/22988). Is putting historic=castle on the outer way of the building multipolygon a good idea technically? Because multipolygon rules allow it but I'm unsure whether the new lua branch would support it.

@mboeringa
Copy link

mboeringa commented Apr 16, 2017

A technical question arised if there are no surroundings and the sole building is tagged as multipolygon because of a courtyard (example: https://www.openstreetmap.org/relation/22988). Is putting historic=castle on the outer way of the building multipolygon a good idea technically?

I see little reason to change the tagging in your example, and no need to add the historic=castle tag to the outer of the MP. Everybody understands the courtyard of the castle belongs to the castle in this example.

It would certainly be undesirable to add both historic=castle and building=yes on the outer as well as the MP. Depending on the renderer, you would end up with two buildings stacked on top of each other, with the building derived from the outer blocking the view of the inner court, as it won't have one.

@jojo4u
Copy link

jojo4u commented Apr 16, 2017

For me it's not about understanding but good tagging. Currently the courtyard is excluded from the castle area.

It would certainly be undesirable to add both historic=castle and building=yes on the outer as well as the MP.

The building tag would stay on the MP.

@mboeringa
Copy link

mboeringa commented Apr 16, 2017

For me it's not about understanding but good tagging. Currently the courtyard is excluded from the castle area.

This is just one interpretation, I don't think you can really say that either way is good or bad in this particular example, or that people would not generally understand the courtyard is part of the castle.

Undoubtedly, this has been discussed at length in the German forums, but unless you are planning to calculate metrics on castle sizes including courtyards, I still see very little reason this tagging would need changing.

As to a specific argument in favor of maintaining the current tagging: if some style would like to emphasize castle buildings by use of a specific color instead of using a "castle" POI, only putting the tag on the outer would not allow this or at least make it much more elaborate to accomplish.

I am not saying that your suggestion is bad here, I just want to illustrate with the above example that either way has consequences for the potential cartography. It is up to you to make the choice for the tagging, and than accept the possible outcome of the cartography in your favorite OpenStreetMap style.

@jojo4u
Copy link

jojo4u commented Apr 16, 2017

Castle buildings undoubtedly need further tagging development. For example by documenting building=castle mentioned above with already 1400 uses.

@wolfbert
Copy link

wolfbert commented Apr 17, 2017

@mboeringa

but unless you are planning to calculate metrics on castle sizes including courtyards

That's exactely the point. Every database object must make sense when queried individually. I.e. when someone asks for castle areas (to draw a map, calculate average area, or whatever), the object returned must represent that part of observable reality - the castle area doesn't have a hole. Same by the way with schools, where the school yard gets excluded from the school grounds.

As for putting the tag on the outer ring, I don't like it either, but it saves a duplicate polygon and it is valid according to joto. This only occurs for single, stand-alone buildings without surroundings.

@mboeringa
Copy link

mboeringa commented Apr 17, 2017

That's exactely the point. Every database object must make sense when queried individually. I.e. when someone asks for castle areas (to draw a map, calculate average area, or whatever), the object returned must represent that part of observable reality - the castle area doesn't have a hole.

This is still only one possible interpretation / definition. I also think that, while I applaud consistent tagging and concise Wiki definitions of real world objects in OSM, with the current state of OSM however, your ambitions as voiced in the bold quote are sky high. There is still a massive amount of inconsistencies all over the OSM database and Wiki.

Based on the experience of developing my own renderer, I also know that the number of possible - and often totally unexpected - exceptions to certain Wike "rules" is just enormous. There is always an edge case defying a certain rule.

Again: I am not against your tagging suggestion. Go ahead and tag it like that if you want to! It is OSM after all. I am just saying there are a lot more nuances to all of this than many people think.

@a3nm
Copy link

a3nm commented Apr 17, 2017

Regarding this issue, here is an example of a castle which is currently not rendered at all http://www.openstreetmap.org/way/211046305. The "castle" is a kind of open area with ruins; currently only the individual buildings inside the castle area are rendered, which is a bit confusing.

@kocio-pl
Copy link
Collaborator

Would you like to try preparing the code or move this idea forward in some other way? I don't think it's gonna be done if nobody will step up to do it. It sounds like a strong motivation for me that you can't accept current state of things.

We should decide which type needs rendering (we're finally ready to select subtypes) and in which way (icons, minimum zoom level etc). Some icons that might be helpful are here:

https://github.com/gmgeo/osmic

@SomeoneElseOSM
Copy link
Contributor

Just to chuck in another rendering option, here's what I went for for various "historic" areas in another map style:

https://map.atownsend.org.uk/maps/map/map.html#zoom=18&lat=53.007133&lon=-0.624572

(that's https://www.openstreetmap.org/way/371069082 in OSM BTW)

@hubgitti
Copy link

I would suggest to have the name and an icon at the castle node or area. I think no extra colouring or other fancy stuff is needed. I'm not a developer, so I cannot contribute here, sorry. I mapped a few castles at OSM, I "repaired" some of them: I turned single castles mapped as multiple ones (tagging for the renderer because name of buildings are shown?) into single ones by using a surrounding extra way - as described in the wiki. With the result: They are lost on openstreetmap.org now.

What would you suggest here, how could I contribute to get castles rendered?

And yes, to my opinion, the situation is unacceptable! I'm not saying that in an angry way, it is just like I think the current situation is.

@kocio-pl
Copy link
Collaborator

Sure, it's OK that you say what you need. It would just help if you be more precise - which castle type with which icon from which zoom level?

@dieterdreist
Copy link

dieterdreist commented Jan 30, 2018 via email

@kocio-pl
Copy link
Collaborator

kocio-pl commented Feb 1, 2018

We still need more specific decisions to prepare the code.

The more prominent ones from z15 with icon and z16 with additional label.

How would we select these (which tag or set of tags for example)?

Loooking at taginfo, the values for the second category can be these:

Tags are not the problem, the icons are. So - which icons would we use and which types would they depict (of course there might be more types depicted by the same icon, just like we do with some shops for example)?

@hubgitti
Copy link

hubgitti commented Feb 2, 2018

I saw that currently many things are rendered starting with z16, so I would also use z16 for the castles. To my opinion there is no need to have dependencies on the "importance" of the castles.

I was looking at the icons also, but I have the impression that they all look quite "European". I was trying to draw a new one using "inkscape", I'll continue trying during the weekend.

@hubgitti
Copy link

hubgitti commented Feb 3, 2018

I tried some icons, they don't look so different to the ones as your examples provided in https://github.com/gmgeo/osmic (mine are a little more ugly :-) )

I would suggest row 10, colum 10, the one with the "mixed roofs" on the two towers. The mixed roofs "soften" the icon a little to make it more compatible to the different versions of castles.

I checked the web for fortified buildings, they don't look so dramatically different on the globe.

@kocio-pl
Copy link
Collaborator

kocio-pl commented Feb 3, 2018

So you suggest to use just one icon for all the types? I guess we can use more of them to show their slightly different meaning.

@kocio-pl
Copy link
Collaborator

kocio-pl commented Feb 3, 2018

Initial proposition:

https://github.com/gmgeo/osmic/blob/master/tourism/castle-defensive-14.svg
generic castle:

  • no subtype

https://github.com/gmgeo/osmic/blob/master/tourism/castle-fortress-14.svg
fortified castle:

  • castle_type | defensive
  • castle_type | fortress
  • castle_type | castrum
  • castle_type | shiro
  • castle_type | kremlin

https://github.com/gmgeo/osmic/blob/master/tourism/castle-manor-14.svg
manor house (châteaux)

  • castle_type | manor

https://github.com/gmgeo/osmic/blob/master/tourism/castle-stately-14.svg
stately home

  • castle_type | stately

https://github.com/gmgeo/osmic/blob/master/tourism/castle-palace-14.svg
palace

  • castle_type | palace

Notes:

  1. castle-defensive-14.svg is great to show ambiguity, just like two trees in the forest, but maybe castle_type=defensive could be shown this way too.
  2. Palace icon is oriental, we could use stately icon instead, as it's more neutral and maybe there's no need to differentiate these types. I guess also manor doesn't need special icon and should be depicted by the same icon.
  3. In my city there's a lot of palaces ("A palace is a grand prestigious residence of aristocracy, mostly built in a town or city."), but they are sometimes indistinguishable from other houses, just more elegant, so it might be overwhelming.

What do you think?

@Tomasz-W
Copy link

Tomasz-W commented Feb 4, 2018

  • Manor icon doesn't reminds me manor at all
  • Palace icon looks more like a mosque
  • Rest of icons are good

@hubgitti
Copy link

hubgitti commented Feb 4, 2018

I would suggest to use just one icon. After the renderer will display castles, things can be refined in later versions. Hopefully some castle experts will contribute after the first most simple version will appear on openstreetmap.org

I updated the german wiki:
https://wiki.openstreetmap.org/wiki/DE:Tag:historic=castle#Wie_mappen.3F

to explain the tagging in greater detail.

I also went through this thread again:
https://forum.openstreetmap.org/viewtopic.php?id=57896

@Tomasz-W
Copy link

Tomasz-W commented Feb 4, 2018

My icon proposals:

  • Manor
    historic manor2
    14x14: historic manor

  • Palace
    historic palace2
    14x14: historic palace

@kocio-pl
Copy link
Collaborator

kocio-pl commented Feb 4, 2018

Manor icon is interesting, but just doesn't work for me at 14 px and a palace icon doesn't work for me at all.

@Tomasz-W
Copy link

Tomasz-W commented Feb 4, 2018

@kocio-pl I understand. I'm putting Gist, in case of someone want to tune up this icons.
https://gist.github.com/Tomasz-W/16c57c0722b36d2302012b1a724a7a47
https://gist.github.com/Tomasz-W/b73795cc1421919591ba221b33c1454a

@hubgitti
Copy link

hubgitti commented Feb 4, 2018

Did you also have a look here?:
https://wiki.openstreetmap.org/wiki/Key:castle_type

@Tomasz-W
Copy link

Tomasz-W commented Feb 5, 2018

Another try for palace - windows instead of columns:
historic palace okna 2

historic palace okna

@kocio-pl
Copy link
Collaborator

kocio-pl commented Feb 5, 2018

Better on 14 px than scaled up version, but still not too clear for me.

BTW: do you try to align the lines with the pixel matrix?

@polarbearing
Copy link
Contributor

There is some discussion on talk-de that the less-used historic=fort was merged before the more-used historic=castle was ready. There is fear that this might lead to retagging for the renderer.

Consequently, this issue here should be accelerated, maybe with an interim solution.

@kocio-pl
Copy link
Collaborator

kocio-pl commented Mar 3, 2018

I see. I think this is quite close to being ready (I have some new ideas to test soon, but it's just about tuning visual differences in Osmic shapes), so I wouldn't worry about that.

@Tomasz-W
Copy link

Tomasz-W commented Mar 3, 2018

  • next one palace/ stately icon proposal (includes gate and 3-part roof)
    historic palace okna
  • manor icon tuned up a little bit
    historic manor

@kocio-pl
Copy link
Collaborator

kocio-pl commented Mar 3, 2018

I like this version of manor shape and I'd like to test how it looks on the map.

Palace/stately icon is good in general, but I get lost with readability details like windows and connected roofs - I'm struggling to recognize it as a building.

@polarbearing
Copy link
Contributor

+1 manor shape

@Tomasz-W
Copy link

Tomasz-W commented Mar 3, 2018

Gist links:

@ghost
Copy link

ghost commented Mar 8, 2018

+1 manor

@playerEric1
Copy link

Can different icons for different castle types be added?

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

No branches or pull requests