baseprocessor – BRDR - Aligning borders

# BaseProcessor

    processor.BaseProcessor(config, feedback=None)

Abstract base class for geometric alignment processors.

The processor is responsible for the core alignment logic between thematic geometries and reference data. It provides a standardized pipeline for processing, cleaning, and validating resulting geometries.

## Attributes

Name | Type | Description
--- | --- | ---
config | ProcessorConfig | Configuration object containing thresholds and strategy settings.
feedback | (Any, optional) | Feedback mechanism for reporting progress or logs.
logger | Logger | Internal logger for debugging and user feedback.

## Methods

Name | Description
--- | ---
process | Abstract method to align a single geometry to the reference layer.

### process

    processor.BaseProcessor.process(
        correction_distance,
        reference_data,
        input_geometry,
        mitre_limit,
        relevant_distance,
        thematic_data,
        id_thematic,
    )

Abstract method to align a single geometry to the reference layer.

#### Parameters

Name | Type | Description | Default
--- | --- | --- | ---
correction_distance | float | Small buffer distance used to filter out geometric noise. | required
reference_data | AlignerFeatureCollection | The collection of reference geometries (the ‘target’). | required
input_geometry | BaseGeometry | The thematic geometry to be aligned. | required
mitre_limit | float | The mitre limit used for buffering operations. | required
relevant_distance | float | The maximum distance within which alignment should occur. | required
thematic_data | AlignerFeatureCollection | The full thematic collection for context. | required
id_thematic | Any | The unique identifier of the feature being processed. | required

#### Returns

Name | Type | Description
--- | --- | ---
| ProcessResult | A dictionary containing the resulting geometry and difference metrics.