0

How can I use the "ogr" option in "readers.copc"?

My pipeline is :

[
    {
        "type":"readers.copc",
        "ogr": [{
            "drivers": "ESRI Shapefile",
            "layer":"\\\\my_server\\my_folder\\my_subfolder\\my_layer.shp"
            }]
    },
    {
        "type": "writers.las",
        "forward": "all"
    }

]

Verbose said : "PDAL: [json.exception.out_of_range.403] key 'datasource' not found"

Maybe it's not so simple as "write a file path" but I tried many things and I can't find how to do it.

1 Answer 1

-1

You need datasource to point to the shapefile instead of layer. See the PDAL test suite for inspiration.

2
  • Hello, thank you for the answer. Sorry I didn't react sooner. I'll try it later.
    – fg13
    Commented Aug 10, 2023 at 13:47
  • Sorry Howard, but it didn’t help me. I can’t understand how to use the pdal test for inspiration. I just used « datasource » instead of « layer ». The verbose is : « [json exception.type-error.302] type must be array but is string. » What makes me even more confused is that PDAL’s guide don’t talk about « datasource ». pdal.io/en/2.6.3/stages/readers.copc.html ogr option arguments are given as : { "drivers": "openoptions": "layer": "sql": "options": { "geometry", "WKT or GeoJSON geomtry used to filter query [optional]" } } Thank you
    – fg13
    Commented Feb 18 at 23:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.