Forum

Author Topic: Export Point Classes  (Read 2016 times)

benton

  • Newbie
  • *
  • Posts: 29
    • View Profile
Export Point Classes
« on: February 15, 2018, 04:48:52 AM »
Hi,

To export only specific point classes is the below the correct method;

Code: [Select]
chunk.exportPoints(mypath, source=PhotoScan.DenseCloudData, format=PhotoScan.PointsFormatLAS, projection=v_projection, blockw=1000, blockh=1000, classes=[1,2])
Ben

benton

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Export Point Classes
« Reply #1 on: February 15, 2018, 08:41:06 AM »
Figured it out and yes this will export point classes required.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Export Point Classes
« Reply #2 on: February 15, 2018, 12:39:34 PM »
Hello ben,

When passing the classes list as an argument you can also use enum instead of integer values, if it is more convenient, for example:
Code: [Select]
classes = [PhotoScan.PointClass.Ground, PhotoScan.PointClass.LowVegetation]
Best regards,
Alexey Pasumansky,
Agisoft LLC