QGIS plugin with a map tool to reshape a continuous segment topogically.
Project description
segment-reshape-qgis-plugin
QGIS plugin with a map tool to reshape a continuous segment topogically.
Plugin
TBA
Library
To use this library as an external dependency in your plugin or other Python code, install it using pip install segment-reshape-qgis-plugin
and use imports from the provided segment_reshape
package. If used in a plugin, library must be installed in the runtime QGIS environment or use qgis-plugin-dev-tools to bundle your plugin with runtime dependencies included.
API documentation
Simple use case can be seen in integration test.
Finding common segment
segment_reshape.topology.find_related.find_segment_to_reshape
calculates the line segment between features that share equal sequence of vertices along their edges at the trigger location. By default all QGIS project layers are used to find connected features if topological editing is enabled. Custom list of layers can also be passed as an argument.
Return values are:
- Common segment (
None
if not found) - Features that share the common segment (and relevant vertex indices)
- Features that share the end points of the common segment (and relevant vertex index)
Editing geometries partially
segment_reshape.geometry.reshape.make_reshape_edits
reshapes the provided common parts and edges, so that common part shared vertex indices are replaced and edges are moved to match the reshaped geometry. Output of find_segment_to_reshape
(common parts & edges) can be used as input for this function.
Development of segment-reshape-qgis-plugin
See development readme.
License & copyright
Licensed under GNU GPL v3.0.
Copyright (C) 2022 National Land Survey of Finland.
CHANGELOG
0.0.1 - 2022-10-28
- Initial release: API for finding common segments and making reshape edits
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for segment-reshape-qgis-plugin-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9e1fd0a0dd2c9a5f2a9e86578488998d1285d1cd8764af64f3ad74369177128 |
|
MD5 | d97675e34de207f451d0ec7e8ca44cc8 |
|
BLAKE2b-256 | b8df8db9722d4d5f6a79303bc128466c64dd0741c4214b02ddcf31eea6af92de |
Hashes for segment_reshape_qgis_plugin-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec8cab2637132cd8e4792573ca67533f0da3869292d2c612d9e1caa1a46be9ed |
|
MD5 | b253d278421d33cc6449a3af0931d8e1 |
|
BLAKE2b-256 | c6ccfe9b5ea82e56624004fc0565926752ceeb6d287a04f165586bd6f674eaa7 |