[pdal] writers.las unable to convert scaled value

Rebecca Clarke rebecca at clarke.net.nz
Wed Aug 21 21:50:37 PDT 2019


Hi Adam,

I ran lasinfo on the las file and get the following result:
Z                3696      58127

What would be the best way to determine if the geoid is introducing any
divide-by-zeros?

I loaded the gtx into postgis and these are the results from using the
ST_SummaryStats:

'count' 'sum' 'mean' 'stddev' 'min' 'max'
14364 | 4215.86899040639 | 0.293502435979281 | 0.0288004424645927 |
0.17399999499321 | 0.49099999666214

Cheers

Rebecca

On Thu, Aug 22, 2019 at 3:50 PM adam steer <adam.d.steer at gmail.com> wrote:

> Hi Rebecca
>
> What are the min and max Z values for your laz file? does it have a sneaky
> infinite value in there?
>
> …and is your geoid grid introducing any divide-by-zeros to create
> un-handleable values?
>
> Cheers
>
> Adam
>
>
> On Thu, 22 Aug 2019 at 13:03, Rebecca Clarke <rebecca at clarke.net.nz>
> wrote:
>
>> Kia ora PDAL’ers
>>
>> I am trying to reproject a LAS file using the following command and JSON
>> file.
>>
>> pdal pipeline reproject.json --readers.las.filename=BC36_2316.las
>> --writers.las.filename=BC36_2316_reprojected.las
>> --filters.reprojection.out_srs="+init=epsg:4167
>> +geoidgrids='moturiki-1953-to-nzvd2016-conversion.gtx'"
>>
>>
>> {
>>     "pipeline" :
>>     [
>>         {
>>             "type":"readers.las",
>>             "filename":"#"
>>         },
>>         {
>>             "type":"filters.reprojection",
>>             "in_srs":"EPSG:4167",
>>             "out_srs":"EPSG:4167"
>>         },
>>         {
>>             "type":"writers.las",
>>             "filename":"#",
>>             "a_srs":"EPSG:4167",
>>             "forward":"header",
>>             "scale_x":"0.01",
>>             "scale_y":"0.01",
>>             "scale_z":"0.01"
>>         }
>>     ]
>> }
>>
>>
>> I'm getting this error and no amount of googling has helped me find a
>> solution.
>>
>>
>> PDAL: writers.las: Unable to convert scaled value (-Infinity) to int32
>> for dimension 'Z' when writing LAS/LAZ file ...
>>
>> Any help would be much appreciated.
>>
>> Rebecca
>>
>>
>> _______________________________________________
>> pdal mailing list
>> pdal at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/pdal
>
>
>
> --
> Dr. Adam Steer
> http://spatialised.net
> https://www.researchgate.net/profile/Adam_Steer
> http://au.linkedin.com/in/adamsteer
> http://orcid.org/0000-0003-0046-7236
> +61 427 091 712 ::  @adamdsteer
>
> Suits are bad for business: http://www.spatialised.net/business-penguins/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20190822/203d1ef2/attachment-0001.html>


More information about the pdal mailing list