<div dir="ltr"><div>Then I get:<br><br>PDAL: the argument ('([593000, 594000], [227000, 228000])') for option '--bounds' is invalid<br><br><br></div><div>Looking at the source: pdal translate wants a BOX3D, the crop filter a BOX2D. Is this the reason for this error message?<br><br></div><div>regards<br></div><div>Stefan <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 17, 2015 at 8:33 PM, Andrew Bell <span dir="ltr"><<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Do you get the same behavior if you specify the bounds box explicitly, rather than specifying as a polygon?<div><br></div><div>As in:</div><div><br></div><div><span style="font-size:12.8000001907349px">pdal translate -i LAS_593227.laz -o LAS_593227_t.laz  --bounds "([593000, 594000], [227000, 228000])"</span></div><div><div><br></div><div><br></div></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Mon, Aug 17, 2015 at 8:04 AM, Stefan Ziegler <span dir="ltr"><<a href="mailto:stefan.ziegler.de@gmail.com" target="_blank">stefan.ziegler.de@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'd guess they lie near the border. The polygon is the boundary generated with "pdal tindex" for this las file so this is why I think it's strange that cropping a las file with its own boundary delivers not all points in this las file.<br><br></div><div>Like you would "gdal_translate -projwin" some raster where -projwin is the bbox of the raster and get not the whole raster.<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div>Stefan<br></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 17, 2015 at 1:48 PM, Andrew Bell <span dir="ltr"><<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Fri, Aug 14, 2015 at 1:55 PM, Stefan Ziegler <span dir="ltr"><<a href="mailto:stefan.ziegler.de@gmail.com" target="_blank">stefan.ziegler.de@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi <br><br></div>I noticed that I get different results when I translate a las file with or without cropping with its own boundary:<br><br>pdal translate -i LAS_593227.laz -o LAS_593227_t.laz<br><br></div>Same count of points and same metadata for input and output file.<br><br></div>pdal translate -i LAS_593227.laz -o LAS_593227_t.laz  --polygon "Polygon ((593000 227000, 594000 227000, 594000 228000, 593000 228000, 593000 227000))"<br><br></div>Less points because minx=593000.01 and miny=227000.01. Scale is 0.01.<br></div></div></div></div></blockquote><div><br></div></span><div>I don't understand the issue.  What are the coordinates of the points that aren't in the cropped output?</div><span><font color="#888888"><div><br></div><div>-- <br></div></font></span></div><span><font color="#888888"><div>Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</font></span></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</font></span></div>
</blockquote></div><br></div>