[pdal] filters.stats output

Benjamin Gross mbgross at unavco.org
Wed Nov 30 16:05:44 PST 2016


Hi Andrew,
Thank you, that’s exactly what I was looking for. 

I was trying to access the stats with something like this:
$ pdal pipeline /data/pointcount.json 
where pointcount.json is:

{
  "pipeline":[
    "/data/input.las",
    {
      "type":"filters.stats",
      "dimensions":"Classification",
      "enumerate":"Classification",
      "count":"Classification"
    },
    {
      "type":"writers.text",
      "filename":"STDOUT"
    }
  ]
}

Thanks for your help,
Benjamin


> On Nov 30, 2016, at 4:56 PM, Andrew Bell <andrew.bell.ia at gmail.com> wrote:
> 
> I should have added the output:
> 
> $ bin/pdal info --stats myfile.las --filters.stats.dimensions=Classification --filters.stats.count=Classification
> {
>   "filename": "..\/test\/data\/las\/autzen_trim.las",
>   "pdal_version": "1.3.0 (git-version: 3ca196)",
>   "stats":
>   {
>     "statistic":
>     [
>       {
>         "average": 1.237336364,
>         "count": 110000,
>         "counts":
>         [
>           "1.000000\/83893",
>           "2.000000\/26107"
>         ],
>         "kurtosis": -4.857351452e+15,
>         "maximum": 2,
>         "minimum": 1,
>         "name": "Classification",
>         "position": 0,
>         "skewness": 2.177023909e+15,
>         "stddev": 0.4254905513,
>         "variance": 0.1810422092
>       }
>     ]
>   }
> }
> 
> On Wed, Nov 30, 2016 at 5:55 PM, Andrew Bell <andrew.bell.ia at gmail.com <mailto:andrew.bell.ia at gmail.com>> wrote:
> I'm not sure exactly what you're doing, but if you're trying to get the data using the command-line application, perhaps something like this is what you want:
> 
> $ bin/pdal info --stats myfile.las --filters.stats.dimensions=Classification --filters.stats.count=Classification
> 
> On Wed, Nov 30, 2016 at 5:46 PM, Benjamin Gross <mbgross at unavco.org <mailto:mbgross at unavco.org>> wrote:
> Hi all,
> 
> I’m new to using pdal and have what I hope is a very basic question. I’m trying to use filters.stats to output a summary of classes in a point cloud and the number of points per class as suggested on https://github.com/PDAL/PDAL/issues/955 <https://github.com/PDAL/PDAL/issues/955>. But I’m not sure how to access the output of filters.stats. I tried to set up a pipeline as in the example, but the header in the output las doesn’t seem to include the new aggregate stats. If I change the output to text or STDOUT I only get the points back and furthermore it has all dimensions, not just those specified by the filters.stats dimensions field. What am I missing? Thanks for the help,
> 
> Benjamin
> 
> 
> 
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org <mailto:pdal at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/pdal <http://lists.osgeo.org/mailman/listinfo/pdal>
> 
> 
> 
> -- 
> Andrew Bell
> andrew.bell.ia at gmail.com <mailto:andrew.bell.ia at gmail.com>
> 
> 
> -- 
> Andrew Bell
> andrew.bell.ia at gmail.com <mailto:andrew.bell.ia at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20161130/4bbe6543/attachment.html>


More information about the pdal mailing list