{"id":60,"date":"2018-08-02T13:48:36","date_gmt":"2018-08-02T11:48:36","guid":{"rendered":"http:\/\/sigeodev.cerege.fr\/?p=60"},"modified":"2020-08-24T14:01:27","modified_gmt":"2020-08-24T12:01:27","slug":"points2grid","status":"publish","type":"post","link":"https:\/\/sigeo.cerege.fr\/?p=60","title":{"rendered":"Points2Grid"},"content":{"rendered":"<h1 id=\"page-title\" class=\"title\">Points2Grid : A Local Gridding Method for DEM Generation from Lidar Point Cloud Data<\/h1>\n<p><a href=\"https:\/\/opentopography.org\/otsoftware\/points2grid\">site<\/a><\/p>\n<p>Points2Grid is used as the default DEM generation algorithm for the <a title=\"OpenTopography point cloud processing system\" href=\"http:\/\/opentopography.org\/data\">OpenTopography point cloud processing system<\/a><\/p>\n<p>here is how-to install and use.<\/p>\n<h2>Install<\/h2>\n<ul>\n<li>be sure to have Linux, or to install Linux under Windows =&gt; <a href=\"https:\/\/docs.microsoft.com\/fr-fr\/windows\/wsl\/install-win10\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.microsoft.com\/fr-fr\/windows\/wsl\/install-win10<\/a><\/li>\n<li>install following libraries : build-essential ; gdal-bin ; libcurl4-gnutls-dev ; libboost-all-dev ; libbz2-dev;<code><\/code><\/li>\n<\/ul>\n<p><code>sudo apt-get update<\/code><\/p>\n<p><code>sudo apt-get install build-essential gdal-bin libcurl4-gnutls-dev libbz2-dev libboost-all-dev\u00a0\u00a0<\/code><\/p>\n<ul>\n<li>get the source code : <a href=\"https:\/\/github.com\/CRREL\/points2grid\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/CRREL\/points2grid\/<\/a> . Use either git clone, either download ZIP archive<\/li>\n<li>go into the\u00a0 points2grid directory<\/li>\n<li>follow the steps indicated in INSTALL.md, which basically were for me:<code><\/code><\/li>\n<\/ul>\n<p style=\"padding-left: 80px;\"><code><br \/>\nsudo\u00a0mkdir\u00a0build<\/code><code><br \/>\ncd\u00a0build<\/code><br \/><code>sudo cmake ..<\/code> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0#check no error message in this step and followings<br \/><code>sudo\u00a0make<\/code><br \/><code>sudo\u00a0make\u00a0install<\/code><\/p>\n<ul>\n<li>add to file ~\/.bashrc<\/li>\n<\/ul>\n<p><code>export PATH=$PATH:\/usr\/local\/bin<br \/>LD_LIBRARY_PATH=\/usr\/local\/lib<br \/>export LD_LIBRARY_PATH<\/code><\/p>\n<ul>\n<li>If no error message, you&#8217;re done. Test it by running inside the build directory the command:<\/li>\n<\/ul>\n<p style=\"padding-left: 80px;\"><code>.\/points2grid --help<\/code><\/p>\n<p style=\"padding-left: 40px;\">This shoud write down the full help message<\/p>\n<h2>Use<\/h2>\n<ul>\n<li>Use las point cloud as input, if you have LAZ convert it with for example with Lastools: <br \/><code>LAStools\\bin\\las2las -i .\\20200311_MA_GCP12.laz -o .\\20200311_MA_GCP12.las<\/code><\/li>\n<li>Gridding example command :<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\"><code>.\/points2grid -i \u00a0\/path_to_input\/20200311_MA_GCP12.las \u00a0-o \/path_to_output -r 0.0707 --input_format las --all --resolution 0.1 --fill<\/code><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><code><\/code>options :<br \/>-r : search radius, which usually is calculated as : resolution*sqrt(2)\/2<br \/>&#8211;fill : fill empty cells using a 3&#215;3 window<br \/>&#8211;all : all the possible calculation are made (see below)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>as output, one can get, Oh Miracle!, the following calculation in asc or grid format :<\/p>\n<p style=\"padding-left: 40px;\">&#8211;min\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the\u00a0Zmin\u00a0values\u00a0are\u00a0stored<br \/>&#8211;max\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the\u00a0Zmax\u00a0values\u00a0are\u00a0stored<br \/>&#8211;mean\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the\u00a0Zmean\u00a0values\u00a0are\u00a0stored<br \/>&#8211;idw\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the\u00a0Zidw\u00a0values\u00a0are\u00a0stored<br \/>&#8211;std\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the\u00a0Zstd\u00a0values\u00a0are\u00a0stored<br \/>&#8211;den\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the\u00a0density\u00a0values\u00a0are\u00a0stored<br \/>&#8211;all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0all\u00a0the\u00a0values\u00a0are\u00a0stored\u00a0(default)<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Points2Grid : A Local Gridding Method for DEM Generation from Lidar Point Cloud Data site Points2Grid is used as the default DEM generation algorithm for the OpenTopography point cloud processing system here is how-to install and use. Install be sure to have Linux, or to install Linux under Windows =&gt; https:\/\/docs.microsoft.com\/fr-fr\/windows\/wsl\/install-win10 install following libraries : &hellip; <a href=\"https:\/\/sigeo.cerege.fr\/?p=60\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Points2Grid&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-lidar"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":7,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions\/528"}],"wp:attachment":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}