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)
  • Leica photo processing (raw -> TIFF)
  • Attune (calibration)

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:

  • ALS PP with alspp.exe
  • FugroViewer with fugroviewer.exe
  • Leica photo processing software with leica_photo_processing (N.B. due to licensing constraints, only one person at a time can use this)
  • Attune with attune

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

ALSPP - If you get boxes in place of characters

Try running winetricks corefonts in your .wine directory, this may solve the problem. You may need to download the recent copy of this script from the web (search for winetricks).

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

You don't need to do any of this unless trying to build something from scratch. Use the arsf_winesetup.sh script instead.

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, note we can only run one copy of this at any one time due to licensing issues)
    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
Last modified 13 years ago Last modified on Mar 21, 2011, 5:38:32 PM