Hello,
I have encountered a problem with las2las where it refuses to acknowledge the source CRS as a valid argument:
I assumed that ‘-epsg 4978’ and ‘-utm 10n’ would be parsed as a string (and it shows up in the terminal as such) but it is seemingly unknown to las2las. It will work fine if I manually type them out but this is part of a larger set of automations.
What do you recommend to get around this?
Thanks,

Corey Newton, Acquisition Manager
Kîsik Aerial Survey
4340 King St. – Unit 3
Delta, BC. V4K 0A5
T: (604) 821-9915 ext. 0005 | www.kisik.ca
KÎSIK is a Cree word for Sky
Ah – I assumed it would work like it does in Linux.
Thanks for the quick response, much appreciated.
Corey
From: last...@googlegroups.com <last...@googlegroups.com>
On Behalf Of Jochen Rapidlasso
Sent: Thursday, January 16, 2025 01:29
To: LAStools - efficient tools for LiDAR processing <last...@googlegroups.com>
Subject: [LAStools] Re: las2las rejecting variable substitution for arguments
Hi Corey,
this is more a PS than a LAStools issue.
LAStools uses the argument feature of the operating system you are on.
Microsoft likes to think for their users, most they do wrong. So if you have a variable like "-epsg 4978" they think you want to have this as one argument, and pass this to the program like that.
You have to do this in 2 variables:
$first = "-epsg"
$second = "4978"
las2las64 -i foo.laz $first $second ...
and it will work.
Cheers,
Jochen @rapidlasso
On Thursday, January 16, 2025 at 8:17:52 AM UTC+1 Corey Newton wrote:
Hello,
I have encountered a problem with las2las where it refuses to acknowledge the source CRS as a valid argument:
- PS D:\20240316-1-3065> $CRS_source = "-epsg 4978"
- PS D:\20240316-1-3065> & C:\lastools\bin\las2las64.exe -cores 128 -i .\06_RIEGL_PROC\04_EXPORT\*.las $CRS_source -keep_every_nth 10 -keep_last_of_many -translate_gps_time -18 -target_epsg 4326 -odir .\_QC\LAZ_UTC_DAY_SECONDS -olaz
- ERROR: cannot understand argument '-epsg 4978'. use '-h' or see las2las_README.md to get help.
I assumed that ‘-epsg 4978’ and ‘-utm 10n’ would be parsed as a string (and it shows up in the terminal as such) but it is seemingly unknown to las2las. It will work fine if I manually type them out but this is part of a larger set of automations.
What do you recommend to get around this?
Thanks,
Corey Newton, Acquisition Manager
Kîsik Aerial Survey
4340 King St. – Unit 3Delta, BC. V4K 0A5
T: (604) 821-9915 ext. 0005 | www.kisik.caKÎSIK is a Cree word for Sky
--
Download LAStools at
https://rapidlasso.de
Manage your settings at
https://groups.google.com/g/lastools/membership
---
You received this message because you are subscribed to the Google Groups "LAStools - efficient tools for LiDAR processing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
lastools+u...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/lastools/8f2217e5-f10d-403b-a0d8-f063c5aea090n%40googlegroups.com.