A demand-based, evaluation-weighted, geodesign designated land use allocation model
This repository is a simple demand based evaluation weighted land use allocation model. It takes in a gridded evaluation geojson file and features for “urban” type landuses from Geodesignhub and allocates them based on a priority and also target (in acres or hectares) allocation.
Install all dependencies on your computer (Rree and Shapely) in a Python3 environment
pip install -r requirements.txt
This should install Shapely and RTree and requests and a few other libraries. For Windows users please download binaries of the Shapely and RTree libraries from here.
Setup the evaluation maps, edit the config file with your paths, Geodesign Hub API key, project and change team name and inputs and then run the following command:
There is one input for this script both configured through config.py
In the output directory, the script will produce a allocated output for each of the systems based on the targets setup in the config file. For the moment, you can ignore the allocation type option. The output will be produced in GeoJSON and in EPSG 4326 projection. It can be uploaded back to Geodesign Hub automatically.
For the purposes of allocation the evaluation GeoJSON files built for Geodesignhub systems need to be split into a tiny grid. This can be done in a regular GIS software. The grid size should depend on the kind of area that you are studying. Following are the steps:
Thank you to Prof. Ana Clara Moura for these instructions.
Config.py has a sample configuration, modify it for your purposes.
The MIT License (MIT)
Copyright (c) 2016 Hrishikesh Ballal
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.