Write CSR to las without running readLAS first? #721
-
HI, I have a lot of laz files (>1300) that are all missing CRS information and I need to update them all. The only way I was able to "set" the CRS is to read in every file, set CSR and then write a new file. Is there a way to set the CRS without having to read/write the entire file? The issue is that it takes quite a while to set the projection for all the files. This is my code, perhaps there is a better way?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is not possible. lidR does not aim to replace free and open source parts of lastools. And even with lastools it is not possible with every formats because the VLR must be extended to add the CRS. You can only add the crs without creating a new file if you append the CRS in EVLR i.e. with LAS 1.4 I guess (but I don't know the specs by heart). In both cases, do it with |
Beta Was this translation helpful? Give feedback.
This is not possible. lidR does not aim to replace free and open source parts of lastools. And even with lastools it is not possible with every formats because the VLR must be extended to add the CRS. You can only add the crs without creating a new file if you append the CRS in EVLR i.e. with LAS 1.4 I guess (but I don't know the specs by heart). In both cases, do it with
las2las
it will be much faster than exposing adata.frame
into R.