[pdal] pdal info issue (invalid syntax)

Bradley Chambers brad.chambers at gmail.com
Thu Apr 4 05:26:51 PDT 2019


pdal info is meant to be run from the command line, not Python. I would
encourage you to read the docs to discover what is possible in both
approaches.

On Thu, Apr 4, 2019 at 8:21 AM Andrew Cunliffe <andrewmcunliffe at gmail.com>
wrote:

> Thanks Luigi,
>
> That could be the case, but the same issue occurs even if there are no
> indents and only two lines of code. The .py file is attached.
>
> It is like PDAL is not imported correctly, but conda install reports both
> 'pdal' and 'python-pdal' are already installed, and the IDE (PyCharm) flags
> no issue with 'import pdal'.
>
> Regards,
> Andy
>
> On Thu, 4 Apr 2019 at 11:33, Luigi Pirelli <luipir at gmail.com> wrote:
>
>> can you share the GP_7_pointclouds.py code? I suspect it's a simple
>> indent error related with python syntax, nothing related with pdal
>>
>> regards
>>
>> Luigi Pirelli
>>
>>
>> **************************************************************************************************
>> * LinkedIn: https://www.linkedin.com/in/luigipirelli
>> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
>> * GitHub: https://github.com/luipir
>> * Mastering QGIS 2nd Edition:
>> *
>> https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
>> * Hire me: http://goo.gl/BYRQKg
>>
>> **************************************************************************************************
>>
>>
>> On Thu, 4 Apr 2019 at 11:52, Andrew Cunliffe <andrewmcunliffe at gmail.com>
>> wrote:
>>
>>> I've encountered an issue while trying to run pdal info
>>>
>>> Relevant code:
>>> import pdal
>>> pdal info C:\workspace\GP\GP\inputs\20180623_JK_LCO_dpc_export.laz
>>>
>>> Error
>>>   File "C:\workspace\GP\GP\GP_7_pointclouds.py", line 27
>>>     pdal info C:\workspace\GP\GP\inputs\20180623_JK_LCO_export.laz
>>>             ^
>>> SyntaxError: invalid syntax
>>>
>>> I'm fairly new to PDAL (and conda), so after several hours searching the
>>> PDAL documentation and examples for solutions, any suggestions would be
>>> welcome!
>>>
>>> (I'm using PDAL 1.8.0 with python-pdal 2.1.8, installed via conda ('
>>> conda install -c conda-forge pdal python-pdal') in a dedicated
>>> environment with python 3.6.5 on a Win10 OS platform).
>>>
>>> Thanks
>>> Andy
>>>
>>> --
>>> Dr Andrew Cunliffe
>>>
>>> Research Fellow,
>>> University of Exeter
>>> _______________________________________________
>>> pdal mailing list
>>> pdal at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/pdal
>>
>>
>
> --
> Dr Andrew Cunliffe
>
> Research Fellow in Dryland Carbon Dynamics
> School of Geography, College of Life and Environmental Science,
> University of Exeter
>
> UoEx Profile
> <http://geography.exeter.ac.uk/staff/index.php?web_id=Andy_cunliffe>
> Google Scholar
> <https://scholar.google.co.uk/citations?user=GEfm3PIAAAAJ&hl=en>
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20190404/a835c855/attachment.html>


More information about the pdal mailing list