catatom2osm.geo.layer.address module

class catatom2osm.geo.layer.address.AddressLayer(path='Point', baseName='address', providerLib='memory', source_date=None)[fuente]

Bases: catatom2osm.geo.layer.base.BaseLayer

Class for addresses.

conflate(current_address)[fuente]

Delete address existing in current_address.

Parámetros

current_address (OSM) – dataset

static create_shp(name, crs, fields=<qgis._core.QgsFields object>, geom_type=1)[fuente]
static get_id(feat)[fuente]

Trim to parcel id.

get_names(highway=None, place=None)[fuente]

Return a dictionary with the translation for each street name.

Parámetros
  • highway (HighwayLayer) – Current OSM highway data for conflation.

  • None (If highway is) –

  • names. (only parse) –

Devuelve

(dict) highway names translations

static is_address(feature)[fuente]

Address features have “.” but not “_” in its localId field.

remove_address_wo_building(buildings)[fuente]

Remove address without associated building.

to_osm(data=None, tags={}, upload='never')[fuente]

Export to OSM.