Skip to content

Feature/tilegrid class

Karsten Prehn requested to merge feature/tilegrid-class into main

This adds a TileGrid class to provide tile-grid related functions. The line of inheritance goes BasicClass -> SpatialFunctions -> Quadtile -> TileGrid. So, TileGrid is supposed to be the place where all operations on tile-grids and with such grids happen.

As a first major function TileGrid implements classify_coast_buffer. This functions determines near-coastline level 18 tiles and sets their classification according to the bitmask using a buffer around the coastline.

E.g. coming back to this land geometry from previous MRs:

10_water_per_tile_gdf

Among others, classify_coast_buffer determines and classifies the following data:

A tile-grid of water tiles in a buffer around the coastline (The four tile hole to the left is where the spit of land from above is situated.): buffer_water_tiles

Coastline tiles, i.e. tiles that intersect with land and with coast (that's basically the same as above with the cut out land parts): coastwater_tiles

\approve @ds @marius

Merge request reports

Loading