These are chat archives for PDAL/PDAL

8th
Nov 2017
matt wilkie
@maphew
Nov 08 2017 00:29
Plas.io has inundation viz??!? ...flood plain mapping is exactly why I'm messing with fixing these LAS data. Now we're going to have to rethink the whole approach. How hard to set inundations at specific levels? (e.g. radio buttons or text fields) Add in-map labels?
...done for day. Thanks again for your time.
Howard Butler
@hobu
Nov 08 2017 14:09
@maphew https://pypi.python.org/pypi/PDAL now has a wheel for you to try. It will require OSGeo4W64 PDAL and OSGeo4W Python3.
py3_env
python -m pip install PDAL
matt wilkie
@maphew
Nov 08 2017 16:48
sorry no joy. (why o why is python packaging such a mess?):
ModuleNotFoundError: No module named 'Cython'
solved with pip install cython
ModuleNotFoundError: No module named 'packaging'
solved by installing that
but next one is bigger:
error: Microsoft Visual C++ 14.0 is required. Get it...
Tried again inside conda shell (which is new to me).
some intervening circling steps omitted:
matt wilkie
@maphew
Nov 08 2017 16:53
conda create -n gdaltest, activate gdaltest, conda install cython gdal, pip install packaging, pip install pdal
OSError: Could not find pdal-config 'pdal-config.bat': [Error 2] The system cannot find the file specified
should I open an issue ticket?
(re: conda gdal install: ContinuumIO/anaconda-issues#1074)
matt wilkie
@maphew
Nov 08 2017 18:02
...
Howard Butler
@hobu
Nov 08 2017 18:03
hey, just checking in now. You should use the egg directly, not build it yourself. You need to be using Python36 of OSGeo4W64
matt wilkie
@maphew
Nov 08 2017 18:03
a pdal translate foo.laz out.las is ~20% larger than laszip foo.laz out2.las. Is that expected?
I
Howard Butler
@hobu
Nov 08 2017 18:04
yes. PDAL defaults to using "Point format 3" which has Red, Green, Blue, and GPSTime dimensions on it. For LAS storage, the bytes are used whether or not there's data in there.
matt wilkie
@maphew
Nov 08 2017 18:04
I'm not sure what "use egg directly" means. pip install downloaded_file.whl?
Howard Butler
@hobu
Nov 08 2017 18:04
Do you need a whl or egg?
You can change which point format PDAL uses with the writers.las.dataformat_id option
matt wilkie
@maphew
Nov 08 2017 18:06
I don't know! I think wheel, because that's what's been getting all the attention last couple of years. Eggs are old-style, I thought?
Howard Butler
@hobu
Nov 08 2017 18:06
yeah, I think so. Python packaging is mystery meat to me
matt wilkie
@maphew
Nov 08 2017 18:08
Let's start with whl
matt wilkie
@maphew
Nov 08 2017 18:09
+1!
that worked, thanks!
Howard Butler
@hobu
Nov 08 2017 18:11
shit, really?
import pdal works?
matt wilkie
@maphew
Nov 08 2017 18:11
(so much work for a 107kb file)
oh, actually no:

`T:\ENV.483\scratch\Carmacks\from_contractor>python -m pip install ..\pdal\PDAL-1.6.0-cp36-cp36m-win_amd64.whl
Processing t:\env.483\scratch\carmacks\pdal\pdal-1.6.0-cp36-cp36m-win_amd64.whl
Installing collected packages: PDAL
Successfully installed PDAL-1.6.0

T:\ENV.483\scratch\Carmacks\from_contractor>python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import padal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'padal'
import pdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\OSGEO4~1\apps\Python36\lib\site-packages\pdal__init__.py", line 3, in <module>
from .pipeline import Pipeline
File "C:\OSGEO4~1\apps\Python36\lib\site-packages\pdal\pipeline.py", line 2, in <module>
from pdal import libpdalpython
ImportError: DLL load failed: The specified procedure could not be found.`

Howard Butler
@hobu
Nov 08 2017 18:15
try this:
  • run a cmd.exe
  • change to cd c:\osgeo4w64
  • run .\osgeo4w.bat
  • run py3_env
  • run python -m pdal
I think there is something up with OSGeo4W's python2 and Python 3 getting mixed
matt wilkie
@maphew
Nov 08 2017 18:24
yeah, I think so.
Howard Butler
@hobu
Nov 08 2017 18:24
still having trouble?
matt wilkie
@maphew
Nov 08 2017 18:25
Both py36 and py27 are in PATH. After I clean the path there is a "can't find python36.dll" windows popup
Howard Butler
@hobu
Nov 08 2017 18:25
ah, ok. python36.dll is in c:\osgeo4w\apps\python36\bin I think
I got to run, but hopefully you are moving toward somewhere helpful
matt wilkie
@maphew
Nov 08 2017 18:26
C:\>python -m pip install PDAL-1.6.0-cp36-cp36m-win_amd64.whl
Processing t:\env.483\scratch\carmacks\pdal\pdal-1.6.0-cp36-cp36m-win_amd64.whl
Installing collected packages: PDAL
Successfully installed PDAL-1.6.0

C:\>python -m PDAL
C:\OSGEO4~1\apps\Python36\python.exe: No module named PDAL

C:\>path
PATH=C:\OSGEO4~1\apps\Python36;C:\OSGEO4~1\apps\Python36\Scripts;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\WBem;C:\bin;C:\shims

C:\>set path=c:\OSGeo4W64\apps\Python36;c:\OSGeo4W64\apps\Python36\Scripts;c:\Windows\system32;c:\Windows

C:\>python -m PDAL
{{{popup error missing python36.dll}}}
No problem, run as thou needst to. :-)
/switch topic
Can PDAL classify unclassified LAS? e.g.:
Howard Butler
@hobu
Nov 08 2017 23:06
PDAL can do ground and noise classification out of the box. You can write your own classifiers following something like @chambbj outlined here https://lists.osgeo.org/pipermail/pdal/2017-July/001367.html
There's no explicit building or vegetation classfiersk