The Flood Map for Planning service asseses the flood risk of a proposed development.
This repository contains Unix scripts to load the spatial data (shapefiles) into the Flood Map for Planning Postgresql database.
All spatial data for this project is available from the data.gov.uk website.
Download the data as Shapefiles and store in a data directory.
Please note that the application requires the "WIYBY" versions of floodzone 2 and 3, which have been tiled into 5km square tiles.
The following environment variables must be set before the scripts are run. An example file is contained in the etc directory.
FMP_DB_HOST
FMP_DB_PORT
FMP_DB_NAME
FMP_DB_SCHEMA
FMP_DB_USER
FMP_DB_PASSWORD
FMP_GDB_ROOT
FMP_GDB_POSTFIX
FMP_GENERATE_SPATIAL_INDEX
FMP_SCRIPTS_ROOT
FMP_FILE_VERSION
Open the folder for the dataset that you want to load.
Edit the ogr2ogr command to reflect the exact file name of the shapefile.
./load-data.sh
If you have an idea you'd like to contribute please log an issue.
All contributions should be submitted via a pull request.
THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3
The following attribution statement MUST be cited in your products and applications when using this information.
Contains public sector information licensed under the Open Government license v3
The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.
It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.