Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error handling and adjust geom definition criteria
- Added a missing return statement to immediately exit the `lonlat_lookup` function when the `refs` column is unavailable, enhancing error resilience. - Modified the minimum number of references required to classify geometries as areas or ways: now considering a sequence as an area if it's closed (first and last refs are the same) and consists of at least 4 points (previously 3), and as a way if it includes at least 2 points (previously 3). This adjustment aligns better with common geometric definitions, ensuring that areas have a more defined shape and ways are simplified. - Replaced a TODO comment with a debug log statement for instances where geometries have less than the intended number of references, improving debuggability and future maintenance. This change aims to enhance the accuracy of geometrical data processing and improve error handling for better stability and clarity in logs.
- Loading branch information