0

Building upon ArcPy IDW interpolation with LiDAR point cloud data, suppose I want to select certain classes in the las file and then export the final output in its original format (.las), how do I do that?

I have seen a similar question at Exporting ground returns (.las) from classified point cloud? but it does not solve my problem.

   # Create the LAS dataset layer
    lasd_layer = arcpy.management.MakeLasDatasetLayer(las_dataset, "LASD_Layer", class_code=[4, 5])
    
   # Save the LAS dataset layer to a new LAS file
    arcpy.management.ExtractLas(lasd_layer, output_las)
6
  • What about that doesn't solve your problem? Does it not create output LAS files? Are the class codes not restricted to class 4 and 5? Jul 18 at 2:43
  • The suggestions involve working with other software that I am not familiar with. I need suggestions working with arcpy, to modify the last line of code.
    – Nasa_Milla
    Jul 18 at 2:54
  • The last line looks fine in isolation, your first parameter is a filtered LAS dataset and the 2nd should be a folder that already exists... so, what is the problem? Do you get error messages? Is there no output? Are all classes included? Are the output files unreadable? Jul 18 at 4:24
  • There are no files saved in the output folder. AttributeError: module 'arcpy.management' has no attribute 'ExtractLas'
    – Nasa_Milla
    Jul 18 at 5:22
  • That's because it's not a management tool but a 3d tool: arcpy.ddd.ExtractLas, with the documentation pro.arcgis.com/en/pro-app/latest/tool-reference/3d-analyst/… - do you have the 3d analyst extension? if not the tool will be locked and you'll have to try LASTools or obtain a 3d analyst extension. Jul 18 at 5:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.