Skip to content

lucatestone/SurfaceTriangulation

Repository files navigation

SurfaceTriangulation for QGIS


This program is free software. It has been developed as part of my Master's Degree Thesis @ Politecnico di Torino, being supervised by Prof. M. Barla and PhD. F. Antolini and hosted/supported by CDM Dolmen. One can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.


QGIS Plugin useful for the triangulation of a surface from both a dtm raster layer (.ASC is mandatory) or contour vector layer. If the input is a raster file, the triangulation is built on the grid points, If the input is a vector file, the triangulation is computed using a Delaunay algorithm. Three output files are possible: .txt .stl (binary) .stl (ASCII). Some Windows machines do not support .stl (binary).

HOW TO INSTALL

This plugin relies on the numpy-stl package which must be installed by the user. If you want to use the 3d plot tool you need QGIS 64bit version.

LINUX (Ubuntu)

  1. Install the numpy-stl package; from terminal:

    pip install numpy-stl

  2. Copy the folder SurfaceTriangulation to your QGIS plugins folder (e.g./usr/share/qgis/python/plugins or in the folder .qgis2/python/plugins in your home directory)

  3. From QGIS, under the "Plugins" menu, install "Surface Triangulation"

WINDOWS

  1. Download the file ez_setup.py from http://peak.telecommunity.com/dist/ez_setup.py and the numpy-stl package from https://pypi.python.org/pypi/numpy-stl (and extract the files from archive)

  2. Open an OSGeo4W Shell (under Start=>Qgis=>OSGeo4W Shell) with administration priviledges (Right click=>Run as administrator or Right click=>Open path=>OSGeo4W Shell=>Run as administrator)

  3. From this shell set your path to the downloaded ez_setup.py file (e.g. cd C:\Users\username\Downloads) and run it with the command:

    python ez_setup.py

  4. Now set the path to the downloaded numpy-stl folder (e.g. cd C:\Users\username\Downloads\numpy-stl-1.8.0)

  5. Install the numpy-stl package with the command:

    python setup.py install

If you get an error in numpy compilation, just ignore it.

  1. Copy the folder SurfaceTriangulation to your QGIS plugins folder (e.g. C:\Users\username.qgis2\python\plugins)

  2. From QGIS, under the "Plugins" menu, install "Surface Triangulation"

About

QGIS plugin that creates a surface triangulation from a raster file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published