Yes pdal is a good possibility. But we neither yet have pdal replacements for 
the lidar tools nor pdal in anaconda. I don't know which is the better near 
term solution for lidar and which would be easier to to implement.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu















On Feb 21, 2018, at 7:43 PM, Vaclav Petras 
<wenzesl...@gmail.com<mailto:wenzesl...@gmail.com>> wrote:



On Wed, Feb 21, 2018 at 7:43 PM, Michael Barton 
<michael.bar...@asu.edu<mailto:michael.bar...@asu.edu>> wrote:
So here is an email chain with the conda-forge maintainers of the LAStools 
package about liblas in Anaconda which is not liblas, but actually laslib 
misnamed. This is why there is no liblas-config. Since liblas.dylib is 
installed with the lastools package in Anaconda, I asked if they might also 
create a liblas-config file (not currently installed) so that GRASS can compile 
against it for LiDAR support


Since that's the case, it doesn't seem that just liblas-config would solve it. 
Daniel Clewley says "LASlib isn't a drop in replacement for libLAS (different 
function names for one thing) you'd have to modify the GRASS code if you wanted 
to use LASlib." Perhaps simpler than changing it to PDAL, but I'm not sure if 
worth it. But I haven't seen the LASlib API.



The upshot is that LAStools (and laslib, misnamed as liblas) can be installed 
through Anaconda, but not the packages we know as libLAS. Also, it seems like 
libLAS is no longer maintained and superseded by LASlib and related tools.


So far various people kept libLAS alive:

https://github.com/libLAS/libLAS/commits/master<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_libLAS_libLAS_commits_master&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=_O4k1Vw2r12rLzx299WafFcaDaH01hzHGCoCuf94J0I&s=Kt7DFBhZJWvgpo4vM-1sXm32KiKyQ5eGF-t9k3yBUzo&e=>

But the situation is not ideal.


I have an email from William Kyngesburye (copied) from several years ago 
suggesting that GRASS lidar support could potentially use LASlib instead of 
liblas. But I don't know what that would involve.


As I said above, I dpn't know the LASlib API, but my guess is that it would be 
possible, but I think the question is if somebody can work on it.

From what I understood replacement for libLAS is PDAL, but definitively not a 
drop-in one. I was not able to dedicate any time to it lately except for 
accepting patch from felixg few days ago which makes v.in.pdal work with 
current PDAL. Also I have been told that PDAL package for Anaconda is coming 
soon (in days).

Best,
Vaclav



MIchael

...
From: Daniel Clewley <notificati...@github.com<mailto:notificati...@github.com>>
Subject: Re: [conda-forge/lastools-feedstock] can liblas-config be included in 
package (#3)
Date: February 21, 2018 at 11:38:55 AM MST
To: conda-forge/lastools-feedstock 
<lastools-feedst...@noreply.github.com<mailto:lastools-feedst...@noreply.github.com>>
Cc: Michael Barton 
<c.michael.bar...@gmail.com<mailto:c.michael.bar...@gmail.com>>, Author 
<aut...@noreply.github.com<mailto:aut...@noreply.github.com>>
Reply-To: conda-forge/lastools-feedstock 
<reply+0088d5af64024b45f60988c0b8f9368cac4eee6363df9a7492cf0000000116a57eb892a169ce11d01...@reply.github.com<mailto:reply+0088d5af64024b45f60988c0b8f9368cac4eee6363df9a7492cf0000000116a57eb892a169ce11d01...@reply.github.com>>


LASlib isn't a drop in replacement for libLAS (different function names for one 
thing) you'd have to modify the GRASS code if you wanted to use LASlib.


From: Michael Barton 
<c.michael.bar...@gmail.com<mailto:c.michael.bar...@gmail.com>>
Subject: Re: [conda-forge/lastools-feedstock] can liblas-config be included in 
package (#3)
Date: February 21, 2018 at 8:59:25 AM MST
To: conda-forge/lastools-feedstock 
<reply+0088d5afde4903f9a76a7de6418c35ec29798e65e254574992cf0000000116a4e15492a169ce11d01...@reply.github.com<mailto:reply+0088d5afde4903f9a76a7de6418c35ec29798e65e254574992cf0000000116a4e15492a169ce11d01...@reply.github.com>>
Cc: Vaclav Petras <wenzesl...@gmail.com<mailto:wenzesl...@gmail.com>>, Eric 
Hutton <hutton.e...@gmail.com<mailto:hutton.e...@gmail.com>>

Thanks for the quick response Dan,

I have indeed seen both the open source libLAS code and the LAStools site. The 
thing is that the Anaconda package installs liblas.dylib into ../lib as well as 
command line tools in ../bin with the same names as the tools built with the 
libLAS code. A couple years ago, a colleague on the GRASS project looked into 
the (then new) LAStools distribution and thought that it could be a drop in 
replacement for libLAS code. So I was hoping to try this with the Anaconda 
build. But we need a liblas-config to do it. I'm copying a couple colleagues on 
GRASS who also might be able to help with this.

Cheers
Michael



From: Daniel Clewley <notificati...@github.com<mailto:notificati...@github.com>>
Subject: Re: [conda-forge/lastools-feedstock] can liblas-config be included in 
package (#3)
Date: February 21, 2018 at 12:27:16 AM MST
To: conda-forge/lastools-feedstock 
<lastools-feedst...@noreply.github.com<mailto:lastools-feedst...@noreply.github.com>>
Cc: Michael Barton 
<c.michael.bar...@gmail.com<mailto:c.michael.bar...@gmail.com>>, Author 
<aut...@noreply.github.com<mailto:aut...@noreply.github.com>>
Reply-To: conda-forge/lastools-feedstock 
<reply+0088d5afde4903f9a76a7de6418c35ec29798e65e254574992cf0000000116a4e15492a169ce11d01...@reply.github.com<mailto:reply+0088d5afde4903f9a76a7de6418c35ec29798e65e254574992cf0000000116a4e15492a169ce11d01...@reply.github.com>>


This is the feedstock for 
LAStools<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_LAStools_LAStools&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=_O4k1Vw2r12rLzx299WafFcaDaH01hzHGCoCuf94J0I&s=ldj8Sw8X5ftlAivmAsG7tmePCgMcO2HxM6XH99LrTfU&e=>
 and LASlib not 
libLAS<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_libLAS_libLAS&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=_O4k1Vw2r12rLzx299WafFcaDaH01hzHGCoCuf94J0I&s=GuVlnoktk-csitrgckBePx4WJ1v_ZYXiIl8B51Ydttk&e=>
 which I believe is the library GRASS can be compiled against. The libLAS 
website has a page explaining the relationship between the two: 
https://www.liblas.org/lastools.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.liblas.org_lastools.html&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=_O4k1Vw2r12rLzx299WafFcaDaH01hzHGCoCuf94J0I&s=TJQ1eSBXpa8L3IrseTebZgyoHHFaNnOxyqkHZbdxQ88&e=>.
 The two libraries provide similar functionality but aren't compatible.

From the libLAS website "As of 2014, libLAS has been almost entirely superceded 
by Martin Isenburgā€˜s LASlib library."

More specifically this feedstock builds a fork of LAStools 
(https://github.com/gillins/LAStools/<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_gillins_LAStools_&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=_O4k1Vw2r12rLzx299WafFcaDaH01hzHGCoCuf94J0I&s=wQwQ2hTaHMK_RPNZcXN3rVYXsqw6UAnnYFN0kv4AuD4&e=>)
 which adds CMake build scrips. The standard LAStools doesn't provide a 
liblas-config file, we could add one to the fork this is being build against 
but I think this would only make things between the two libraries more 
confusing.

I'm going to mark this as closed but if I am incorrect and it is LASlib you 
need please reopen for further discussion.




_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to