<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'><font face="arial, helvetica, sans-serif">Hi,</font><div style="font-family: arial, helvetica, sans-serif; "><br></div><div style="font-family: arial, helvetica, sans-serif; ">I am trying to read point_source_id of lidar points using Python API like below:</div><div style="font-family: arial, helvetica, sans-serif; "><br></div><div><font face="courier new, courier, monaco, monospace, sans-serif">inLas = liblas.file.File(r'<path>\test.las',None, 'r')</font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">pt = inLas[0]</font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">print pt.point_source_id</font></div><div style="font-family: arial, helvetica, sans-serif; "><br></div><div style="font-family: arial, helvetica, sans-serif; "><br></div><div style="font-family: arial, helvetica, sans-serif; ">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).</div><div style="font-family: arial, helvetica, sans-serif; "><br></div><div style="font-family: arial, helvetica, sans-serif; ">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.</div><div style="font-family: arial, helvetica, sans-serif; "><br></div><div style="font-family: arial, helvetica, sans-serif; ">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?</div><div style="font-family: arial, helvetica, sans-serif; "><br></div><div style="font-family: arial, helvetica, sans-serif; ">Thanks,</div><div style="font-family: arial, helvetica, sans-serif; "><br></div><div style="font-family: arial, helvetica, sans-serif; ">Stanley</div></div></body></html>