catatom2osm.geo.layer.address module

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

Bases: catatom2osm.geo.layer.base.BaseLayer

Class for addresses.

conflate(current_address)[source]

Delete address existing in current_address.

Parameters

current_address (OSM) – dataset

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

Trim to parcel id.

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

Return a dictionary with the translation for each street name.

Parameters
  • highway (HighwayLayer) – Current OSM highway data for conflation.

  • None (If highway is) –

  • names. (only parse) –

Returns

(dict) highway names translations

static is_address(feature)[source]

Address features have ‘.’ but not ‘_’ in its localId field.

remove_address_wo_building(buildings)[source]

Remove address without associated building.

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

Export to OSM.