Skip to content

correct_invaild_trajectories: Use Shapely operations for geometric calculations #520

@schroedtert

Description

@schroedtert

The code contains custom functions for calculating distances between points and line segments (_distance_from_wall, _move_from_wall). Replace these with Shapely's built-in geometric operations. Shapely provides well-tested methods for distance calculations, point projections, and coordinate transformations. Use Shapely objects like Point and LineString instead of raw coordinate arrays. This reduces code complexity and improves reliability by using proven library functions instead of custom implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code qualityAnything related to increasing the code quality (e.g., refactoring, design patterns, ...)pre-processingAnything related to pre-processing the data

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions