-
Notifications
You must be signed in to change notification settings - Fork 576
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
Too many possible values for class
and loss of POI category due to promotion of subclass
value
#1557
Comments
Hi, the meaning of the It is similar to You are correct, that there are a lot of |
Fair enough. But as a stop-gap measure I believe that OMT should use the existing key from OSM as OMT class: "leisure=hackerspace" in OSM should become "class=leisure" and "subclass=hackerspace" in OMT.
Even if "class=leisure" is not an ideal value, it's much better than "class=hackerspace" and "subclass=hackerspace"... "hackerspace" is too specific for "class", and the "leisure" information is lost (= the meaning and existing grouping assigned by OSM).
It can still be manually remapped to "class=office" in OMT later (even though I don't think that makes a lot of sense for "hackerspace"), but currently the information that hackerspace is "leisure" is completly lost.
Instead of having a couple of classes, OMT currently has 200+ different "class" values.. and that defeats the purpose of class/subclass. |
I disagree, I think that's exactly what OMT should be doing. |
Above I said
Does that mean this is only affecting those POIs which are listed in
I think it's still much better than "class=hackerspace", because it's one of 2144 options for "leisure", so it's nearly impossible to anticipate that you'll need an icon for that specific "hackerspace" value. I believe I've also seen "class=butcher" (promoted from OSM "shop=butcher") in our maps (maptiler OMT data from April I think), so the POI had no icon (as we derive icons from class names). So even if just temporarily, it would be more helpful to promote the OSM key to the OMT class:
|
https://openmaptiles.org/schema/#fields says that "class" has a fixed set of possible values, however, if there's no
class
, then it will be the value ofsubclass
.However
subclass
has the original OSM value of fields likeleisure
which itself has 113 options: https://taginfo.openstreetmap.org/keys/leisure#valuesExample; the feature for https://www.openstreetmap.org/node/421419270 is:
As many map styles will likely choose the POI image from the
class
, this adds a considerable number of icons a map designer would have to provide (200+ icons).Currently, the information that "hackerspace" is of type "leisure" is lost, so the map renderer would have to map back these names to the type (which might not even be possible due to ambiguity in the field values which can be promoted to
class
/subclass
)I think this is a bug in the spec, because
class
should probably just beleisure
(the source of thesubclass
value) then, i.e.:This would mean the only possible values for
class
would be:Originally specified:
Promoted from source of
subclass
(some existed inclass
already):railwayshopaerialwayThe text was updated successfully, but these errors were encountered: