You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@phanecak-maptiler do you know if direction=0 is strictly necessary for openmaptiles schema? I'd be up for changing the default behavior of direction conversion from -1/0/1 to -1/null/1 but that would affect openmaptiles as well.
Another option to address this issue in a more general way is to add a nullif: option to attributes. If the calculated/final value of the attribute is equal to any of the nullif values, the attribute would be omitted from the tile feature. For example:
Is your feature request related to a problem? Please describe.
The custom YAML schema defines the
direction
type asAs a result, the default value
0
is set for the vast majority of highway features resulting in an unnecessary increase in tile size.Describe the solution you'd like
Limit the possible values for the
direction
to1
and-1
leaving the attribute undefined otherwise:Describe alternatives you've considered
Calculate this attribute using an expression of type
int
Additional context
OMT and planetiler-openmaptiles also avoid adding
oneway: 0
attributesThe text was updated successfully, but these errors were encountered: