Giter Club home page Giter Club logo

lidarforestryheight's Introduction

LiDAR Forestry Height

QGIS minimum version = 3.0

Author = PANOimagen S.L.

e-mail = [email protected]

Plugin to generates a Digital Elevation Model (DEM) with the forest height, calculated from a classified LiDAR point cloud. This plugin uses the LasPy Library to process the point cloud (las format) and LasZip if the cloud is compressed (laz format)

Combines the ground returns and the first returns of the cloud of LiDAR classified data (ASPRS classification / *.laz, *.las formats). The result is a raster file (GeoTif).

The following image shows the heigths results of a forest area in grey scale. image

You can classify with a color gradient by heigths, as follow. image

To use this plugin you need SciPy, NumPy and LasPy:

To install LasPy Library (or others), you must launch the following lines at OSGEO Shell (OSGeo4W.bat at QGIS installation folder):

By default OSGeo console runs with Python 2, you need to configure the console to run with Python 3, so launch, from QGIS installation folder (Windows):

bin\py3_env.bat

bin\qt5_env.bat

python -m pip install numpy

python -m pip install scipy

python -m pip install laspy

LasPy documentation is avaible at: https://github.com/laspy/laspy

If the process option with the LasPy library is not activated once it has been installed, you must restart QGIS.

If you need to process compressed LiDAR data (*.laz format), the plugin uncompress automatically the point cloud with LasZip Library:

LasZip is LGPL License and you can found it at: https://laszip.org/

KeyWords = Forest, Forestry, Digital Terrain Model, DTM, Digital Elevation Model, DEM, Digital Surface Model, DSM, LiDAR, Heights, Raster, GeoTif, Python3, QGIS3

LiDAR Forestry Heights license:

Copyright (C) 2019  by PANOimagen S.L.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

image

lidarforestryheight's People

Contributors

robertopanoi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lidarforestryheight's Issues

Plugin crash on load of QGIS version 3.24.3-Tisler

Couldn't load plugin 'LiDARForestryHeight-master' due to an error when calling its classFactory() method

ImportError: cannot import name 'Header' from 'laspy.header' (C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\laspy\header.py)
Traceback (most recent call last):
File "C:\PROGRA1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 423, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LiDARForestryHeight-master_init
.py", line 38, in classFactory
from .LiDARForestryHeight import LiDARForestryHeight
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init_.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\PROGRA1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LiDARForestryHeight-master\LiDARForestryHeight.py", line 34, in
from .LiDARForestryHeight_dialog import LiDARForestryHeightDialog
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\PROGRA1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LiDARForestryHeight-master\LiDARForestryHeight_dialog.py", line 43, in
from . import plugin_process
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\PROGRA1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LiDARForestryHeight-master\plugin_process.py", line 31, in
from . import laspy_funs as laspy_fns
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\PROGRA1/QGIS321.3/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/DimitrisPoursanidis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LiDARForestryHeight-master\laspy_funs.py", line 39, in
from laspy.header import Header
ImportError: cannot import name 'Header' from 'laspy.header' (C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\laspy\header.py)

Any idea? Need to install other packages?

NameError: name 'plugin_process' is not defined

Hello. I have this error when trying to use this plugin.

An error has occurred while executing Python code:

NameError: name 'plugin_process' is not defined
Traceback (most recent call last):
File "D:/Users/gsienko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LiDARForestryHeight-master\LiDARForestryHeight_dialog.py", line 158, in preparingProcess
self.settingProcessParams(full_filename, outPath)
File "D:/Users/gsienko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LiDARForestryHeight-master\LiDARForestryHeight_dialog.py", line 198, in settingProcessParams
self.process = plugin_process.Process(full_filename,
NameError: name 'plugin_process' is not defined

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.8.2-Zanzibar Zanzibar, 4470baa1a3

Python Path:
D:/Users/gsienko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools
C:/OSGEO41/apps/qgis/./python
D:/Users/gsienko/AppData/Roaming/QGIS/QGIS3\profiles\default/python
D:/Users/gsienko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGEO4
1/apps/qgis/./python/plugins
C:\OSGeo4W64\bin\python37.zip
C:\OSGEO41\apps\Python37\DLLs
C:\OSGEO4
1\apps\Python37\lib
C:\OSGeo4W64\bin
C:\OSGEO41\apps\Python37
C:\OSGEO4
1\apps\Python37\lib\site-packages
D:/Users/gsienko/AppData/Roaming/QGIS/QGIS3\profiles\default/python
D:\eclipse\plugins\org.python.pydev.core_7.0.3.201811082356\pysrc
D:\Users\gsienko\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\DigitizingTools\tools
D:\Users\gsienko\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\DigitizingTools
D:\Users\gsienko\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\HCMGIS/forms
D:/Users/gsienko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\joinmultiplelines
D:\Users\gsienko\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mmqgis/forms

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.