Andy,
you are in luck. I just wrote a little tool that removes all duplicate
points from a LAS/LAZ/ASCII file. Here, duplicates are considered
points with identical x and y coordinates but possibly different
heights, intensities, ... . The first point survives, all subsequent
duplicates are removed.
http://www.cs.unc.edu/~isenburg/lastools/download/lasduplicate_README.txt
http://www.cs.unc.edu/~isenburg/lastools/download/lasduplicate.exe
cheers,
martin @lastools
example usage:
>> lasduplicate -i in.las -o out.las
removes all duplicates from the LAS file 'in.las' and stores the
result to the LAS file 'out.las'
>> lasduplicate -i in.las -o out.las -verbose
same as above but reports every removed point in the stderr
>> lasduplicate -i in.laz -o out.laz
removes all duplicates from the LASzip compressed file 'in.laz' and
stores the result to the LASzip compressed 'out.laz'
>> lasduplicate -i in.txt -iparse xyzai -o out.txt -oparse xyzai
removes all duplicates from the ASCII file 'in.txt' and stores the
result to the ASCII file 'out.txt'
>> lasduplicate -i files.txt -lof -o merged.laz
removes all duplicates from the merged points of all LAS/LAZ files
listed in 'files.txt' and stores the merged result to the LASzip
compressed file 'merged.laz'
>> lasduplicate -i files.txt -lof -iparse xyzcirn -o merged.laz
same as above but for a list of ASCII files
for more info:
C:\lastools\bin>lasduplicate -h
Supported LAS Inputs
-i lidar.las
-i lidar.laz
-i file_list.txt -lof
-i lidar1.las -i lidar2.las -i lidar3.las -i lidar4.las
-ilas -ilaz (from stdin)
-rescale 0.1 0.1 0.1
-reoffset 600000 4000000 0
-i xyzta.txt -iparse xyzta -skip 1 (on-the-fly from ASCII)
Supported LAS Outputs
-o lidar.las
-o lidar.laz
-olas -olaz (to stdout)
-nil (to NULL instead)
-o xyzta.txt -oparse xyzta (on-the-fly to ASCII)
usage:
lasduplicate -i in.las -o out.las
lasduplicate -i in.laz -o out.laz -verbose
lasduplicate -i in.txt -iparse xyzit -o out.txt -oparse xyzit
lasduplicate -i in.las -nil
lasduplicate -h
---------------
if you find bugs let me (
martin....@gmail.com) know.
==============================================
Hello,
I'm fairly new to this list and am impressed with the breadth of
capabilities that LAStools can provide. I'm wondering if LAStools may
have
the capability to identify (and delete) duplicate points from las
files.
Duplicate points, for whatever reason they occasionally occur in las
files, can wreak havoc with point-level analyses.
Thanks,
Andy
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
Andrew T. Hudak, PhD
Research Forester
USFS Rocky Mountain Research Station
Forestry Sciences Laboratory
1221 South Main Street, Moscow, ID 83843
(208) 883-2327 (phone),
(208) 883-2318 (fax)
Email:
ahu...@fs.fed.us
Web:
http://www.fs.fed.us/rmrs/profiles/?last=Hudak&first=Andrew
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*