catatom2osm.geo.layer.parcel module

class catatom2osm.geo.layer.parcel.ParcelLayer(mun_code, path='MultiPolygon', baseName='cadastralparcel', providerLib='memory', source_date=None)[source]

Bases: catatom2osm.geo.layer.polygon.PolygonLayer

Class for cadastral parcels.

clean()[source]

Clean geometries.

Delete invalid geometries and close vertices, add topological points and simplify vertices.

count_parts(buildings)[source]

Add count of parts in parcel field.

create_missing_parcels(*sources, split=None)[source]

Create fake parcels for buildings not contained in any.

delete_void_parcels(*sources)[source]

Remove parcels without buildings (or pools)/addresses.

get_groups_by_adjacent_buildings(buildings)[source]

Get groups of parcel ids with buildings sharing walls in another parcel.

get_groups_by_parts_count(max_parts, buffer)[source]

Get groups of ids of near parcels with less than max_parts.

get_zone(feat)[source]
merge_by_adjacent_buildings(buildings)[source]

Merge parcels with buildings sharing walls with in another parcel.

merge_by_parts_count(max_parts, buffer)[source]

Merge parcels in groups with less than max_parts.

set_missing_zones()[source]

Assign label from cadastral reference if no zone exists.

set_muncode(muncode)[source]

Assign to each parcel the code of the municipality.

set_zones(zoning)[source]

Assign to each parcel the label of the zone that contains it.

update_parts_count(pa_groups, pa_refs, parts_count)[source]