Coder Social home page Coder Social logo

rvr_interface's Introduction

rvr_interface

Repo for code and script transfer between mundialis and RVR - GRASS GIS addons:

  • m.import.rvr imports data for the processing of gebaeudedetektion, dachbegruenung and/or einzelbaumerkennung.

  • r.import.dtm_nrw downloads and imports the NRW digital terrain model (DTM) 1m into the current mapset. Only the extent of the current region is downloaded and imported with a 1m resolution.

  • r.import.ndsm_nrw calculates an nDSM by subtracting input digital terrain model (DTM) data (defined by the dtm parameter) from an input DSM indicated by the dsm parameter. If no DTM is defined, NRW DTM data is automatically imported using r.import.dtm_nrw.

  • r.in.pdal.worker is a worker addon for r.in.pdal and is used in m.import.rvr.

  • m.analyse.buildings

    • r.extract.buildings extracts buildings as vectors and calculates height statistics (minimum, maximum, average, standard deviation, median, percentile) and presumable number of stories using an nDSM-raster, NDVI-raster, and FNK-vector (Flaechennutzungskatalog).
    • r.extract.buildings.worker is a worker module that is started by r.extract.buildings.
    • v.cd.areas calculates differences between two vector layers (e.g. classification and reference) by making use of v.overlay with operator "xor". Only differences with a defined minimum size are extracted.
    • v.cd.areas.worker is a worker module that is started by v.cd.areas.
    • r.extract.greenroofs extracts vegetated roofs from aerial photographs, an nDSM, a building vector layer and optionally an FNK (Flaechennutzungskatalog) and tree vector layer.
    • r.extract.greenroofs.worker is a worker module that is started by r.extract.greenroofs.
  • m.analyse.trees

    • r.trees.peaks assigns pixels to nearest peak (tree crown).
    • r.trees.mltrain generates training data for a machine learning (ML) model to detect trees and trains the model with these training data.
    • r.trees.mlapply applies the tree classification model in parallel to the area of interest (current region).
    • r.trees.mlapply.worker applies classification model for a region defined by a vector. This module should not be called directly, instead it is called in parallel by r.trees.mlapply.
    • r.trees.postprocess generates single tree delineations from tree pixels and geomorphological peaks.
    • v.trees.param calculates various tree parameters for tree crowns given as input vector map treecrowns.
    • v.trees.param.worker is used within v.trees.param to calculate various tree parameters for tree crowns in parallel.
    • v.trees.species classifies trees in deciduous and coniferous trees.
    • v.trees.cd calculates the change between two given treecrown vector maps (inp_t1 and inp_t2 for time t1 and t2, respectively).
    • v.trees.cd.worker is a worker module that is started by v.trees.cd.

Building and running a docker image

In the folder with the Dockerfile, run

docker build -t rvr_interface:latest .

Instead of "latest", a version number can be used. This should create a local docker image with all needed addons and dependencies. Once the docker image has been created locally, it can be started on Linux with e.g.

xhost local:*
docker run -it --privileged --rm --ipc host \
       -v /path/to/grassdata:/grassdb \
       -v /path/to/rvr_daten:/mnt/data \
       -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" \
       --env DISPLAY=$DISPLAY \
       --device="/dev/dri/card0:/dev/dri/card0" \
       rvr_interface:latest bash

On Windows you need to do the following before starting the docker container:

  1. Install Docker Desktop
  2. Download and install VcXsrv Windows X Server
  3. Start Xlaunch and configure it (see here):
    • in the "Extra Settings" window enable "Disable access control"
    • in the "Finish Configuration" window click "Save configuration" and save it e.g. on the desktop

Now you can run the docker:

# get own IP adress (take the value of IPAdress e.g. 10.211.55.10 and not 127.0.0.1)
Get-NetIPAddress
# or
ipconfig

# set DISPLAY variable (set <YOUR-IP>)
set-variable -name DISPLAY -value <YOUR-IP>:0.0

# start Docker
docker run -it --privileged --rm --ipc host \
       -v C:/Users/path/to/grassdata:/grassdb \
       -v C:/Users/path/to/rvr_daten:/mnt/data \
       --env DISPLAY=$DISPLAY \
       --device="/dev/dri/card0:/dev/dri/card0" \
       rvr_interface:latest bash

rvr_interface's People

Contributors

anikaweinmann avatar griembauer avatar juleshaas avatar linakrisztian avatar metzm avatar momen-mawad avatar neteler avatar renovate[bot] avatar rvrkre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rvr_interface's Issues

Rename repo and multi-addon

Rename repo and multimodule to something more meaningful, e.g. rvr_building_analysis.
Consider that some of the addons are for analysis, some are for preparing the input data to the analysis.

Originally posted by @juleshaas in #7 (comment)_

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
Dockerfile
github-actions
.github/workflows/black.yml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/ci.yml
  • actions/checkout v4
  • addnab/docker-run-action v3
.github/workflows/linting.yml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/super-linter.yml
  • actions/checkout v4
  • github/super-linter v5
pip_requirements
grass-gis-addons/requirements.txt

  • Check this box to trigger a request for Renovate to run again on this repository

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.