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
# consider it an address if the name of the building
# is just a number.
name=properties.get('name')
ifnameisnotNoneanddigits_pattern.match(name):
ifaddr_housenumberisNone:
addr_housenumber=properties.pop('name')
# and also suppress the name if it's the same as
# the address.
elifname==addr_housenumber:
properties.pop('name')
# if there's no address, then keep the feature as-is,
# no modifications.
ifaddr_housenumberisNone:
continue
label_point=shape.representative_point()
# we're only interested in a very few properties for
# address points.
label_properties=dict(
addr_housenumber=addr_housenumber,
kind='address')
source=properties.get('source')
ifsourceisnotNone:
label_properties['source'] =source
addr_street=properties.get('addr_street')
ifaddr_streetisnotNone:
label_properties['addr_street'] =addr_street
oid=properties.get('id')
ifoidisnotNone:
label_properties['id'] =oid
label_feature=label_point, label_properties, fid
new_features.append(label_feature)
layer['features'].extend(new_features)
returnlayer
# we're only interested in a very few properties for
# address points.
label_properties = dict(
addr_housenumber=addr_housenumber,
kind='address')
We need to also set min_zoom=17 in that section, like:
# we're only interested in a very few properties for
# address points.
label_properties = dict(
addr_housenumber=addr_housenumber,
min_zoom=17,
kind='address')
The text was updated successfully, but these errors were encountered:
Occasionally the
address
points exported in the buildings layer are missingmin_zoom
props.Besides the vanilla address nodes in OSM, Tilezen harvests address points in queries.yaml off ways as well via this transform.py logic:
vector-datasource/vectordatasource/transform.py
Lines 2505 to 2578 in 2eb4486
We need to also set
min_zoom=17
in that section, like:The text was updated successfully, but these errors were encountered: