Hello,
in the meantime Guy has let me have a look at his data and a quick run with "lasinfo" (see end of email) shows me that the software that exported his LAS file does not conform to the LAS 1.2 specification in terms of reporting the projection information. Instead of using a GeoTIFF tag, the software used the "record ID" field to specify the ProjectedCSTypeGeoKey as 32149 (aka PCS_NAD83_Washington_South) as this excerpt shows
[...]
variable length header record 1 of 1:
reserved 0
user ID 'LASF_Projection ò}'
record ID 32149
length after header 0
description 'FIPS 4602 - U.S.Survey Feet E'
[...]
on top of that the "user ID" field is corrupt (i.e. there is a space instead of a '\0' character after the 'n' of LASF_Projection) as well and the description field makes me worry that there is something else amiss especially since it is followed by some - possibly random - byte.
[...]
the header is followed by 1 user-defined bytes
[...]
I suggest you inform whomever generated this data that there are issues with the LAS exporter of their software. This LAS file will certainly not pass the upcoming ASPRS LAS validator test ... (-:
You can fix the file as follows:
las2las -i ARRA-WA_PierceCo_2010_11785600.las ^
-remove_all_vlrs ^
-auto_reoffset ^
-sp83 WA_S -survey_feet -elevation_feet ^
-o ARRA-WA_PierceCo_2010_11785600_sp83.laz
And you can re-project the file as follows:
las2las -i ARRA-WA_PierceCo_2010_11785600.las ^
-remove_all_vlrs ^
-sp83 WA_S -survey_feet -elevation_feet ^
-target_utm 10N ^
-o ARRA-WA_PierceCo_2010_11785600_utm.laz
Do this for a folder of LAS files on 7 cores with:
las2las -i *.las ^
-remove_all_vlrs ^
-sp83 WA_S -survey_feet -elevation_feet ^
-target_utm 10N ^
-odix _utm -olaz ^
-cores 7
The LAS file correctly reprojects as UTM as evidenced by the geo-referenced hill-shaded bare-earth PNG-KML-combo that I generate with blast2dem as shown below (and that is attached) and that shows up at the right spot in Google Earth:
blast2dem -i ARRA-WA_PierceCo_2010_11785600_utm.laz ^
-keep_class 2 ^
-step 2 -hillshade ^
-opng
Regards,
Martin @rapidlasso
--
http://rapidlasso.com - fast tools to convert LiDARs
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++ original file
+++++++++++++++++++++++++++++++++++++++++++++++++++
C:\lastools\bin>lasinfo ARRA-WA_PierceCo_2010_11785600.las
reporting all LAS header entries:
file signature: 'LASF'
file source ID: 0
global_encoding: 1
project ID GUID data 1-4: 00000000-0000-0000-2020-202020202020
version major.minor: 1.2
system identifier: 'Watershed Sciences - ALS '
generating software: 'LiDAR Feature Extraction (LFEx) '
file creation day/year: 166/2011
header size: 227
offset to point data: 282
number var. length records: 1
point data format: 1
point data record length: 28
number of point records: 8700397
number of points by return: 6483308 1839011 351398 26680 0
scale factor x y z: 0.01 0.01 0.01
offset x y z: 0 0 0
min x y z: 1178001.02 557001.02 631.79
max x y z: 1181000.98 560000.98 918.53
variable length header record 1 of 1:
reserved 0
user ID 'LASF_Projection ò}'
record ID 32149
length after header 0
description 'FIPS 4602 - U.S.Survey Feet E'
the header is followed by 1 user-defined bytes
reporting minimum and maximum for all LAS point record entries ...
X 117800102 118100098
Y 55700102 56000098
Z 63179 91853
intensity 0 255
edge_of_flight_line 0 0
scan_direction_flag 0 1
number_of_returns_of_given_pulse 1 4
return_number 1 4
classification 1 7
scan_angle_rank -14 11
user_data 116 129
point_source_ID 483 487
gps_time -19378056.949865 -19375724.906468
overview over number of returns of given pulse: 4641649 2976603 975259 106886 0 0 0
histogram of classification of points:
7213428 Unclassified (1)
1144796 Ground (2)
342173 Low Point (noise) (7)
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++ repaired file
+++++++++++++++++++++++++++++++++++++++++++++++++++
C:\lastools\bin> lasinfo ARRA-WA_PierceCo_2010_11785600_sp83.laz
reporting all LAS header entries:
file signature: 'LASF'
file source ID: 0
global_encoding: 1
project ID GUID data 1-4: 00000000-0000-0000-2020-202020202020
version major.minor: 1.2
system identifier: 'LAStools (c) by Martin Isenburg'
generating software: 'las2las (version 130221)'
file creation day/year: 166/2011
header size: 227
offset to point data: 322
number var. length records: 1
point data format: 1
point data record length: 28
number of point records: 8700397
number of points by return: 6483308 1839011 351398 26680 0
scale factor x y z: 0.01 0.01 0.01
offset x y z: 1100000 500000 0
min x y z: 1178001.02 557001.02 631.79
max x y z: 1181000.98 560000.98 918.53
variable length header record 1 of 1:
reserved 43707
user ID 'LASF_Projection'
record ID 34735
length after header 40
description 'by LAStools of Martin Isenburg'
GeoKeyDirectoryTag version 1.1.0 number of keys 4
key 1024 tiff_tag_location 0 count 1 value_offset 1 - GTModelTypeGeoKey: ModelTypeProjected
key 3072 tiff_tag_location 0 count 1 value_offset 32149 - ProjectedCSTypeGeoKey: PCS_NAD83_Washington_South
key 3076 tiff_tag_location 0 count 1 value_offset 9003 - ProjLinearUnitsGeoKey: Linear_Foot_US_Survey
key 4099 tiff_tag_location 0 count 1 value_offset 9002 - VerticalUnitsGeoKey: Linear_Foot
the header is followed by 1 user-defined bytes
LASzip compression (version 2.1r0 c2 50000): POINT10 2 GPSTIME11 2
reporting minimum and maximum for all LAS point record entries ...
X 7800102 8100098
Y 5700102 6000098
Z 63179 91853
intensity 0 255
edge_of_flight_line 0 0
scan_direction_flag 0 1
number_of_returns_of_given_pulse 1 4
return_number 1 4
classification 1 7
scan_angle_rank -14 11
user_data 116 129
point_source_ID 483 487
gps_time -19378056.949865 -19375724.906468
overview over number of returns of given pulse: 4641649 2976603 975259 106886 0 0 0
histogram of classification of points:
7213428 Unclassified (1)
1144796 Ground (2)
342173 Low Point (noise) (7)
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++ reprojected file
+++++++++++++++++++++++++++++++++++++++++++++++++++
C:\lastools\bin>lasinfo ARRA-WA_PierceCo_2010_11785600_utm.laz
reporting all LAS header entries:
file signature: 'LASF'
file source ID: 0
global_encoding: 1
project ID GUID data 1-4: 00000000-0000-0000-2020-202020202020
version major.minor: 1.2
system identifier: 'LAStools (c) by Martin Isenburg'
generating software: 'las2las (version 130221)'
file creation day/year: 166/2011
header size: 227
offset to point data: 322
number var. length records: 1
point data format: 1
point data record length: 28
number of point records: 8700397
number of points by return: 6483308 1839011 351398 26680 0
scale factor x y z: 0.01 0.01 0.01
offset x y z: 500000 5100000 0
min x y z: 549669.04 5188245.79 192.57
max x y z: 550611.58 5189188.32 279.97
variable length header record 1 of 1:
reserved 43707
user ID 'LASF_Projection'
record ID 34735
length after header 40
description 'by LAStools of Martin Isenburg'
GeoKeyDirectoryTag version 1.1.0 number of keys 4
key 1024 tiff_tag_location 0 count 1 value_offset 1 - GTModelTypeGeoKey: ModelTypeProjected
key 3072 tiff_tag_location 0 count 1 value_offset 26910 - ProjectedCSTypeGeoKey: PCS_NAD83_UTM_zone_10N
key 3076 tiff_tag_location 0 count 1 value_offset 9001 - ProjLinearUnitsGeoKey: Linear_Meter
key 4099 tiff_tag_location 0 count 1 value_offset 9001 - VerticalUnitsGeoKey: Linear_Meter
the header is followed by 1 user-defined bytes
LASzip compression (version 2.1r0 c2 50000): POINT10 2 GPSTIME11 2
reporting minimum and maximum for all LAS point record entries ...
X 4966904 5061158
Y 8824579 8918832
Z 19257 27997
intensity 0 255
edge_of_flight_line 0 0
scan_direction_flag 0 1
number_of_returns_of_given_pulse 1 4
return_number 1 4
classification 1 7
scan_angle_rank -14 11
user_data 116 129
point_source_ID 483 487
gps_time -19378056.949865 -19375724.906468
overview over number of returns of given pulse: 4641649 2976603 975259 106886 0 0 0
histogram of classification of points:
7213428 Unclassified (1)
1144796 Ground (2)
342173 Low Point (noise) (7)
On Thu, Feb 21, 2013 at 4:18 PM,
<lguy...@yahoo.com> wrote:
This is what I am currently using:
las2las -i fnin.las -o ../LAS_UTM/fnin_UTM.las -olas -sp83 WA_S -feet –elevation_feet -target_utm 10T -target_elevation_meters –verbose
Won’t work if use “-utm”, need the “Target_utm”. Need 10T rather than 10N.
Also needed to specify the input projection. These are older files and the projection info may not have been compatible with las2las.
also need to specify -elevation_feet to get the Z conversion to work correctly.
This appears to be working great! Elevations and XY line up with other data sets.
Guy McWethy