Skip to content

A QGIS plugin to create line profiles from attribute table in vector layer and color band of raster layer

License

Notifications You must be signed in to change notification settings

wiscsims/line_profile

Repository files navigation

Line Profile

A QGIS plugin for creating line profiles from vector and raster layers.

Contents

Requirement

  • QGIS (ver. 3.10+).

For QGIS 2 users, use older version.

Installation

There are two ways to install Line Profile.

Install from QGIS Plugin Repository

  1. Open QGIS.

  2. From the QGIS menu, select Plugins > Manege and Install Plugins.

  3. Select the All tab on the far left. Search/find Line Profile from the plugin list and click Install Plugin button on the right bottom of Manege and Install Plugins window. Install Line Profile from the list

  4. Select Installed Plugins to make sure Line Profile was correctly installed. If it is not checked, click the checkbox (on the left of green puzzle piece icon) to activate the plugin. You also see Line Profile icon in the QGIS toolbar.

Install from ZIP file

Manual installation is also available.

  1. Download Line Profile (line_profile.zip) from WiscSIMS GitHub repository.

  2. Open QGIS.

  3. From the QGIS menu, select Plugins > Manege and Install Plugins.

  4. Select Intall from ZIP and hit ... button to select downloaded line_profile.zip file. Install Line Profile from zip file

  5. Hit Install Plugin to install Line Profile.

  6. Select Installed Plugins to make sure Line Profile was correctly installed. You also see Line Profile icon in the QGIS toolbar.

Quick Start

  • Select a layer from the layer panel.
  • Hit Add Data button, then choose an item you want to plot.
  • Make a profile line with:
    • Click on canvas to start your profile line (circle marker: ●).
    • You can add vertics by clicking on canvas (●).
    • Right click on canvas to terminate the profile line (square marker: ■).
  • Done! 🎉 - The line profile is generated automatically.

Usage

Creating Line Profiles

You can create profile lines with clicking on canvas.

  • Start profile line/Create vertics: Left Click
  • Terminate profile line: Right Click
  • Cancel/Clear profile line: Double Click

Plot Options

  • Raster Layer

    TBU

  • Vector Layers

    TBU

Profile Lines

There are two profile lines (Profile Line 1 and Profile Line 2).

Tieline

A thin yellow line indicating where the each data point in the vector layer is projected on the profile line. Default: On.

Tracking Marker

A marker on the profile line indicating the location of the data in the plot. Default: Off.

Save Plot

Plots can be saved as raster or vector file with various format (jpg, png, pdf, svg).

Options

You can export data and profile line, and import profile line

Export Data

Data used in the plot can be exported as text data with csv format.

Import/Export Profile Line

TBU

Scaling

Pixel size (px/map unit) can be set manually. You can also import alignment files which you used in WiscSIMS session to set pixel size.

Profile lines are also exportable as shape file. You can reproduce the profile line and plots.

Developmental Features

Checking sampling points and area visually

Heavy processing, though.

  • as a shaded area
  • as points

Normalization of profile lines

Select checkbox if you want to normalize the Profile Line 2 to Profile Line 1.

By length

The length of profile line 2 is normalized by the Profile Line 1

By segment

This option needs profile lines which have same number of segments.

About

A QGIS plugin to create line profiles from attribute table in vector layer and color band of raster layer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages