Dike layers module.

KoswatLayerBuilderProtocol

Bases: BuilderProtocol, Protocol

build() -> KoswatLayerProtocol

Builds an instance of a KoswatLayerProtocol based on the provided upper_linestring and layer_data

Returns:

KoswatLayerProtocol

Bases: Protocol

as_data_dict() -> dict

Returns the information related to an instance of the KoswatLayerProtocol.

Returns:
  • dict( dict ) –

    custom dictionary with the relevant data.

Layers wrapper

KoswatLayersWrapperBuilderProtocol

Bases: BuilderProtocol, Protocol

build() -> KoswatLayersWrapperProtocol

Builds an instance of KoswatLayersWrapperProtocol based on the class required fields layers_data and profile_points.

Returns:

KoswatLayersWrapperProtocol

Bases: Protocol

as_data_dict() -> dict

Returns the layers as a dictionary.

Returns:
  • dict( dict ) –

    Dictionary containing all the information of the wrapper layers (KoswatLayerProtocol).