Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out split geometries smaller than a specified area #28

Open
spwoodcock opened this issue Apr 15, 2024 · 0 comments
Open

Filter out split geometries smaller than a specified area #28

spwoodcock opened this issue Apr 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@spwoodcock
Copy link
Member

spwoodcock commented Apr 15, 2024

Describe the bug

  • The splitting algorithm may produce a random split geometry that contains no features (see the tiny blue polygon):

image

  • This shouldn't happen often, but is possible.
  • In order to avoid, we should filter out any final polygons that have areas smaller than a certain size, perhaps 10m2?

To Reproduce

  • AOI GeoJSON:
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"coordinates":[[[85.29998911024427,27.714008043780694],[85.29998911024427,27.710892349952076],[85.30478315714117,27.710892349952076],[85.30478315714117,27.714008043780694],[85.29998911024427,27.714008043780694]]],"type":"Polygon"}}]}
  • Data extract attached as a .txt file to get around upload restrictions. Rename to .geojson:

kathmandu_extract.txt

  • Use the splitting algorithm set to 100 buildings average.

Expected behavior

  • Geometries like that are clearly an artifact that should be removed.
@spwoodcock spwoodcock added the bug Something isn't working label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant