Giter Site home page Giter Site logo

qgis-dissect's Introduction

Lifecycle:Experimental

dissect (formerly qgis-reports-plugin)

A plugin reporting overlapping GIS datasets

Installation - BC Government Employees

GTS Recommended - Use Geospatial or ArcGIS 10.8 (BCGW queries are very slow if run locally)

  1. Create a new profile in QGIS if desired (Settings/User Profiles/New Profile)
  2. In File Explorer, head to ...\script_whse\python\Reporting\In_Progress\dissect and run install.bat
  3. When prompted, hit enter or select the QGIS profile you'd like to install on
  4. Restart QGIS if necessary

Installation

  1. Download repo
  2. Copy example_config.yml to the root folder and rename to config.yml
  3. Modify optional default parameters as desired
  4. Run install.py:
    • Open QGIS and run the script from the Python Console (CTRL+ALT+P): 1) Show editor, 2) Open script, 3) Run script image
    • if you have a standalone QGIS build, simply run install.bat (and change bcgov_qgis_boiler_plate in install.py to your package)
    • in either case, you will be prompted to select a QGIS profile to install on. You can simply press enter to select the default profile.
  5. Configure data_config.xlsx as desired.

Optional additional configuration steps

  • Modify default parameters in config.yml - then run install.bat/py again
    • Defaults can also be set in QGIS after install in Settings > Options > Advanced > dissect.
  • Modify html templates for output reports
  • Configure protected tables in protected.yml
    • Protected tables will provide only intersect summary stats - geometries will not be exported.

Usage

  1. Start QGIS
  2. Add a file that contains your area of interest polygon (or create a new temp layer add temporary scratch layer)
  3. Open the Processing Toolbox (CTRL+ALT+T) and select dissect from Scripts at the bottom of the toolbox

Processing toolbox

  1. Select your area of interest

Selecting an AOI

  1. Add your database credentials (+).

Create a new authentication configuration

This login will be stored in an encrypted file within your QGIS profile. If you haven't done so previously, you will be asked to set a master password to edit/view stored configurations - this can be whatever you want.

Setting a master password

Give the configuration a name and enter the username and password for the database you are accessing (e.g. BCGW)

Filling in authentication config

  1. If desired, check 'Add overlapping interests to map' to have intersecting features added in QGIS (including all original attributes).

Add overlapping interests

  1. Run! (Expected runtimes are roughly 2 min for a 100 ha AOI or 8 min for a 10 000 ha AOI with the default Terrestrial Datasets configuration)

Report output

When complete, the Results Viewer panel should open on the bottom right with a hyperlink directly to the report file. The html report file contains summary statistics as well as geospatial data for all interests (except protected tables, which have summary stats only).

Results viewer panel

Use the buttons below the map to filter interests by category. Use the 'Draw on map' switch to make interests visible on the map.

Filter buttons

At the bottom of the report page, failed layers, ie data which could not be processed and are not included in the report, are listed. The comment included should provide direction for how to resolve the issue, if possible, or whether perhaps you lack access to the requested data.

Contributing

We encourage contributions. Please see our CONTRIBUTING guidelines. BC Government employees should also ensure they review BC Open Source Development Employee Guide

  • Contribute tools and plugins into tools, standalone scripts and modules to scripts, and small snips and script examples to recipes.
  • Please do your best to document your scripts and provide tool documentation

License

Copyright 2019 BC Provincial Government

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

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.