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

QGIS3 major update (#41) #9

Merged
merged 3 commits into from
Feb 15, 2021
Merged

QGIS3 major update (#41) #9

merged 3 commits into from
Feb 15, 2021

Conversation

landam
Copy link
Contributor

@landam landam commented Feb 15, 2021

  • importing some modules and classes in due to splitting the original ones (QtGui > QtGui, QtWidget)
  • renaming some QGIS API 3.x classes
    Result:
  • plugin can be started in QGIS 3
  • VFK file can be imported
  • Update README.md
  • Decoding UTF-8
    ad vfkTableModel.py:
  • quick and dirty QByteArray fix, see Zobrazeni slucek #3
  • Completing API functions
    Functions which run correctly
  • import
  • search form (owners excluded)
  • export (HTML, LaTeX)
  • add sample data

Co-authored-by: luciestara [email protected]

landam and others added 3 commits February 15, 2021 14:56
* apply qgis2to3, see #2
* update metadata.txt to qgis3, see #2
* update resources file to qt5, see #2
* fix another qgis2to3 issue, see #2
* Rewriting code for QGIS 3 part 1
Undertaken steps:
- importing some modules and classes in due to splitting the original ones (QtGui > QtGui, QtWidget)
- renaming some QGIS API 3.x classes
Result:
- plugin can be started in QGIS 3
- VFK file can be imported
* Update README.md
* Decoding UTF-8
ad vfkTableModel.py:
- in Python 3 no longer needed "prefixes" u'...'/u"..."
ad mainApp.py:
- problem with decoding the file
I found this hack (can't find the source again), but the traceback says the byte can't be decoded - is the encoding truly utf-8?
sources:
https://timothybramlett.com/Strings_Bytes_and_Unicode_in_Python_2_and_3.html
https://medium.com/@andreacolangelo/strings-unicode-and-bytes-in-python-3-everything-you-always-wanted-to-know-27dc02ff2686
* quick and dirty QByteArray fix, see #3
* Completing API functions
Functions which run correctly
- import
- search form (owners excluded)
- export (HTML, LaTeX)
* add sample data

Co-authored-by: luciestara <[email protected]>
@landam landam merged commit ab66b90 into master Feb 15, 2021
@landam landam deleted the qgis3 branch February 15, 2021 19:29
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.

1 participant