<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Andrew,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Thanks for the excellent feedback. We'll experiment with increasing the size of the raster and cropping it.
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
kind regards, Lars</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<hr tabindex="-1" style="width: 98%; display: inline-block;">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11pt;"><b>Fra:</b> Andrew Bell <andrew.bell.ia@gmail.com><br>
<b>Sendt:</b> mandag 13. august 2018 15.32<br>
<b>Til:</b> Lars<br>
<b>Kopi:</b> pdal@lists.osgeo.org<br>
<b>Emne:</b> Re: [pdal] GDAL Writer artifacts along edge of tile</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I'm not sure that there's enough information here for me to help you.  You'll have to be specific about how the counts are different than you expect, how you're creating your tiles and reassembling them.  Keep in mind that points outside the provided bounds
 aren't considered when making the raster.  This typically means that some points that would be considered as contributing to a cell will get discarded when that cell is on the edge of the raster.  You're probably better off making the bounds one cell larger
 than you need (depending on the radius argument), and then trimming those edge cells away with GDAL or some such.  This is behavior that could be changed, but I believe that when I wrote the code, I was trying to keep it consistent with points2grid, which
 was the software that PDAL originally used to create rasters.</div>
<div><br>
</div>
<div>Hope that helps,</div>
<div><br>
</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Mon, Aug 13, 2018 at 8:15 AM, Lars <span dir="ltr">
<<a href="mailto:laasunde@hotmail.com" target="_blank">laasunde@hotmail.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">
<div dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Hello,
<p align="LEFT" style="font-size: 12pt; margin-top: 0px; margin-bottom: 0px;" dir="LTR">
<br>
</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"></p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR">We have created a pipeline using pgpointcloud reader and gdal writer (see attached file).</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"></p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"><br>
</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR">Using the pipeline to create a full raster for an area works great. However if we tile the same area we are seeing some 'artifacts' along the edge of the raster (band 5, Count). The count
 is different along the edges of the tiled raster compared with a full raster (see attached screenshot taken from QGis showing band 5 of rasters).</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"><br>
</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"></p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR">We use the 'where' option in the reader.pgpointcloud to provide points that is writer.gdal.bounds + margin.
</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"></p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"><br>
</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR">We would like to know why these 'artifacts' occur and how to prevent them from happening?</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"></p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR"><br>
</p>
<p align="LEFT" style="margin-top: 0px; margin-bottom: 0px;" dir="LTR">kind regards, Lars</p>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" target="_blank" rel="noreferrer">https://lists.osgeo.org/<wbr>mailman/listinfo/pdal</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_gmail_signature">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>
</div>
</body>
</html>