These are chat archives for PDAL/PDAL

23rd
May 2017
Michael Rosen
@mrosen
May 23 2017 19:07
I'm using a simple pipeline with the "filters.range" filter to segment out classified points. Works just fine for classification values 2 - 5. Fails silently (0 points and corrupt file) for classification value 25. Thought on this? The las input is using classification flags.
{
  "pipeline":[
    {
      "type":"readers.las",
      "filename":"/home/msr/data/AzimetrySamples/P868 BPA/CARL-TILL-1/Delivery/868_BPA16-1_ORn_intft_000002.las"
    },
    {
      "type": "filters.range", 
      "limits": "Classification[25:25]"
    },
    {
      "type":"writers.las",
      "filename":"868_BPA16-1_ORn_intft_000002_Eqt.las"
    }
  ]
}
Andrew Bell
@abellgithub
May 23 2017 20:23
MIght try pdal info --filters.stats.enumerate=Classification <filename> on the input file. Have no idea about corruption. You'd need to provide details.
Michael Rosen
@mrosen
May 23 2017 22:33

Hmm...

$ pdal info --filters.stats.enumerate="Classification" "/home/msr/data/AzimetrySamples/P868 BPA/CARL-TILL-1/Delivery/868_BPA16-1_ORn_intft_000002.las"
...
values":
        [
          2,
          3,
          4,
          5,
          10,
          35,
          36,
          100,
          110,
          111,
          113,
          114,
          120,
          121,
          131,
          132,
          134,
          135,
          141,
          150,
          151,
          152,
          180,
          185,
          201,
          211
        ],

Compare this to lasinfo:

histogram of classification of points:
         2209047  ground (2)
         2122149  low vegetation (3)
          437664  medium vegetation (4)
         2020022  high vegetation (5)
             595  building (6)
            4113  noise (7)
             231  water (9)
             671  rail (10)
            2751  wire guard (13)
            3902  wire conductor (14)
            7601  tower (15)
            1627  bridge deck (17)
           18759  Reserved for ASPRS Definition (18)
            6851  Reserved for ASPRS Definition (19)
              35  Reserved for ASPRS Definition (20)
            6201  Reserved for ASPRS Definition (22)
            2213  Reserved for ASPRS Definition (23)
            1152  Reserved for ASPRS Definition (24)
           84416  Reserved for ASPRS Definition (25)
 +-> flagged as synthetic: 412730
 +-> flagged as keypoints: 65822
 +-> flagged as withheld:  118994