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 ๐Ÿ”’
Calculate granularity so the number of scores calculated stays constant independent of map size.
find_relations
Get all spatial relations of a certain plant.
heatmap
Generates a heatmap signaling ideal locations for planting the plant.