QGIS processing tools

QGIS 支援 processing tools (也就是和其他 GIS 溝通的橋樑,可直接呼叫像是 GRASS GIS 之類的,但手動 compile 需要解決一些 dependencies 的問題,這邊簡單記錄一下我在 MacOS X Mavericks 上安裝 QGIS 的紀錄

  1. 先 tap osgeo4mac

    brew tap osgeo/osgeo4mac
    
  2. 先把 saga-gis 裝好

    # tap dupes
    
    brew tap homebrew/dupes
    brew install zlib
    # force link zlib to /usr/local/
    
    brew link --force zlib
    # install libhara (dependency of saga-gis)
    
    brew install libharu
    brew install saga-gis --with-app
    
  3. 再裝 GRASS GIS,compile 若失敗,可以加 --env=std

    brew install grass-64
    
  4. 安裝 R

    brew install -v r --env=std
    
  5. 安裝 gdal

    brew install gdal --complete --postgresql
    
  6. 安裝 orfeo-40

    brew install orfeo-40
    

    因為 orfeo 編譯失敗,所以我就安裝 orfeo-40,並修改 brew qgis-22 中的 formula 把 orfeo 改成 orfeo-40

    82   # see `postgis` and `grass` above
    
    83   depends_on 'orfeo-40' => :optional
    84   depends_on 'homebrew/science/r' => :optional
    85   depends_on 'saga-gis' => :optional
    86   # TODO: LASTools straight build (2 reporting tools), or via `wine` (10 tools)
    
    87   # TODO: Fusion from USFS (via `wine`?)
    
  7. 安裝 QGIS

    brew install -v qgis-22 --with-globe --with-postgis --with-orfeo --with-r --with-grass --with-saga-gis --enable-isolation
    

Comments

comments powered by Disqus