Profile from line Plugin
Description
The profileFromLine tool is a python plugin that will create a new points layer.
The points will be created along a user-specified vector lines layer. The points will be spaced according to the interval selected by the user.
Aditionally, the user can also specify some raster layers that will be sampled by each new point.
Dependencies
This plugin requires that the Shapely python package be installed and available at your system.
Tutorial
- Load a vector line layer (or create a new one) in Qgis.
- Load some raster layers in Qgis.
- Now select ProfileFromLine from the Qgis Toolbar or from the plugins menu
- In the 'Lines layer' combobox select your vector layer
- If you want to sample the raster layer(s) at the locations where the new points will be created, use the 'Raster(s) to sample' list to select which rasters will be sampled. If you just want to create the points without sampling raster layers, just don't select any raster :)
- Use the 'Sampling interval' spinbox to decide on the distance between consecutive points
- Press the OK button, and... BAM! The new points layer has been created and loaded in the Qgis map window.
- This new layer is only temporary. If you want to keep it for future reference just right-click the layer's name on the 'Layers' list, choose 'Save as..' and save it in your desired format.
Contact
Please visit the plugin's page at http://hub.qgis.org/projects/profilefromline.
You can also send me an e-mail to ricardo[dot]garcia[dot]silva[at]gmail[dot]com or leave a message at the qgis-user mailing list.
Thank you
Thanks to Martin Dobias and Václav Rehák for answering my questions at the qgis-developer list. Thanks to the developers of the GdalTools, CadTools, Points2One and fTools plugins for inspiration and some code adaptations.