oshdb
oshdb copied to clipboard
[oshdb-filter] add additional geometry based filters
Description
Adds the following new filters:
-
perimeter
– select polygons based on the length of their boundary -
geometry.vertices
– selects geometries by their number of points (note: the end point of polygon rings count twice) -
geometry.inners
/geometry.outers
– selects (multi)polygons by their number of parts (outer or inner rings) -
geometry.roundness
– selects polygons by their compactness value (using the Polsby-Popper test score) -
geometry.squareness
– selects geometries by their squareness value (see paper for the definition)
Corresponding issue
See #311
todo
- [x] add to documentation
- [x] add to changelog
Checklist
- [x] My code follows the code-style rules, and I have checked on the static analyses and benchmark (if applicable) results
- [x] I have commented my code
- [x] I have written javadoc (required for public classes and methods)
- [x] I have added sufficient unit tests
- [x] I have made corresponding changes to the documentation
- [x] I have updated the CHANGELOG.md
- ~~I have adjusted the examples or created an issue in the corresponding repository~~
- ~~I have adjusted the benchmark or created an issue in the corresponding repository~~
this is now ready to be reviewed :blush: