fietsboek.transformers.breaks module

Transformers that deal with breaks in the track.

class fietsboek.transformers.breaks.RemoveBreaks

Bases: Transformer

A transformer that fixes points with zero elevation.

classmethod description()

A short description of what this transformer does.

Return type:

TranslationString

Returns:

The transformer’s description.

execute(gpx)

Run the transformation on the input gpx.

This is expected to modify the GPX object to represent the new state.

Parameters:

gpx (GPX) – The GPX object to transform. Note that this object will be mutated!

classmethod identifier()

Returns a string identifier for this transformer.

This identifier is used when serializing/deserializing the filters.

Return type:

str

Returns:

A machine-readable identifier for this transformer.

classmethod name()

The human-readable name of this transformer, as a translateable string.

Return type:

TranslationString

Returns:

The transformer’s name.

classmethod parameter_model()

Returns the parameter model that this transformer expects.

Return type:

type[Parameters]

Returns:

The parameter model class.

property parameters: Parameters

Returns the parameters of this transformer.

Note that the caller may modify the parameters, which should be reflected in future applications of the transformer.

Returns:

The parameters.