Skip to content

Commit d318981

Browse files
author
Médéric RIBREUX
committed
Add v.in.lidar algorithm
1 parent 7f461f3 commit d318981

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
v.in.lidar
2+
Converts LAS LiDAR point clouds to a GRASS vector map with libLAS.
3+
Vector (v.*)
4+
ParameterFile|input|LiDAR input files in LAS format (*.las or *.laz)|False|False
5+
ParameterExtent|spatial|Import subregion only|None|True
6+
ParameterString|return_filter|Only import points of selected return type (Options: first, last, mid)|None|False|True
7+
ParameterString|class_filter|Only import points of selected class(es) (comma separated integers)|None|False|True
8+
*ParameterBoolean|-t|Do not create attribute table|False
9+
Hardcoded|-o
10+
OutputVector|output|Lidar
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# -*- coding: utf-8 -*-
2+
3+
"""
4+
***************************************************************************
5+
v_in_lidar.py
6+
-------------
7+
Date : March 2016
8+
Copyright : (C) 2016 by Médéric Ribreux
9+
Email : medspx at medspx dot fr
10+
***************************************************************************
11+
* *
12+
* This program is free software; you can redistribute it and/or modify *
13+
* it under the terms of the GNU General Public License as published by *
14+
* the Free Software Foundation; either version 2 of the License, or *
15+
* (at your option) any later version. *
16+
* *
17+
***************************************************************************
18+
"""
19+
20+
__author__ = 'Médéric Ribreux'
21+
__date__ = 'March 2016'
22+
__copyright__ = '(C) 2016, Médéric Ribreux'
23+
24+
# This will get replaced with a git SHA1 when you do a git archive
25+
26+
__revision__ = '$Format:%H$'
27+
28+
29+
def processCommand(alg):
30+
# Handle the extent
31+
extent = alg.getParameterFromName('spatial')
32+
oldExtent = extent.value
33+
if extent.value:
34+
l = extent.value.split(',')
35+
extent.value = ','.join([l[0], l[2], l[1], l[3]])
36+
37+
alg.processCommand()
38+
if extent.value:
39+
extent.value = oldExtent

0 commit comments

Comments
 (0)