[Liblas-devel] problem accessing point_source_id using Python API
Doug_Newcomb at fws.gov
Doug_Newcomb at fws.gov
Tue Jun 5 10:34:47 PDT 2012
Stanley,
What do you get as output for point source id if you dump one of
your las files to comma separated text?
http://liblas.org/utilities/las2txt.html . I ask because I have seen
several las files that have been missing parts :-)
Doug
Doug Newcomb
USFWS
Raleigh, NC
919-856-4520 ext. 14 doug_newcomb at fws.gov
---------------------------------------------------------------------------------------------------------
The opinions I express are my own and are not representative of the
official policy of the U.S.Fish and Wildlife Service or Dept. of the
Interior. Life is too short for undocumented, proprietary data formats.
Stanley Wong <s.wong at kucerainternational.com>
Sent by: liblas-devel-bounces at lists.osgeo.org
06/05/2012 12:43 PM
To
"Liblas-devel at lists.osgeo.org" <liblas-devel at lists.osgeo.org>
cc
Subject
[Liblas-devel] problem accessing point_source_id using Python API
Hi,
I am trying to read point_source_id of lidar points using Python API like
below:
inLas = liblas.file.File(r'<path>\test.las',None, 'r')
pt = inLas[0]
print pt.point_source_id
I keep getting value 0 on the point_source_id values in all the files I
tested. No problem on getting all other properties of Point, just not
point_source_id. I confirmed that the point source values are assigned in
those LAS files using other software (LP360 and TerraSolid).
I have 2 liblas python installation on Windows 7, 1.7.0-2 from OSGeo4W,
and 1.6.0 from pypi.python.org. Both gave me the same results.
Can someone please let me know if this is a liblas setup problem, a bug on
Python API, or simply wrong code on my part?
Thanks,
Stanley_______________________________________________
Liblas-devel mailing list
Liblas-devel at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/liblas-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/liblas-devel/attachments/20120605/76c42407/attachment.html>
More information about the Liblas-devel
mailing list