lib.records.plr

Module Contents

Classes

EmptyPlrRecord(self,theme,has_data=True)
PlrRecord(self,theme,information,law_status,published_from,responsible_office,symbol,view_service,geometries,sub_theme=None,other_theme=None,type_code=None,type_code_list=None,basis=None,refinements=None,documents=None,info=None,min_length=0.0,min_area=0.0,length_unit=”m”,area_unit=”m2”,length_precision=2,area_precision=2,percentage_precision=1) Public law restriction record.
class EmptyPlrRecord(theme, has_data=True)
__init__(theme, has_data=True)

Record for empty topics.

Args:
theme (pyramid_oereb.lib.records.theme.ThemeRecord): The theme to which the PLR belongs to. has_data (bool): True if the topic contains data.
class PlrRecord(theme, information, law_status, published_from, responsible_office, symbol, view_service, geometries, sub_theme=None, other_theme=None, type_code=None, type_code_list=None, basis=None, refinements=None, documents=None, info=None, min_length=0.0, min_area=0.0, length_unit="m", area_unit="m2", length_precision=2, area_precision=2, percentage_precision=1)

Public law restriction record.

Attributes:
part_in_percent (decimal): Part of the property area touched by the restriction in percent. area (decimal): Area of the restriction touching the property calculated by the processor.
__init__(theme, information, law_status, published_from, responsible_office, symbol, view_service, geometries, sub_theme=None, other_theme=None, type_code=None, type_code_list=None, basis=None, refinements=None, documents=None, info=None, min_length=0.0, min_area=0.0, length_unit="m", area_unit="m2", length_precision=2, area_precision=2, percentage_precision=1)

Args: information (dict of unicode): The PLR record’s information (multilingual). theme (pyramid_oereb.lib.records.theme.ThemeRecord): The theme to which the PLR belongs to. law_status (pyramid_oereb.lib.records.law_status.LawStatusRecord): The law status of this record. published_from (datetime.date): Date from/since when the PLR record is published. responsible_office (pyramid_oereb.lib.records.office.OfficeRecord): Office which is responsible

for this PLR.
symbol (pyramid_oereb.lib.records.image.ImageRecord): Symbol of the restriction defined for the
legend entry
view_service (pyramid_oereb.lib.records.view_service.ViewServiceRecord): The view service instance
associated with this record.
geometries (list of pyramid_oereb.lib.records.geometry.GeometryRecord): List of geometry records
associated with this record.

sub_theme (unicode): Optional subtopic. other_theme (unicode): Optional additional topic. type_code (unicode): The PLR record’s type code (also used by view service). type_code_list (unicode): URL to the PLR’s list of type codes. basis (list of PlrRecord): List of PLR records as basis for this record. refinements (list of PlrRecord): List of PLR records as refinement of this record. documents (list of pyramid_oereb.lib.records.documents.DocumentBaseRecord): List of documents

associated with this record.

info (dict or None): The information read from the config. min_length (float): The threshold for area calculation. min_area (float): The threshold for area calculation. length_unit (unicode): The threshold for area calculation. area_unit (unicode): The threshold for area calculation. length_precision (int): The precision how the length results will be rounded. area_precision (int): The precision how the area results will be rounded. percentage_precision (int): The precision how the percentage results will be rounded.

published()

bool: True if PLR is published.

_sum_length()

Returns: float: The summed length.

_sum_area()

Returns: float: The summed area.

area()

Returns: float or None: Returns the summed area of all related geometry records of this PLR.

length()

Returns: float or None: Returns the summed length of all related geometry records of this PLR.

calculate(real_estate)