[pdal] Splitting COPC file into fixed-size tiles

Andrew Bell andrew.bell.ia at gmail.com
Mon May 5 10:06:30 PDT 2025


Hi Aurélien,

If you can reproduce a problem, I'd suggest opening an issue with details.

The following worked fine for me. You can run this for yourself if you
clone the `pdaldata` git repository:

[
    {
        "filename": "pdaldata/workshop/autzen.laz"
    },
    {
        "type":"filters.splitter",
        "origin_x": 636000,
        "origin_y":850000,
        "length":1000
    },
    {
        "type": "writers.las",
        "filename": "TestAutzen#.laz"
    }
]

This appeared to create 25 point views as I got 25 files of output.

On Mon, May 5, 2025 at 3:19 AM Aurélien Bertron <
aurelien.bertron at aegir-ingenierie.fr> wrote:

> Hello Andrew,
>
> If I don't set the origin, I get multiple PointViews as expected. My
> question was about setting the origin outside the bounding box of my
> points. In that case I only get one PointView. Am I wrong to expect the
> points to be splitted in multiple PointViews of size 5000m starting at the
> origin I set?
>
> Regards,
>
> Aurélien Bertron
>
> *CTO **ÆGIR*
> w: aegir-ingenierie.fr  e: aurelien.bertron at aegir-ingenierie.fr
> On 4/30/25 16:55, Andrew Bell wrote:
>
> Hi,
>
> I would think this would work. The origin is up to you. If you don't
> supply an origin, the X/Y coordinates of the first point is used.
>
> I can't help more with the information you've provided.
>
> On Wed, Apr 30, 2025 at 10:35 AM Aurélien Bertron via pdal <
> pdal at lists.osgeo.org> wrote:
>
>> I work with COPC files and I would like to subdivide my points into
>> squared tiles with fixed length of about 5km.
>>
>> My pipeline produces files with points scattered into an area that is
>> greater than a 5km tile, I would like to split them following the tile grid
>> I already have then merge the new points into the existing tiles.
>>
>> I tried using the "splitter" filter with a length of 5000m but I don't
>> understand how the origin is supposed to be set. My thought was to set it
>> to the origin of one of the tiles I already have, but the filter keeps all
>> the points in one PointView. Is this filter the right tool for the job?
>>
>> Regards,
>> --
>>
>> Aurélien Bertron
>>
>> *CTO **ÆGIR*
>> w: aegir-ingenierie.fr  e: aurelien.bertron at aegir-ingenierie.fr
>> _______________________________________________
>> pdal mailing list
>> pdal at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/pdal
>>
>
>
> --
> 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/20250505/f4f97831/attachment.htm>


More information about the pdal mailing list