Giter Club home page Giter Club logo

pbs's Introduction

Prescribed Burn System

The Prescribed Burn System is used by officers within the Department of Parks & Wildlife (DPaW) to generate and manage electronic Prescribed Fire Plans (ePFP).

Troubleshooting and support page on Confluence: PBS application support

Installation

mkdir projects cd projects/ git clone https://github.com/dbca-wa/pbs.git cd pbs/ pwd /home/patrickm/projects/pbs virtualenv venv . venv/bin/activate pip install -r requirements.txt

Environment variables

cp /var/www/pbs/.env . (or create .env file) - [This project uses django-confy to set environment variables (in a .env file)]

DEBUG=True
DATABASE_URL="postgis://db_user:db_passwd@localhost/db_name"
SECRET_KEY="my_secret_key"
KMI_DOWNLOAD_URL="http://kmi.dpaw.wa.gov.au/geoserver/public/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=public:todays_burns&outputFormat=application%2Fvnd.google-earth.kml%2Bxml&SRSNAME=EPSG:4283"
CSV_DOWNLOAD_URL="http://kmi.dpaw.wa.gov.au/geoserver/public/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=public:todays_burns&outputFormat=csv&SRSNAME=EPSG:4283"
SHP_DOWNLOAD_URL="http://kmi.dpaw.wa.gov.au/geoserver/public/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=public:todays_burns&outputFormat=SHAPE-ZIP&SRSNAME=EPSG:4283"
USER_SSO='SSO_user'
PASS_SSO='SSO_passwd'
ENV_TYPE="dev"

Manual Django module fix

vi /home/patrickm/projects/pbs/venv/local/lib/python2.7/site-packages/django/contrib/gis/geos/libgeos.py (version issue in Django - requires manual fix) change line: ver = geos_version().decode() to: ver = geos_version().decode().split()[0]

The above DB can be created from existing, as follows:

sudo -u postgres pg_dump -Fc -c pbs_dev > ../tmp/pbs_dev_07Jan2020.pgdump dropdb -U fire -h localhost pbs_dev_patrickm createdb -U fire -h localhost -O fire pbs_dev_patrickm sudo -u postgres pg_restore -v -d pbs_dev_patrickm ../tmp/pbs_dev_07Jan2020.pgdump

To test:

./manage.py runserver 0.0.0.0:8499

pbs's People

Contributors

adonm avatar dbca-asi avatar jawaidm avatar jmushtaq avatar kellythomas avatar patrickmaslen avatar rockychen-dpaw avatar ropable avatar wilsonc86 avatar xzzy avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pbs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.