{"id":1692,"date":"2022-01-31T20:47:42","date_gmt":"2022-01-31T19:47:42","guid":{"rendered":"https:\/\/hannes.enjoys.it\/blog\/?p=1692"},"modified":"2022-07-22T17:39:54","modified_gmt":"2022-07-22T15:39:54","slug":"converting-geotiff-to-las-laz","status":"publish","type":"post","link":"https:\/\/hannes.enjoys.it\/blog\/2022\/01\/converting-geotiff-to-las-laz\/","title":{"rendered":"Converting GeoTIFF to LAS\/LAZ"},"content":{"rendered":"\n<p>Converting GeoTIFF to LAS\/LAZ is as easy as this thanks to <a href=\"https:\/\/pdal.io\/\">pdal<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">pdal translate in.tif out.laz --reader gdal --readers.gdal.header=\"z\"<\/code><\/pre>\n\n\n\n<p>if it is a one band raster you want to convert. For others you will have to adjust the <code>readers.gdal.header<\/code> part, e.g. to <code>--readers.gdal.header=\"Red, Green, Blue\"<\/code>. See <a href=\"https:\/\/pdal.io\/stages\/readers.gdal.html\">https:\/\/pdal.io\/stages\/readers.gdal.html<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converting GeoTIFF to LAS\/LAZ is as easy as this thanks to pdal: if it is a one band raster you want to convert. For others you will have to adjust the readers.gdal.header part, e.g. to &#8211;readers.gdal.header=&#8221;Red, Green, Blue&#8221;. See https:\/\/pdal.io\/stages\/readers.gdal.html.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,24,29,55,40],"tags":[],"class_list":["post-1692","post","type-post","status-publish","format-standard","hentry","category-commandline","category-gdal","category-gis","category-raster","category-small-things"],"_links":{"self":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/comments?post=1692"}],"version-history":[{"count":2,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1692\/revisions"}],"predecessor-version":[{"id":1764,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1692\/revisions\/1764"}],"wp:attachment":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/media?parent=1692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/categories?post=1692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/tags?post=1692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}