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
Remove deprecated Qgis::WKBType and API cleanup #3325
Conversation
Nice! I'm guessing we'll need follow ups here - ie I suspect that layers will not be correctly returning Z/M types until we update the providers to do this? |
Yes, we'll need follow ups I guess. |
My only thoughts - in #3314 it's discussed whether we should move global enums back into the Qgis/QGis/QGIS/qgis/QuantumGIS class, and make it an analog of Qt's "Qt". What do you think? |
No strong opinion. One thing is that |
What's the rationale behind collecting all the enums in one header? Doesn't that just cause full rebuilds when a enum changes and separates the enum from where they are used? What are the advantages? |
@nyalldawson during rebase I also did some more QGis => Qgis fixes. I think there are still some removed methods used in the oracle provider... |
@jef-n My (incomplete) understanding: Advantages:
Disadvantages:
I was tending towards grouping the common ones, but the more I think about it I think I'm more in favour of keeping them in separate classes. But I'm happy to go either way... |
git grep -l "QGis::" src/ | xargs perl -pe "s/QGis::/Qgis::/g" -i.bak
e7268f3
to
b6686b8
Compare
I started to write a fixer for module renames. It's by no means finished, it was probably quite naive to start that on the day before leaving office for a week ;) |
Hmmm... I am failing big time with these fixers and there is not much documentation to be found. How did you get that signal magic done, @jef-n ? |
@jef-n @wonder-sk @m-kuhn can we make a call either way here? Collect enums or not? |
I do not not have a strong preference towards any of those options. Happy with whatever others choose. |
Same here. |
@m-kuhn if it's not too much to ask, can you hold off on rebasing this for now? I'm mid-way through a nightmare mega-patch which changes the getters/setters for feature geometry to just |
@m-kuhn ok, all done here... I'm moving on to other code areas. |
a5c900a
to
2468394
Compare
Renames QgsWKBTypes to QgsWkbTypes Replaces usage of the enums: * Qgis::WKBType with QgsWkbTypes::Type * Qgis::GeometryType with QgsWkbTypes::GeometryType Their values should be forward compatible (a fact that was already explited up to now by casting between the types) Renames some SSLxxx to SslXxx and URIxxx to UriXxx
daa7e17
to
2a357c2
Compare
7da4d46
to
54123a0
Compare
eeae6b8
to
d8d3a39
Compare
so at least use it in r/w mode
35a3c9a
to
1c6b45f
Compare
Woohoo!! |
Renames QgsWKBTypes to QgsWkbTypes
Replaces usage of the enums:
Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)
Renames some SSLxxx to SslXxx and URIxxx to UriXxx