Version 16 (modified by mggr, 15 years ago) (diff)

--

LIDAR processing in Linux

The main LIDAR processing software is all Windows based, but parts can be run under the WINE windows emulator in Linux. The parts that work are:

  • ALS Post Processor
  • FugroViewer (LAS file viewer)

Bentley Microstation (and thus TerraScan) currently do not work under WINE. This functionality can be partially replaced - see the notes below.

Set up

To set this up, do the following under your own userid: arsf_winesetup.sh

You can now run the ALS PP with alspp.exe and the FugroViewer with fugroviewer.exe

General operation

This is the same as the normal processing procedure.

CAUTION: The C: drive you'll see in wine will be stored in your homespace on the RSG disk - if this fills up, everything breaks and you buy beer for the whole group! Please save files to your normal scratch space.


Workarounds for Bentley functionality

Differentiating flightlines by color

  • Add a different classification number to each LAS file, using knpa's classification utility:
    • run las_single_class.py -i INPUTNAME -o OUTPUTNAME -c CLASSIFICATION_NUMBER (classifications can be 0-255)
    • if you have a directory full of las files to classify, cd into it and paste the following:
      mkdir classified_las
      counter=1
      for lasfile in *LAS ; do
         echo $counter $lasfile
         las_single_class.py -i $lasfile -o classified_las/$lasfile -c $counter
         counter=$(( $counter + 1))
      done
      
    • if you have more than 3 flightlines it is helpful to start with counter=5. Class 3,4,and 5 are vegetation and default to varying shades of green - this makes it difficult to differentiate between flightlines.
  • Load the classified files into FugroViewer
  • Colour points by classification (settings menu -> point color -> classification)

Troubleshooting

FugroViewer 3D doesn't work

If you're on a 64 bit machine (type arch and see if it says "x86_64") and you get the message below, you're missing the 32 bit OpenGL libraries.

err:rebar:REBAR_MaximizeBand Illegal MaximizeBand, requested=1, current band count=1
fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
fixme:heap:RtlCompactHeap (0x110000, 0x0) stub
fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
err:wgl:internal_SetPixelFormat Invalid iPixelFormat: 0
err:wgl:X11DRV_wglCreateContext Cannot get FB Config for iPixelFormat 0, expect problems!

To fix it, get someone with root to run yum install -y xorg-x11-drv-nvidia-libs.i386


Technical details

We keep copies of the installers at ~arsf/backups/windows_software/.

On Fedora 10 (x86_64), simply install the default wine packages (yum install wine*). You also need to download the winetricks script, which I just put in ~/.wine. Following that, do:

  • Install Leica's photo processing software:
    1. winetricks dotnet20 (installs .NET 2.0 framework, needed for photo processing software, requires Windows license) - mono doesn't seem to cover it :\
    2. wine msiexec /i PostProcessingSetup_L_V1.1.8.msi (install Leica photo processing software)
    3. run with cd .wine/drive_c/Program Files/Leica Geosystems/Calibration ; wine PostProcessing.exe config/LeicaPostProcessing.cfg
  • Install ALS post processor
    1. winetricks vcrun2003 (install MS Visual C++ 2003 libraries)
    2. wine ALSPP_2_69#20_RELEASE.exe (installs ALS PP)
    3. wine corpscon_conus_geoxx.exe (installs code for doing datum transforms, etc)
    4. wine GridInQuest\ v6.5.0/install/Setup.Exe (more transform code?)
    5. test it works!
  • Install FugroViewer
    1. unzip to .wine/drive_c/Program\ Files
  • Install Attune
    1. wine setup_Attune_v1.41.exe