{"id":382,"date":"2012-08-01T07:55:44","date_gmt":"2012-08-01T04:55:44","guid":{"rendered":"http:\/\/nordicgeocenter.wordpress.com\/?p=382"},"modified":"2012-08-01T07:55:44","modified_gmt":"2012-08-01T04:55:44","slug":"laz-pakkaus-latauksen-aikana","status":"publish","type":"post","link":"https:\/\/geocenter.fi\/blogi\/laz-pakkaus-latauksen-aikana\/","title":{"rendered":"LAZ-pakkaus latauksen aikana"},"content":{"rendered":"<p>Martin Isenburgilta saapui p\u00e4iv\u00e4n vinkki LAZ-kompressointia tekeville eli siis LAS-tiedostojen zippaukseen.<\/p>\n<p>Jos LAS-tiedostot ovat ladattavissa FTP:lt\u00e4 kuten esimerkiksi Washingtonin yliopiston tapauksessa<\/p>\n<div lang=\"x-unicode\"><a href=\"ftp:\/\/lidar.wustl.edu\/from_WRC\/Franklin\/LAS_Files\/\" target=\"_blank\" rel=\"noopener\">ftp:\/\/lidar.wustl.edu\/from_WRC\/Franklin\/LAS_Files\/<\/a><\/div>\n<div lang=\"x-unicode\">niin 3 GB tiedostojen latauksen ja latauksen j\u00e4lkeisen zippauksen sijaan tiedostot voi pakata suoraan latauksen aikana ja n\u00e4in s\u00e4\u00e4st\u00e4\u00e4 koneen kiintolevy\u00e4. T\u00e4m\u00e4n operaation tekemiseksi tarvitaan &#8221;<a title=\"LAStools\" href=\"http:\/\/lastools.org\/\" target=\"_blank\" rel=\"noopener\">laszip.exe<\/a>&#8221; sek\u00e4 &#8221;curl.exe&#8221; (l\u00f6ytyy Google-haulla), jotka sitten ajetaan rinnakkain alla olevan esimerkin tapaan:<\/div>\n<div lang=\"x-unicode\">curl -s <a href=\"ftp:\/\/lidar.wustl.edu\/from_WRC\/Franklin\/LAS_Files\/38090e7_NW.las\" target=\"_blank\" rel=\"noopener\">ftp:\/\/lidar.wustl.edu\/from_WRC\/Franklin\/LAS_Files\/38090e7_NW.las<\/a> | laszip -stdin -o 38090e7_NW.laz<\/div>\n<div lang=\"x-unicode\">T\u00e4ll\u00e4 komennolla tiedosto  &#8221;38090e7_NW.las&#8221; kirjoitetaan latautuessaan koneelle suoraan muotoon &#8221;38090e7_NW.laz&#8221;. Operaation tehovaatimuksia voi samalla tarkkailla tiedostonhallinnasta ja  samalla voidaan arvioida pakkausuhde tarkastelemalla &#8221;I\/O Read Bytes&#8221; ja &#8221;I\/O Write Bytes&#8221;sarakkeita.<\/div>\n<div lang=\"x-unicode\"><a href=\"http:\/\/www.geocenter.fi.testwww.yritysweb.fi\/NGC\/blogi\/wp-content\/uploads\/2012\/08\/laszip_curl3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-386\" title=\"laszip &amp; curl\" src=\"http:\/\/www.geocenter.fi.testwww.yritysweb.fi\/NGC\/blogi\/wp-content\/uploads\/2012\/08\/laszip_curl3.png\" alt=\"\" width=\"500\" height=\"265\" srcset=\"https:\/\/geocenter.fi\/blogi\/wp-content\/uploads\/2012\/08\/laszip_curl3.png 811w, https:\/\/geocenter.fi\/blogi\/wp-content\/uploads\/2012\/08\/laszip_curl3-300x159.png 300w, https:\/\/geocenter.fi\/blogi\/wp-content\/uploads\/2012\/08\/laszip_curl3-624x331.png 624w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/div>\n<div lang=\"x-unicode\">Ohjelma toimii my\u00f6s k\u00e4\u00e4nteisesti, eli jos l\u00e4ht\u00f6tiedosto on .LAZ ja se halutaan ladattaessa muuttuu .LAS-muotoon.<\/div>\n<div lang=\"x-unicode\"><\/div>\n<div lang=\"x-unicode\">Samalla tavalla curl.exen ja lasinfo.exen avulla  voidaan tarkastella LAS-tiedoston tietoja lataamatta tiedostoa ollenkaan palvelimelta.curl -s <a href=\"ftp:\/\/lidar.wustl.edu\/from_WRC\/Franklin\/LAS_Files\/38090e7_NW.las\" target=\"_blank\" rel=\"noopener\">ftp:\/\/lidar.wustl.edu\/from_WRC\/Franklin\/LAS_Files\/38090e7_NW.las<\/a> | lasinfo -nc -stdin<\/p>\n<\/div>\n<div lang=\"x-unicode\"><\/div>\n<div lang=\"x-unicode\">Tulokseksi saadaan:<\/div>\n<div lang=\"x-unicode\">reporting all LAS header entries:<br \/>\nfile signature:             &#8217;LASF&#8217;<br \/>\nfile source ID:             0<br \/>\nglobal_encoding:            0<br \/>\nproject ID GUID data 1-4:   3507991416 36513 17806 &#8217;\u20a7{\u00fc\u00f7g\u2514\u2558p&#8217;<br \/>\nversion major.minor:        1.2<br \/>\nsystem identifier:          &#8217;NIIRS10&#8217;<br \/>\ngenerating software:        &#8217;LIDAR1 tiled&#8217;<br \/>\nfile creation day\/year:     243\/2011<br \/>\nheader size:                227<br \/>\noffset to point data:       4746<br \/>\nnumber var. length records: 5<br \/>\npoint data format:          1<br \/>\npoint data record length:   28<br \/>\nnumber of point records:    11910401<br \/>\nnumber of points by return: 9643615 1613716 550472 102598 0<br \/>\nscale factor x y z:         0.01 0.01 0.01<br \/>\noffset x y z:               0 0 0<br \/>\nmin x y z:                  686488.13 4270318.00 120.44<br \/>\nmax x y z:                  690642.00 4272813.32 659.85<br \/>\nvariable length header record 1 of 5:<br \/>\nreserved             43707<br \/>\nuser ID              &#8217;LASF_Projection&#8217;<br \/>\nrecord ID            34735<br \/>\nlength after header  192<br \/>\ndescription          &#8217;GeoTiff Projection Keys&#8217;<br \/>\nGeoKeyDirectoryTag version 1.1.0 number of keys 23<br \/>\nkey 1024 tiff_tag_location 0 count 1 value_offset 1 &#8211; GTModelTypeGeoKey: ModelTypeProjected<br \/>\nkey 2048 tiff_tag_location 0 count 1 value_offset 4269 &#8211; GeographicTypeGeoKey: GCS_NAD83<br \/>\nkey 2049 tiff_tag_location 34737 count 24 value_offset 48 &#8211; GeogCitationGeoKey: GCS_North_American_1983<br \/>\nkey 2050 tiff_tag_location 0 count 1 value_offset 6269 &#8211; GeogGeodeticDatumGeoKey: Datum_North_American_Datum_1983<br \/>\nkey 2051 tiff_tag_location 0 count 1 value_offset 8901 &#8211; GeogPrimeMeridianGeoKey: PM_Greenwich<br \/>\nkey 2054 tiff_tag_location 0 count 1 value_offset 9102 &#8211; GeogAngularUnitsGeoKey: Angular_Degree<br \/>\nkey 2055 tiff_tag_location 34736 count 1 value_offset 9 &#8211; GeogAngularUnitSizeGeoKey: 0.01745329252<br \/>\nkey 2056 tiff_tag_location 0 count 1 value_offset 7019 &#8211; GeogEllipsoidGeoKey: Ellipse_GRS_1980<br \/>\nkey 2057 tiff_tag_location 34736 count 1 value_offset 6 &#8211; GeogSemiMajorAxisGeoKey: 6378137<br \/>\nkey 2059 tiff_tag_location 34736 count 1 value_offset 7 &#8211; GeogInvFlatteningGeoKey: 298.2572221<br \/>\nkey 2061 tiff_tag_location 34736 count 1 value_offset 8 &#8211; GeogPrimeMeridianLongGeoKey: 0<br \/>\nkey 3072 tiff_tag_location 0 count 1 value_offset 26915 &#8211; ProjectedCSTypeGeoKey: PCS_NAD83_UTM_zone_15N<br \/>\nkey 3073 tiff_tag_location 34737 count 22 value_offset 0 &#8211; PCSCitationGeoKey: NAD_1983_UTM_Zone_15N<br \/>\nkey 3075 tiff_tag_location 0 count 1 value_offset 1 &#8211; ProjCoordTransGeoKey: CT_TransverseMercator<br \/>\nkey 3076 tiff_tag_location 0 count 1 value_offset 9001 &#8211; ProjLinearUnitsGeoKey: Linear_Meter<br \/>\nkey 3077 tiff_tag_location 34736 count 1 value_offset 5 &#8211; ProjLinearUnitSizeGeoKey: 1<br \/>\nkey 3081 tiff_tag_location 34736 count 1 value_offset 4 &#8211; ProjNatOriginLatGeoKey: 0<br \/>\nkey 3082 tiff_tag_location 34736 count 1 value_offset 0 &#8211; ProjFalseEastingGeoKey: 500000<br \/>\nkey 3083 tiff_tag_location 34736 count 1 value_offset 1 &#8211; ProjFalseNorthingGeoKey: 0<br \/>\nkey 3088 tiff_tag_location 34736 count 1 value_offset 2 &#8211; ProjCenterLongGeoKey: -93<br \/>\nkey 3092 tiff_tag_location 34736 count 1 value_offset 3 &#8211; ProjScaleAtNatOriginGeoKey: 0.9996<br \/>\nkey 4097 tiff_tag_location 34737 count 26 value_offset 22 &#8211; VerticalCitationGeoKey: NAVD88 &#8211; Geoid03 (Meters)<br \/>\nkey 4099 tiff_tag_location 0 count 1 value_offset 9001 &#8211; VerticalUnitsGeoKey: Linear_Meter<br \/>\nvariable length header record 2 of 5:<br \/>\nreserved             43707<br \/>\nuser ID              &#8217;LASF_Projection&#8217;<br \/>\nrecord ID            34736<br \/>\nlength after header  80<br \/>\ndescription          &#8217;GeoTiff double parameters&#8217;<br \/>\nGeoDoubleParamsTag (number of doubles 10)<br \/>\n500000 0 -93 0.9996 0 1 6.37814e+006 298.257 0 0.0174533<br \/>\nvariable length header record 3 of 5:<br \/>\nreserved             43707<br \/>\nuser ID              &#8217;LASF_Projection&#8217;<br \/>\nrecord ID            34737<br \/>\nlength after header  73<br \/>\ndescription          &#8217;GeoTiff ASCII parameters&#8217;<br \/>\nGeoAsciiParamsTag (number of characters 73)<br \/>\nNAD_1983_UTM_Zone_15N|NAVD88 &#8211; Geoid03 (Meters)|GCS_North_American_1983|<br \/>\nvariable length header record 4 of 5:<br \/>\nreserved             43707<br \/>\nuser ID              &#8217;NIIRS10&#8217;<br \/>\nrecord ID            4<br \/>\nlength after header  10<br \/>\ndescription          &#8217;NIIRS10 Timestamp&#8217;<br \/>\nvariable length header record 5 of 5:<br \/>\nreserved             43707<br \/>\nuser ID              &#8217;NIIRS10&#8217;<br \/>\nrecord ID            1<br \/>\nlength after header  26<br \/>\ndescription          &#8217;NIIRS10 Tile Index&#8217;<br \/>\nthe header is followed by 3868 user-defined bytes<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Martin Isenburgilta saapui p\u00e4iv\u00e4n vinkki LAZ-kompressointia tekeville eli siis LAS-tiedostojen zippaukseen. Jos LAS-tiedostot ovat ladattavissa FTP:lt\u00e4 kuten esimerkiksi Washingtonin yliopiston tapauksessa ftp:\/\/lidar.wustl.edu\/from_WRC\/Franklin\/LAS_Files\/ niin 3 GB tiedostojen latauksen ja latauksen j\u00e4lkeisen zippauksen sijaan tiedostot voi pakata suoraan latauksen aikana ja n\u00e4in s\u00e4\u00e4st\u00e4\u00e4 koneen kiintolevy\u00e4. T\u00e4m\u00e4n operaation tekemiseksi tarvitaan &#8221;laszip.exe&#8221; sek\u00e4 &#8221;curl.exe&#8221; (l\u00f6ytyy Google-haulla), jotka sitten ajetaan [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-382","post","type-post","status-publish","format-standard","hentry","category-laserkeilaus"],"_links":{"self":[{"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/posts\/382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/comments?post=382"}],"version-history":[{"count":0,"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/posts\/382\/revisions"}],"wp:attachment":[{"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/media?parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/categories?post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geocenter.fi\/blogi\/wp-json\/wp\/v2\/tags?post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}