how to use las2dem create DEM with integer spacing

42 views
Skip to first unread message

suzu...@m2k.com.tw

unread,
Oct 17, 2023, 6:15:40 AM10/17/23
to LAStools - efficient tools for LiDAR processing
hello,

when i using las2dem to create DEM model.
using the parameter as follow

las2dem -i test.las -step 1 -keep_class 2 -olaz -o testdem.laz

it will create DEM with 1meter x 1meter spacing
but the X and Y coordinate are not integer (it will be xxxx.5 yyyy.5 zzz.zz)
sample as follow
1147098.5 1757275.5 0.06
1147099.5 1757275.5 0.12
1147100.5 1757275.5 0.13
1147101.5 1757275.5 0.14

is there any parameter to constrain the output x and y sampling as integer

such as

1147098 1757275 0.06
1147099 1757275 0.12
1147100 1757275 0.13
1147101 1757275 0.14
1147102 1757275 0.16
1147103 1757275 0.21
1147104 1757275 0.17
1147105 1757275 0.17
1147106 1757275 0.27
1147107 1757275 0.28
1147108 1757275 0.34
      :               :             :


thanks a lot


Jorge Delgado García

unread,
Oct 17, 2023, 7:51:29 AM10/17/23
to last...@googlegroups.com
If your origin (model corner) is defined by default in an integer coordinate and you have a spacing of 1m, the points will logically appear with a position of 0.5, 0.5. If you want the points to appear at integer positions with this spacing and position, you should define the origin of your model using the option -ll 1147097.5 1757274.5 (as an example).

Jorge




--
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 on the web visit https://groups.google.com/d/msgid/lastools/5476b25b-a98a-4969-bf85-775d527b1a45n%40googlegroups.com.


--

suzu...@m2k.com.tw

unread,
Oct 17, 2023, 11:47:28 AM10/17/23
to LAStools - efficient tools for LiDAR processing
hi, Jorge
Thank you so much for the speedy reply.
i have tried to input different ll corner value.
but, no matter what value i input
, as example :
-ll 1147097.5 1757274.5
-ll 1147097.1 1757274.1
-ll 1147097.0 1757274.0
-ll 1147097.2 1757274.2
-ll 1147100.0 1757300.0
the result is the same.
it output DEM result in xxxxx.5 yyyyy.5, not integer.

anyway, thanks again.



Jorge Delgado García 在 2023年10月17日 星期二晚上7:51:29 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages