Martin Isenburgilta saapui päivän vinkki LAZ-kompressointia tekeville eli siis LAS-tiedostojen zippaukseen.
Jos LAS-tiedostot ovat ladattavissa FTP:ltä kuten esimerkiksi Washingtonin yliopiston tapauksessa
niin 3 GB tiedostojen latauksen ja latauksen jälkeisen zippauksen sijaan tiedostot voi pakata suoraan latauksen aikana ja näin säästää koneen kiintolevyä. Tämän operaation tekemiseksi tarvitaan ”laszip.exe” sekä ”curl.exe” (löytyy Google-haulla), jotka sitten ajetaan rinnakkain alla olevan esimerkin tapaan:
curl -s ftp://lidar.wustl.edu/from_WRC/Franklin/LAS_Files/38090e7_NW.las | laszip -stdin -o 38090e7_NW.laz
Tällä komennolla tiedosto ”38090e7_NW.las” kirjoitetaan latautuessaan koneelle suoraan muotoon ”38090e7_NW.laz”. Operaation tehovaatimuksia voi samalla tarkkailla tiedostonhallinnasta ja samalla voidaan arvioida pakkausuhde tarkastelemalla ”I/O Read Bytes” ja ”I/O Write Bytes”sarakkeita.
Ohjelma toimii myös käänteisesti, eli jos lähtötiedosto on .LAZ ja se halutaan ladattaessa muuttuu .LAS-muotoon.
Samalla tavalla curl.exen ja lasinfo.exen avulla voidaan tarkastella LAS-tiedoston tietoja lataamatta tiedostoa ollenkaan palvelimelta.curl -s ftp://lidar.wustl.edu/from_WRC/Franklin/LAS_Files/38090e7_NW.las | lasinfo -nc -stdin
Tulokseksi saadaan:
reporting all LAS header entries:
file signature: ’LASF’
file source ID: 0
global_encoding: 0
project ID GUID data 1-4: 3507991416 36513 17806 ’₧{ü÷g└╘p’
version major.minor: 1.2
system identifier: ’NIIRS10’
generating software: ’LIDAR1 tiled’
file creation day/year: 243/2011
header size: 227
offset to point data: 4746
number var. length records: 5
point data format: 1
point data record length: 28
number of point records: 11910401
number of points by return: 9643615 1613716 550472 102598 0
scale factor x y z: 0.01 0.01 0.01
offset x y z: 0 0 0
min x y z: 686488.13 4270318.00 120.44
max x y z: 690642.00 4272813.32 659.85
variable length header record 1 of 5:
reserved 43707
user ID ’LASF_Projection’
record ID 34735
length after header 192
description ’GeoTiff Projection Keys’
GeoKeyDirectoryTag version 1.1.0 number of keys 23
key 1024 tiff_tag_location 0 count 1 value_offset 1 – GTModelTypeGeoKey: ModelTypeProjected
key 2048 tiff_tag_location 0 count 1 value_offset 4269 – GeographicTypeGeoKey: GCS_NAD83
key 2049 tiff_tag_location 34737 count 24 value_offset 48 – GeogCitationGeoKey: GCS_North_American_1983
key 2050 tiff_tag_location 0 count 1 value_offset 6269 – GeogGeodeticDatumGeoKey: Datum_North_American_Datum_1983
key 2051 tiff_tag_location 0 count 1 value_offset 8901 – GeogPrimeMeridianGeoKey: PM_Greenwich
key 2054 tiff_tag_location 0 count 1 value_offset 9102 – GeogAngularUnitsGeoKey: Angular_Degree
key 2055 tiff_tag_location 34736 count 1 value_offset 9 – GeogAngularUnitSizeGeoKey: 0.01745329252
key 2056 tiff_tag_location 0 count 1 value_offset 7019 – GeogEllipsoidGeoKey: Ellipse_GRS_1980
key 2057 tiff_tag_location 34736 count 1 value_offset 6 – GeogSemiMajorAxisGeoKey: 6378137
key 2059 tiff_tag_location 34736 count 1 value_offset 7 – GeogInvFlatteningGeoKey: 298.2572221
key 2061 tiff_tag_location 34736 count 1 value_offset 8 – GeogPrimeMeridianLongGeoKey: 0
key 3072 tiff_tag_location 0 count 1 value_offset 26915 – ProjectedCSTypeGeoKey: PCS_NAD83_UTM_zone_15N
key 3073 tiff_tag_location 34737 count 22 value_offset 0 – PCSCitationGeoKey: NAD_1983_UTM_Zone_15N
key 3075 tiff_tag_location 0 count 1 value_offset 1 – ProjCoordTransGeoKey: CT_TransverseMercator
key 3076 tiff_tag_location 0 count 1 value_offset 9001 – ProjLinearUnitsGeoKey: Linear_Meter
key 3077 tiff_tag_location 34736 count 1 value_offset 5 – ProjLinearUnitSizeGeoKey: 1
key 3081 tiff_tag_location 34736 count 1 value_offset 4 – ProjNatOriginLatGeoKey: 0
key 3082 tiff_tag_location 34736 count 1 value_offset 0 – ProjFalseEastingGeoKey: 500000
key 3083 tiff_tag_location 34736 count 1 value_offset 1 – ProjFalseNorthingGeoKey: 0
key 3088 tiff_tag_location 34736 count 1 value_offset 2 – ProjCenterLongGeoKey: -93
key 3092 tiff_tag_location 34736 count 1 value_offset 3 – ProjScaleAtNatOriginGeoKey: 0.9996
key 4097 tiff_tag_location 34737 count 26 value_offset 22 – VerticalCitationGeoKey: NAVD88 – Geoid03 (Meters)
key 4099 tiff_tag_location 0 count 1 value_offset 9001 – VerticalUnitsGeoKey: Linear_Meter
variable length header record 2 of 5:
reserved 43707
user ID ’LASF_Projection’
record ID 34736
length after header 80
description ’GeoTiff double parameters’
GeoDoubleParamsTag (number of doubles 10)
500000 0 -93 0.9996 0 1 6.37814e+006 298.257 0 0.0174533
variable length header record 3 of 5:
reserved 43707
user ID ’LASF_Projection’
record ID 34737
length after header 73
description ’GeoTiff ASCII parameters’
GeoAsciiParamsTag (number of characters 73)
NAD_1983_UTM_Zone_15N|NAVD88 – Geoid03 (Meters)|GCS_North_American_1983|
variable length header record 4 of 5:
reserved 43707
user ID ’NIIRS10’
record ID 4
length after header 10
description ’NIIRS10 Timestamp’
variable length header record 5 of 5:
reserved 43707
user ID ’NIIRS10’
record ID 1
length after header 26
description ’NIIRS10 Tile Index’
the header is followed by 3868 user-defined bytes
file signature: ’LASF’
file source ID: 0
global_encoding: 0
project ID GUID data 1-4: 3507991416 36513 17806 ’₧{ü÷g└╘p’
version major.minor: 1.2
system identifier: ’NIIRS10’
generating software: ’LIDAR1 tiled’
file creation day/year: 243/2011
header size: 227
offset to point data: 4746
number var. length records: 5
point data format: 1
point data record length: 28
number of point records: 11910401
number of points by return: 9643615 1613716 550472 102598 0
scale factor x y z: 0.01 0.01 0.01
offset x y z: 0 0 0
min x y z: 686488.13 4270318.00 120.44
max x y z: 690642.00 4272813.32 659.85
variable length header record 1 of 5:
reserved 43707
user ID ’LASF_Projection’
record ID 34735
length after header 192
description ’GeoTiff Projection Keys’
GeoKeyDirectoryTag version 1.1.0 number of keys 23
key 1024 tiff_tag_location 0 count 1 value_offset 1 – GTModelTypeGeoKey: ModelTypeProjected
key 2048 tiff_tag_location 0 count 1 value_offset 4269 – GeographicTypeGeoKey: GCS_NAD83
key 2049 tiff_tag_location 34737 count 24 value_offset 48 – GeogCitationGeoKey: GCS_North_American_1983
key 2050 tiff_tag_location 0 count 1 value_offset 6269 – GeogGeodeticDatumGeoKey: Datum_North_American_Datum_1983
key 2051 tiff_tag_location 0 count 1 value_offset 8901 – GeogPrimeMeridianGeoKey: PM_Greenwich
key 2054 tiff_tag_location 0 count 1 value_offset 9102 – GeogAngularUnitsGeoKey: Angular_Degree
key 2055 tiff_tag_location 34736 count 1 value_offset 9 – GeogAngularUnitSizeGeoKey: 0.01745329252
key 2056 tiff_tag_location 0 count 1 value_offset 7019 – GeogEllipsoidGeoKey: Ellipse_GRS_1980
key 2057 tiff_tag_location 34736 count 1 value_offset 6 – GeogSemiMajorAxisGeoKey: 6378137
key 2059 tiff_tag_location 34736 count 1 value_offset 7 – GeogInvFlatteningGeoKey: 298.2572221
key 2061 tiff_tag_location 34736 count 1 value_offset 8 – GeogPrimeMeridianLongGeoKey: 0
key 3072 tiff_tag_location 0 count 1 value_offset 26915 – ProjectedCSTypeGeoKey: PCS_NAD83_UTM_zone_15N
key 3073 tiff_tag_location 34737 count 22 value_offset 0 – PCSCitationGeoKey: NAD_1983_UTM_Zone_15N
key 3075 tiff_tag_location 0 count 1 value_offset 1 – ProjCoordTransGeoKey: CT_TransverseMercator
key 3076 tiff_tag_location 0 count 1 value_offset 9001 – ProjLinearUnitsGeoKey: Linear_Meter
key 3077 tiff_tag_location 34736 count 1 value_offset 5 – ProjLinearUnitSizeGeoKey: 1
key 3081 tiff_tag_location 34736 count 1 value_offset 4 – ProjNatOriginLatGeoKey: 0
key 3082 tiff_tag_location 34736 count 1 value_offset 0 – ProjFalseEastingGeoKey: 500000
key 3083 tiff_tag_location 34736 count 1 value_offset 1 – ProjFalseNorthingGeoKey: 0
key 3088 tiff_tag_location 34736 count 1 value_offset 2 – ProjCenterLongGeoKey: -93
key 3092 tiff_tag_location 34736 count 1 value_offset 3 – ProjScaleAtNatOriginGeoKey: 0.9996
key 4097 tiff_tag_location 34737 count 26 value_offset 22 – VerticalCitationGeoKey: NAVD88 – Geoid03 (Meters)
key 4099 tiff_tag_location 0 count 1 value_offset 9001 – VerticalUnitsGeoKey: Linear_Meter
variable length header record 2 of 5:
reserved 43707
user ID ’LASF_Projection’
record ID 34736
length after header 80
description ’GeoTiff double parameters’
GeoDoubleParamsTag (number of doubles 10)
500000 0 -93 0.9996 0 1 6.37814e+006 298.257 0 0.0174533
variable length header record 3 of 5:
reserved 43707
user ID ’LASF_Projection’
record ID 34737
length after header 73
description ’GeoTiff ASCII parameters’
GeoAsciiParamsTag (number of characters 73)
NAD_1983_UTM_Zone_15N|NAVD88 – Geoid03 (Meters)|GCS_North_American_1983|
variable length header record 4 of 5:
reserved 43707
user ID ’NIIRS10’
record ID 4
length after header 10
description ’NIIRS10 Timestamp’
variable length header record 5 of 5:
reserved 43707
user ID ’NIIRS10’
record ID 1
length after header 26
description ’NIIRS10 Tile Index’
the header is followed by 3868 user-defined bytes

