Prints out the number of osm ways with the given feature tags inside the kml's polygon
Needs to be given a KML file with the search area and a set of feature tags
The first time you run this in a shell you will need to activate the virtual environment.
Linux/WSL:
source ./venv/scripts/activateWindows PowerShell:
.\venv\Scripts\activate.ps1Windows CMD:
.\venv\Scripts\activate.batNow you can run the script for your input parameters. This should be roughly the same for all operating systems, though you may need to change the path separators depending on your shell in windows.
python -m osm_kml_search.main --kml /path/to/a.kml --features "\"landuse\"=\"quarry\"" --features "\"landuse\"=\"industrial\""Open a shell/command prompt/terminal. Change the directory to where you want to set up this system.
You will need git installed. Have a look here if you dont: https://git-scm.com/downloads
git clone https://github.com/SatelliteApplicationsCatapult/osm_kml_search.git You will need python, at least version 3.8. Have a look here if you need instructions. https://wiki.python.org/moin/BeginnersGuide/Download
Now you should be able to run the following to verify that its working
python --versionCreate and activate a virtual environment
python -m venv venvNow follow the instructions above for activating your virtual environment. You should see a change in your prompt when you do this.
Now install the dependencies
python setup.py installAt this point you should be ready to start using the script.