[pdal] pdal translate cropping problem/question
Stefan Ziegler
stefan.ziegler.de at gmail.com
Mon Aug 17 12:33:09 PDT 2015
Then I get:
PDAL: the argument ('([593000, 594000], [227000, 228000])') for option
'--bounds' is invalid
Looking at the source: pdal translate wants a BOX3D, the crop filter a
BOX2D. Is this the reason for this error message?
regards
Stefan
On Mon, Aug 17, 2015 at 8:33 PM, Andrew Bell <andrew.bell.ia at gmail.com>
wrote:
> Do you get the same behavior if you specify the bounds box explicitly,
> rather than specifying as a polygon?
>
> As in:
>
> pdal translate -i LAS_593227.laz -o LAS_593227_t.laz --bounds "([593000,
> 594000], [227000, 228000])"
>
>
>
> On Mon, Aug 17, 2015 at 8:04 AM, Stefan Ziegler <
> stefan.ziegler.de at gmail.com> wrote:
>
>> 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.
>>
>> Like you would "gdal_translate -projwin" some raster where -projwin is
>> the bbox of the raster and get not the whole raster.
>>
>> Stefan
>>
>> On Mon, Aug 17, 2015 at 1:48 PM, Andrew Bell <andrew.bell.ia at gmail.com>
>> wrote:
>>
>>> On Fri, Aug 14, 2015 at 1:55 PM, Stefan Ziegler <
>>> stefan.ziegler.de at gmail.com> wrote:
>>>
>>>> Hi
>>>>
>>>> I noticed that I get different results when I translate a las file with
>>>> or without cropping with its own boundary:
>>>>
>>>> pdal translate -i LAS_593227.laz -o LAS_593227_t.laz
>>>>
>>>> Same count of points and same metadata for input and output file.
>>>>
>>>> pdal translate -i LAS_593227.laz -o LAS_593227_t.laz --polygon
>>>> "Polygon ((593000 227000, 594000 227000, 594000 228000, 593000 228000,
>>>> 593000 227000))"
>>>>
>>>> Less points because minx=593000.01 and miny=227000.01. Scale is 0.01.
>>>>
>>>
>>> I don't understand the issue. What are the coordinates of the points
>>> that aren't in the cropped output?
>>>
>>> --
>>> Andrew Bell
>>> andrew.bell.ia at gmail.com
>>>
>>
>>
>
>
> --
> Andrew Bell
> andrew.bell.ia at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20150817/33c1a8dc/attachment.html>
More information about the pdal
mailing list