Subject: CGAL users discussion list
List archive
- From: Simon Giraudot <>
- To:
- Subject: Re: [cgal-discuss] Writing LAS/LAZ
- Date: Mon, 18 Mar 2019 08:23:00 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:56Sx3xaIlSXhRVhqdO90bFr/LSx+4OfEezUN459isYplN5qZr8S5bnLW6fgltlLVR4KTs6sC17OO9fi5EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCehbb9oMBm6sBjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+gqFVrh2vqBNwwZLbbZqPO/ZiZK7QZ88WSGRDU8tXSidPApm8b4wKD+cZIOhYroz9p1wIrRCjBAesBfnvxSVVhnDr2q06z/kqHAbd3AwhGtIOt3LUoM/6NKcTS+C61rTIwijEb/NKwjr955bHchckof6SQbJwa8rQyUc1GAzZklWQrpblPjOP2usRtGib6vNtWOSygGAprAFxpyKgxsYqioTRmo0VxUrL9SFjzIYyP924R1Z3YdG6H5tXsiGVKZd2QtkiQmFmoik11qEGuZmhfCkK0pgo2xnfa/mBfoOV4RzjTP6cLDh5iX5/Zb6zmxa//VKhx+HhTMW51FlHojJBn9XQrHwA1B3e5tKZRvdh4EutwyuD2x7c5+xCPEs6j7DUK4Q7zb41jpcTsVrMHivxmEjujqKabEAk+u+15+nlZrjqvJqcOJV1igH6K6gundG/AfgiPggJQWib+f6w1Lv98k3lWLlKj/s2nbfFsJ3CKskWp7S1DxJJ3osj8RqyDiqq3M4ckHQINF5FfQiIj4ntO1HAOvD4CvK/jky3kDdqwvDGObvhDo/CLnjCirfuZ6t95FNbyAov1t1f6IxbCrYEIP3tRk/xrtzZDhEjPAOo3+bnD89914MEVW2TBa+ZNbvesUWU6eI3P+mMeIgVtS7hJPgq/fHuiWY1lkIcfamywZQXdWu4Hu99LkWCYXvsh88BHn0Qsgo/SuzqklyCXiRJa3a8RaJvrg08XYmpBIOGSoG2i6Gaxw+6GIdXbyZIEAOiC3DtIr6FXvAKIA2TOMZ8njsYHey6Soom01ehtRXz1rZgMsLb9yoduI75xdZ87PHUjwB0/jtxWZfOm1qRRn15yztbDwQ927py9BQkmwWzlJNgivkdLuR9ovZAUwM0L5nZlbUoBN31Xw/dZMaHQV26Rc+3Rzo2S4BpmoNcUwNGA9ynyyv78W+yGbZPzu6ECZsx/77Gznb4LNp60WeA364k3QF/H5l/cFa+j6s6zDD9Qo7El0LDyfT1M6EbhXGcsmKKzG7Lu1xEFgluUePDUGxNPkY=
Hello, CGAL also provides wrappers for the LASlib functions, see: https://doc.cgal.org/latest/Point_set_processing_3/group__PkgPointSetProcessingIOLas.html#gab458d5161d933b236ac42b03366ffeb7 You can see an example for reading a PLY point set with some properties here: https://doc.cgal.org/latest/Point_set_processing_3/Point_set_processing_3_2read_las_example_8cpp-example.html#a4 Regards, -- Simon Giraudot, PhD R&D Engineer GeometryFactory - http://geometryfactory.com/ Le 15/03/2019 à 23:06, Stephen Ferrell
a écrit :
I've successfully modified the point cloud
classification example code to read LAS/LAZ files for input
but I'm having trouble figuring out how to write out a LAS/LAZ
file instead of dumping the XYZ and classification data to a
text file. Currently I write the results out in text format
in the following order:
x1 y1 z1 R1 G1 B1 c1
xn yn zn Rn Gn Bn cn
Then I use the txt2las.exe app found in LASTools to parse
the values and convert the results into a LAS/LAZ file with
the following command: txt2las.exe -i classification.txt
-parse xyzRGBc -o my_las.las
I'd really like to be able to write out the data in
LAS/LAZ format so that I don't have to use txt2las anymore.
Any help would be appreciated. Code is attached.
Regards,
Steve
-- The quality of your thoughts will
determine the quality of your life.
|
- [cgal-discuss] Writing LAS/LAZ, Stephen Ferrell, 03/15/2019
- Re: [cgal-discuss] Writing LAS/LAZ, Simon Giraudot, 03/18/2019
Archive powered by MHonArc 2.6.18.