catatom2osm.geo.layer.parcel module

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

Bases: catatom2osm.geo.layer.polygon.PolygonLayer

Class for cadastral parcels.

clean()[fuente]

Clean geometries.

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

count_parts(buildings)[fuente]

Add count of parts in parcel field.

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

Create fake parcels for buildings not contained in any.

delete_void_parcels(*sources)[fuente]

Remove parcels without buildings (or pools)/addresses.

get_groups_by_adjacent_buildings(buildings)[fuente]

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

get_groups_by_parts_count(max_parts, buffer)[fuente]

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

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

Merge parcels with buildings sharing walls with in another parcel.

merge_by_parts_count(max_parts, buffer)[fuente]

Merge parcels in groups with less than max_parts.

set_missing_zones()[fuente]

Assign label from cadastral reference if no zone exists.

set_muncode(muncode)[fuente]

Assign to each parcel the code of the municipality.

set_zones(zoning)[fuente]

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

update_parts_count(pa_groups, pa_refs, parts_count)[fuente]