PDAL / PDAL

PDAL is Point Data Abstraction Library. GDAL for point cloud data.

Home Page:https://pdal.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code using pdal::Raster can crash with very large rasters

abellgithub opened this issue · comments

The following pipeline exposes the problem:

{
    "pipeline":
        [
            {
                "asset_names": "ept.json",
                "bounds": {
                    "crs": "EPSG:4326",
                    "maxx":-77.66195866801849,
                    "maxy":40.82354804600868,
                    "maxz":5000,
                    "minx":-78.57453915931029,
                    "miny":40.215941356326766,
                    "minz":-5000
                },
                "filename": "https://s3-us-west-2.amazonaws.com/usgs-lidar-stac/ept/item_collection.json",
                "reader_args": {
                    "bounds": {
                        "crs":"EPSG:4326",
                        "maxx":-77.66195866801849,
                        "maxy":40.82354804600868,
                        "maxz":5000,
                        "minx":-78.57453915931029,
                        "miny":40.215941356326766,
                        "minz":-5000
                    },
                    "resolution":100,
                    "threads":2,
                    "type":"readers.ept"
                },
                "tag": "readers_stac1",
                "threads": "16",
                "type": "readers.stac"
            },
            {
                "inputs": ["readers_stac1"],
                "limits": "Classification[0:6],Classification[17:17],Classification[9:9],Classification[10:10],Classification[11:11]",
                "tag": "filters_range1",
                "type": "filters.range"
            },
            {
                "data_type": "float32",
                "dimension": "Z",
                "filename": "dsm.tif",
                "inputs": ["filters_range1"],
                "nodata": "0",
                "output_type": "mean",
                "resolution": "1",
                "tag": "writers_gdal1",
                "type": "writers.gdal"
            }
    ]
}