demcompare.classification_layer.classification_layer

Mainly contains the ClassificationLayer class. A classification_layer defines a way to classify the DEMs alti differences.

Module Contents

Classes

ClassificationLayer

ClassificationLayer factory:

class demcompare.classification_layer.classification_layer.ClassificationLayer[source]

ClassificationLayer factory: A class designed for registered all available classification methods and instantiate them when needed.

available_classification: Dict[str, Any][source]
classmethod create_classification(name, classification_layer_kind, cfg, dem)[source]

Factory command to create the classification from classification_layer_kind Return a ClassificationLayerTemplate child instance associated with the classification_layer_kind given

Parameters:
  • name (str) – classification layer name

  • classification_layer_kind (str) – classification layer kind

  • cfg (ConfigType) – layer’s configuration

  • dem – sec dem

classmethod print_classification_layer_type()[source]

Print all registered classification layer type

classmethod register(classification_layer_type: str)[source]

Allows to register the ClassificationLayerTemplate subclass in the factory with its classification layer type through decorator

Parameters:

classification_layer_type (string) – the subclass type to be registered