Flora Finder is a command-line tool that helps you identify native plants suitable for your location (within Victoria, Australia).
Utilising the Modelled 1750 Ecological Vegetation Class (EVC) nearest your location, Flora Finder will query the VicFlora GraphQL API, and provide taxonomic information about the native flora identified in your EVC.
- Python 3.11 or higher
- Poetry
-
Clone the repository:
git clone https://github.com/LiamDavey/flora-finder.git cd flora-finder
-
Install dependencies:
poetry install
-
Download SHP layer from here, and copy individual files into ./shp/ directory.
-
Convert a shapefile to a pickle file:
poetry run pickle-shp-file --input-file shp/NV1750_EVC.shp --output-file shp/nv1750_pickle.dat
This command converts a shapefile into a pickled format for quicker access.
-
Identify plants by geographical coordinates:
poetry run flora-finder --pickle-path shp/nv1750_pickle.dat --latitude -37.814 --longitude 144.96332
This command will output URLs of native plants found within your EVC
For more information on how to use the commands, you can use the --help
option:
poetry run flora-finder --help
poetry run pickle-shp-file --help
poetry run pytest -rPsv tests/