Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to QGIS 3.0 with PyQt5 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agressin
Copy link

Hi,

I update your code to allow using this plugin on QGIS 3.0,
I also add the possibility to create several parallel lines.
Would you push it to the QGIS plugin Repository ?

Thanks in advance,
Adrien

@Eierbrot
Copy link

Eierbrot commented Nov 5, 2019

Hi Adrien,
thanks a lot for the great work! I adapted all your changes and can now use the plugin in QIS 3.10. I do, however, get an error message when trying to run the plugin and can't seem to find a way to solve the problem. You must know, that I hardly have any coding experience at all.
Do you know what to do to resolve this problem? Here's the error message that I receive when trying to run the plugin:

AttributeError: 'QgsRasterLayer' object has no attribute 'selectedFeatures'
Traceback (most recent call last):
File "C:/Users/fabia/AppData/Roaming/QGIS/QGIS3\profiles\Fabian Kratz/python/plugins\ParallelOffset\paralleloffset.py", line 132, in run
for feature in layer.selectedFeatures():
AttributeError: 'QgsRasterLayer' object has no attribute 'selectedFeatures'

I hope you can help.
Thanks a lot in advance.

Fabian

@agressin
Copy link
Author

agressin commented Nov 5, 2019 via email

@Eierbrot
Copy link

Eierbrot commented Nov 6, 2019 via email

@stevengardiner
Copy link
Owner

stevengardiner commented Nov 6, 2019 via email

@Eierbrot
Copy link

Eierbrot commented Nov 6, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants