backend::model::entity

Module plant_layer

source
Expand description

Contains the database implementation of the plant layer.

Structsยง

  • BoundingBox ๐Ÿ”’
    A bounding box around the maps geometry.
  • HeatMapElement ๐Ÿ”’
    Stores the score of a x,y coordinate on the heatmap.

Constantsยง

  • NUMBER_OF_SQUARES ๐Ÿ”’
    The number of values the resulting heatmap matrix should have.

Functionsยง

  • Calculate granularity so the number of scores calculated stays constant independent of map size.
  • Get all spatial relations of a certain plant.
  • Generates a heatmap signaling ideal locations for planting the plant.