QGIS Python Plugin by Andrii Liekariev - This plugin rotates polygons so that they become parallel to their nearest lines
make build
make run
make install
make test
These instructions are specific to PyCharm.
uv
Python interpreter. uv sync
make install-dev
127.0.0.1
53100
/Users/elf/dev/private/polygons_parallel_to_line=/pptl
test_main_functionality.py
:
# pydevd_pycharm.settrace("host.docker.internal", port=53100, stdoutToServer=True, stderrToServer=True)
import pydevd_pycharm
to test_main_functionality.py
. /Applications/QGIS.app/Contents/MacOS/bin/python3 -m pip install pydevd-pycharm pydevd
pptl.py
:
# pydevd_pycharm.settrace("127.0.0.1", port=53100, stdoutToServer=True, stderrToServer=True)
import pydevd_pycharm
to pptl.py
.QGIS_PLUGINPATH
/path/to/plugin
(e.g., /Users/elf/dev/private/polygons_parallel_to_line
)zip -r pptl.zip PolygonsParallelToLine/ -x "*.DS_Store" "__MACOSX" "*/__pycache__/*" "*.pyc" "*.pyo" "*~" "*.bak"
pptl.zip