[pdal] Encountering error - PDAL: filters.crop: Unable to reproject bounds.
Abhineet Gupta
abhineet at oneconcern.com
Tue Jun 2 12:27:10 PDT 2020
Removed the chipper filter, and changed the writer to a standard text
writer for simplicity.
Same error in the crop filter.
On Tue, Jun 2, 2020 at 12:21 PM Andrew Bell <andrew.bell.ia at gmail.com>
wrote:
> Do you get the same error without the chipper filter?
>
> On Tue, Jun 2, 2020 at 3:08 PM Abhineet Gupta <abhineet at oneconcern.com>
> wrote:
>
>> Thanks for the suggestion, Jim.
>>
>> However, same error.
>>
>> On Tue, Jun 2, 2020 at 12:01 PM Jim Klassen <klassen.js at gmail.com> wrote:
>>
>>> Quick, guess: Try swapping lon and lat in the bounds. It might be
>>> expecting lat, lon to follow the canonical 4326 axis order.
>>> On 6/2/20 1:54 PM, Abhineet Gupta wrote:
>>>
>>> Hello
>>>
>>> I am trying to read in a laz file, crop the input if it is outside
>>> certain bounds, and write it to a postgres db. The reading and writing
>>> parts are working fine, however when using filters.crop, I get the
>>> error -
>>> PDAL: filters.crop: Unable to reproject bounds.
>>>
>>> I am using standard SRS, input is in EPSG:26910, and I am using
>>> EPSG:4326 for specifying the crop bounds. I think one solution will be to
>>> reproject the bound coordinates to EPSG:23910 outside PDAL, and specify
>>> crop bounds in the same SRS as the input, however, I would prefer to input
>>> the bounds as lat-long coordinates, if possible.
>>>
>>> I have copied my pipeline file below for reference.
>>>
>>> I would appreciate it if anyone has any suggestions about how to fix
>>> this error.
>>>
>>> Thanks
>>> Abhineet
>>>
>>> ######### pipeline.json #########
>>> {
>>> "pipeline":[
>>> {
>>> "type":"readers.las",
>>> "filename":"laz/ARRA-CA_GoldenGate_2010_001019.laz",
>>> "spatialreference":"EPSG:26910"
>>> },
>>> {
>>> "type":"filters.chipper",
>>> "capacity":600
>>> },
>>> {
>>> "type":"filters.crop",
>>> "bounds":"([-122.530, -122.347], [37.695, 37.816])",
>>> "a_srs":"EPSG:4326"
>>> },
>>> {
>>> "type":"writers.pgpointcloud",
>>> "connection":"host='postgres-pdal' dbname='devpt' user='postgres'
>>> password='devpt_temp' port='5432'",
>>> "table":"temp",
>>> "compression":"dimensional",
>>> "srid":"26910"
>>> }
>>> ]
>>> }
>>>
>>>
>>> _______________________________________________
>>> pdal mailing listpdal at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/pdal
>>>
>>> _______________________________________________
>>> pdal mailing list
>>> pdal at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/pdal
>>
>> _______________________________________________
>> pdal mailing list
>> pdal at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/pdal
>
>
>
> --
> Andrew Bell
> andrew.bell.ia at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20200602/44492d4a/attachment.html>
More information about the pdal
mailing list