Skip to content
Snippets Groups Projects

Fixed condition to no longer raise an error

Open Karsten Prehn requested to merge fix/function-classification_from_features into main
1 unresolved thread

The function that tries to deduce the classification of pure water or land tiles from imported geometries would throw an error (by definition) when the geometry consists of multiple parts that all resolve to the same quadkey.

This MR changes the ValueError to a warning and adds a check to not add the same quadkey twice.

\approve @ds @laurens

Edited by Karsten Prehn

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
593 593 assert "geometry" in geometry
594 594
595 595 for geom in geometry["geometry"].to_list():
596 geom = geometry["geometry"].to_list()[0]
  • Karsten Prehn added 1 commit

    added 1 commit

    • 889ab5c6 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Karsten Prehn added 1 commit

    added 1 commit

    • 30c2dfbb - Fixed condition to no longer raise an error

    Compare with previous version

  • Please register or sign in to reply
    Loading