Hi,
I am working with some LAS 1.2 point format 1 data that have a variable length
record in them and liblas 1.6.0 for python seems to crash on these files. When
I try to open these files I get a message that "something bad happened" and
python has to close.
Here is what I am trying
from liblas import file
f = file.File('nc_2571.las', mode= 'r')
Just to make sure it wasn't my files, I found an example from Marten Isenburg
of the v1.2 point format 2 las format and tried the same thing, no problem, the
file opened just fine. However when I added a vlr record to it using:
from liblas import file as lasfile
from liblas import vlr
from liblas import header as lasheader
f = lasfile.File('las12_example.las',None,'rb')
h = f.header
v = vlr.VLR()
v.userid='Alicia'
v.recordid = 12345
h.add_vlr(v)
f2 = lasfile.File('las12_example_vlr.las',header=h,mode='w')
for p in f:
f2.write(p)
f2.close()
And tried to open the new file 'las12_example_vlr.las', it crashed with the
same error as my file. Does anyone know if this is a known bug? Are there any
work arounds or a newer python version that I can use where this is fixed?
Thanks,
Alicia Sullivan
IT Specialist, Weyerhaeuser
_______________________________________________
Liblas-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/liblas-devel