[pdal] Encountering error - PDAL: filters.crop: Unable to reproject bounds.
Abhineet Gupta
abhineet at oneconcern.com
Tue Jun 2 13:30:26 PDT 2020
Thanks a lot Andrew. Specifying the Z-dimension like you suggested worked.
On Tue, Jun 2, 2020 at 12:45 PM Andrew Bell <andrew.bell.ia at gmail.com>
wrote:
> In the meantime, you can specify a Z dimension. For example: ([-122.53,
> -122.347], [37.695, 37.816], [-1000, 1000])
>
> On Tue, Jun 2, 2020 at 3:41 PM Andrew Bell <andrew.bell.ia at gmail.com>
> wrote:
>
>> This is a bug that was introduced when we added 3D box filtering. I'll
>> open a ticket and fix shortly.
>>
>> On Tue, Jun 2, 2020 at 3:27 PM Abhineet Gupta <abhineet at oneconcern.com>
>> wrote:
>>
>>> 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
>>>>
>>>
>>
>> --
>> 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/20200602/38c310cc/attachment.html>
More information about the pdal
mailing list