{"id":20039055,"url":"https://github.com/defra/flood-gis","last_synced_at":"2026-01-31T13:02:51.533Z","repository":{"id":67027106,"uuid":"276320468","full_name":"DEFRA/flood-gis","owner":"DEFRA","description":"GIS configuration for Check Flood Risk service","archived":false,"fork":false,"pushed_at":"2025-05-19T18:42:29.000Z","size":1930,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-17T04:02:51.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scheme","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEFRA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-01T08:24:52.000Z","updated_at":"2023-03-31T12:26:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb97adaa-f0ae-458e-993c-30b45657c46e","html_url":"https://github.com/DEFRA/flood-gis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DEFRA/flood-gis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fflood-gis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fflood-gis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fflood-gis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fflood-gis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEFRA","download_url":"https://codeload.github.com/DEFRA/flood-gis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fflood-gis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260288450,"owners_count":22986661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T10:35:11.584Z","updated_at":"2026-01-31T13:02:46.510Z","avatar_url":"https://github.com/DEFRA.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flood-gis\n\nThis is the repository for the geoserver configuration for the service refresh project for the \"Check flood risk\" service https://github.com/DEFRA/flood-app.\n\nThe geoserver installation provides geospatial tiles for our geospatial datasets that are stored in a postgis:postgres installation found at https://github.com/DEFRA/flood-db\n\n# Pre requisites\n\nThese data files are designed for use with an installation of Geoserver \u003e 2.8 http://geoserver.org/.\n\nThere are several ways to host this, but we use it as a tomcat webapp.\n\nTomcat installation on Linux: https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04\n\n## installation\n\nDownload your version of geoserver.war and extract (if needed) and copy war file to your tomcat webapp directory at: `/opt/tomcat/webapps`\n\nMake sure the war file is owned by the tomcat user: `sudo chown tomcat:tomcat geoserver.war`\n\n## Configuration\nThe database connection file can be created at `geoserver/data/workspaces/flood/flooddev/datastore.xml`\nFormat:\n```\n\u003cdataStore\u003e\n  \u003cid\u003eDataStoreInfoImpl--30633af1:14863bcf984:-7fff\u003c/id\u003e\n  \u003cname\u003eflooddev\u003c/name\u003e\n  \u003cdescription\u003ePostgis\u003c/description\u003e\n  \u003ctype\u003ePostGIS\u003c/type\u003e\n  \u003cenabled\u003etrue\u003c/enabled\u003e\n  \u003cworkspace\u003e\n    \u003cid\u003eWorkspaceInfoImpl-4d72205b:1489c5817f9:-8000\u003c/id\u003e\n  \u003c/workspace\u003e\n  \u003cconnectionParameters\u003e\n    \u003centry key=\"Connection timeout\"\u003e20\u003c/entry\u003e\n    \u003centry key=\"port\"\u003e5432\u003c/entry\u003e\n    \u003centry key=\"passwd\"\u003e************\u003c/entry\u003e\n    \u003centry key=\"dbtype\"\u003epostgis\u003c/entry\u003e\n    \u003centry key=\"encode functions\"\u003efalse\u003c/entry\u003e\n    \u003centry key=\"Evictor run periodicity\"\u003e300\u003c/entry\u003e\n    \u003centry key=\"namespace\"\u003ehttp://apps.environment-agency.gov.uk/flood\u003c/entry\u003e\n    \u003centry key=\"schema\"\u003e************\u003c/entry\u003e\n    \u003centry key=\"create database\"\u003efalse\u003c/entry\u003e\n    \u003centry key=\"fetch size\"\u003e1000\u003c/entry\u003e\n    \u003centry key=\"preparedStatements\"\u003efalse\u003c/entry\u003e\n    \u003centry key=\"min connections\"\u003e1\u003c/entry\u003e\n    \u003centry key=\"host\"\u003e************\u003c/entry\u003e \t\n    \u003centry key=\"Evictor tests per run\"\u003e3\u003c/entry\u003e\n    \u003centry key=\"validate connections\"\u003etrue\u003c/entry\u003e\n    \u003centry key=\"max connections\"\u003e10\u003c/entry\u003e\n    \u003centry key=\"Support on the fly geometry simplification\"\u003etrue\u003c/entry\u003e\n    \u003centry key=\"database\"\u003e************\u003c/entry\u003e\n    \u003centry key=\"Max connection idle time\"\u003e300\u003c/entry\u003e\n    \u003centry key=\"Test while idle\"\u003etrue\u003c/entry\u003e\n    \u003centry key=\"Loose bbox\"\u003etrue\u003c/entry\u003e\n    \u003centry key=\"Expose primary keys\"\u003efalse\u003c/entry\u003e\n    \u003centry key=\"Max open prepared statements\"\u003e50\u003c/entry\u003e\n    \u003centry key=\"Estimated extends\"\u003etrue\u003c/entry\u003e\n    \u003centry key=\"user\"\u003e************\u003c/entry\u003e\n  \u003c/connectionParameters\u003e\n  \u003c__default\u003efalse\u003c/__default\u003e\n\u003c/dataStore\u003e\n```\nYou'll need to update passwd, schema, host, database, user for your postgres database with postgis extension installed. See https://github.com/DEFRA/flood-db\n\n## Data dir\nYour tomcat installation needs its geoserver data dir parameter updating as follows (found in `/etc/systemd/system/tomcat.service` if tomcat installation from previous is followed):\n`Environment='CATALINA_OPTS=-DGEOSERVER_DATA_DIR=/{absolute_repo_dir}/flood-gis/geoserver/data -Xms512M -Xmx1024M -server -XX:+UseParallelGC'`\nUpdate {absolute_repo_dir} with the dir of this cloned repository\n\n## File ownership\nThe files need to be writable or owned by the tomcat user that has been set up.\n`sudo chown tomcat:tomcat . -R`\n\n## Start up the tomcat service\n`sudo service tomcat start`\n\nNavigate to `http://localhost:8080/geoserver` and login with geoserver:admin to access geoserver tool. If successful then the flood layers should be viewable in the app, otherwise check all tomcat, catalina, geoserver logs for issues. Database connection etc.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fflood-gis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefra%2Fflood-gis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fflood-gis/lists"}