Causes sip to generate the type hinting stub (".pyi") files
alongside the generated python modules.
This allows editors like PyCharm to become aware of the
types of objects returned by functions, making the autocompletion
much more useful (e.g. by showing all the members available
for a returned type). It also fixes a bunch of incorrect
warnings highlighted in PyCharm for things like calling
static methods in a class (and, generates some new, but valid,
warnings when unexpected types are passed to functions!)
TODO: work out why PyCharm can't show the docstrings
for methods when the pyi file is present.
Introducting MDAL, QgsMeshLayer, mesh data providers (mesh_memory, mdal)
to read and visualize raw meshes: vertices and faces. Support dragging
2dm files from browser on canvas to visualize 2dm meshes.
Support for QgsMeshLayer in Python API.
Switches on the sip "-g" switch, which forces sip to release the
Python Global Interpreter Lock before calling a qgis c++ method,
and reacquire it after.
While this flag is not a default sip flag, it is used when building
the PyQt API, so can't forsee any issues from enabling it.
The benefit however is extreme for PyQGIS based scripts which
rely on threads, potentially resulting in massive performance
boosts.
Without this switch, calling an expensive c++ method (say,
building a QgsSpatialIndex using a QgsFeatureIterator) would lock
the Python GIL for the duration of the c++ call... which could
potentially take minutes or more. With the switch, the lock
is released before all calls, so other Python threads are free
to merrily grab the lock and do other processing while the
original thread chugs away in c++ land.
Benchtests of worst-case scenarios (single thread calling
thousands of very inexpensive PyQGIS methods (simple getters))
regressed from mean of 154 seconds to 158 with this flag. But
that's worst case (and as Intel have recently demonstrated...
we can't take yesterday's computing speed as the benchmark
for todays ;). Given that best case scenarious (multi-threaded
operations calling slow c++ methods) will benefit so greatly
from this change, I think it's an acceptable trade off.
*This is a step toward potentially re-enabling background
execution of python based Processing algorithms, and also
should greatly improve QGIS responsiveness when using
python based renderers/symbols.
* detect SIP version to add DefaultDocstringSignature directive
SIP doesn't handle any kind of preprocessing, so there's no better solution than configuring the SIP files from CMake.
SIP 4.19.7+ supports %DefaultDocstringSignature to prepend auto-generated Python signature to existing Docstrings
* add Geonode connection menu to the toolbar
* add header files for geonode-qgis client
* add action to launch geonode connection dialog from menubar
* Move to proper directory
* Add geonodeconnection class.
* Add unit test for geonode connection.
* Use const static to avoid typo.
* Get list layers from geonode.
* Add get maps method.
* Geonode connection dialog (#13)
* add new geonode connection dialog
* apply functionality to the geonode connection manager dialog
* add save and load geonode connection functionality
* edit baseKey and credentialBaseKey
* remove auto-connect slots
* Add unit test for geonode connection.
* Add wms url getter.
* Add uuid and layer name in the table.
* Add handler for the list layer clicked. WIP.
* Use new style connect, better hacky to get wms url.
* update gitignore
* Make QGIS able to add WMS layer from geonode. With hacky code.
* Fix Docstring.
* Show web service type (WMS/WFS) in layer table.
* fix http and toolbar menu
* add geonode data item to the browser panel as an extention of ows provider
* [WIP] Add WFS.
* Add geonode get service url.
* combobox functionality and test geonode connection
* Add WFS.
* Disable add button if it's a map. Currently we can't do anything for map.
* Add busy cursor when add layer.
* get service uri capabilitites
* add available layers to the geonode browser panel
* remove debugging footprint and replace old style connect
* add actions (new, edit, delete) to geonode browser panel
* fix getLayers by WMS url
* add Geonode connection menu to the toolbar
* Filter out invalid layer / map.
* Fix service url method.
* Add service url for XYZ for GeoNode QGIS Server backend.
* Add XYZ url to geonode connection dialog.
* Add XYZ layer to QGIS.
* fix double geonode submenu
* add wfs/wms layers from browser panel using its native provider
* comply with qgis3 new class naming
* Handle different prefix for layer in GeoNode QGIS Server backend.
* base class for cms connection
* make geonode connection as a derived class from cms connection
* update cmakelists
* move geonode connection to geocms dir
* update CMakeLists
* Handle geonode 2.7 with new API.
* Handle multiple geoserver url in one geonode.
* Fix add xyz for qgis server. Fix add wms, wfs, xyz for geoserver in geonode 2.7
* Refactor serviceURL to return QStringList.
* add 'add geonode layer' icon
* add geonode to the data source manager dialog
* [GeoNode-Client] Fix add WFS layer.
* fix wms url parameter
* add xyz dataitems
* Use new style connect.
* [GeoNode Client] Handle qgis server specific typename to make add WFS works.
* Code improvement.
* [GeoNode Client] Make geonode dialog in add universal layer can add layer.
* Open universal add layer when click Add GeoNode layer.
* Make sure the geonode url has protocol.
* Handle geonode version in a better way.
* make sure the serviceUrl method has scheme in its urls
* add services option to the dialog
* remove version label if not wfs
* construct wms url with parameters for geonode connection
* handle layer from multi service urls for every wfs, wms, & xyz services
* fix new style connect using static_cast
* hode close button if dialog is in embedded mode
* fix xyz layer naming in the browser tree
* create base class for geocms dataitems
* fix compiling warning
* Use struct instead QVariantMap.
* tidy up code
* Tidy up code, use QgsStringMap instead QVariantMap.
* Add spellok for catalogue.
* update sip
* update sip
* Use naming convention for QgsGeoCmsConnection and use QUuid.
* Async by using GeoNodeRequest class.
* Move geonode to src/gui.
* Use stack not heap.
* Remove unused includes.
* Use signal to handle request.
* Use QStringLiteral.
* Switch to use Q_FOREACH.
* Use Q_FOREACH and addressing PR's review.
* Set private for data members.
* update sip
* Update sip.
* Update sip.
* Fix sip problem to make it buildable again.
* Remove geocms
* Tidy up code.
* Use QgsSetting Scope::Provider.
* Fix missing zip.h
* add Geonode connection menu to the toolbar
* add header files for geonode-qgis client
* add action to launch geonode connection dialog from menubar
* Move to proper directory
* Add geonodeconnection class.
* Add unit test for geonode connection.
* Use const static to avoid typo.
* Get list layers from geonode.
* Add get maps method.
* Geonode connection dialog (#13)
* add new geonode connection dialog
* apply functionality to the geonode connection manager dialog
* add save and load geonode connection functionality
* edit baseKey and credentialBaseKey
* remove auto-connect slots
* Add unit test for geonode connection.
* Add wms url getter.
* Add uuid and layer name in the table.
* Add handler for the list layer clicked. WIP.
* Use new style connect, better hacky to get wms url.
* update gitignore
* Make QGIS able to add WMS layer from geonode. With hacky code.
* Fix Docstring.
* Show web service type (WMS/WFS) in layer table.
* fix http and toolbar menu
* add geonode data item to the browser panel as an extention of ows provider
* [WIP] Add WFS.
* Add geonode get service url.
* combobox functionality and test geonode connection
* Add WFS.
* Disable add button if it's a map. Currently we can't do anything for map.
* Add busy cursor when add layer.
* get service uri capabilitites
* add available layers to the geonode browser panel
* remove debugging footprint and replace old style connect
* add actions (new, edit, delete) to geonode browser panel
* fix getLayers by WMS url
* add Geonode connection menu to the toolbar
* Filter out invalid layer / map.
* Fix service url method.
* Add service url for XYZ for GeoNode QGIS Server backend.
* Add XYZ url to geonode connection dialog.
* Add XYZ layer to QGIS.
* fix double geonode submenu
* add wfs/wms layers from browser panel using its native provider
* comply with qgis3 new class naming
* Handle different prefix for layer in GeoNode QGIS Server backend.
* base class for cms connection
* make geonode connection as a derived class from cms connection
* update cmakelists
* move geonode connection to geocms dir
* update CMakeLists
* Handle geonode 2.7 with new API.
* Handle multiple geoserver url in one geonode.
* Fix add xyz for qgis server. Fix add wms, wfs, xyz for geoserver in geonode 2.7
* Refactor serviceURL to return QStringList.
* add 'add geonode layer' icon
* add geonode to the data source manager dialog
* [GeoNode-Client] Fix add WFS layer.
* fix wms url parameter
* add xyz dataitems
* Use new style connect.
* [GeoNode Client] Handle qgis server specific typename to make add WFS works.
* Code improvement.
* [GeoNode Client] Make geonode dialog in add universal layer can add layer.
* Open universal add layer when click Add GeoNode layer.
* Make sure the geonode url has protocol.
* Handle geonode version in a better way.
* make sure the serviceUrl method has scheme in its urls
* add services option to the dialog
* remove version label if not wfs
* construct wms url with parameters for geonode connection
* handle layer from multi service urls for every wfs, wms, & xyz services
* fix new style connect using static_cast
* hode close button if dialog is in embedded mode
* fix xyz layer naming in the browser tree
* create base class for geocms dataitems
* fix compiling warning
* Use struct instead QVariantMap.
* tidy up code
* Tidy up code, use QgsStringMap instead QVariantMap.
* Add spellok for catalogue.
* update sip
* update sip
* Use naming convention for QgsGeoCmsConnection and use QUuid.
* Async by using GeoNodeRequest class.
* Move geonode to src/gui.
* Use stack not heap.
* Remove unused includes.
* Use signal to handle request.
* Use QStringLiteral.
* Switch to use Q_FOREACH.
* Use Q_FOREACH and addressing PR's review.
* Set private for data members.
* update sip
* Update sip.
* Update sip.
* Fix sip problem to make it buildable again.
* Remove geocms
* Tidy up code.
* Use QgsSetting Scope::Provider.
* Fix missing zip.h
This is useful in some cases when working on a third party app/script
that only uses qgis_core. For example, I am working on qgis 3D project
and it is useful to be able to build QGIS core lib with custom Qt version
without having to spend too much time building what I do not need.
Also may be useful for QField to simplify the build of QGIS as a dependency
(no QScintilla, Qwt) and avoid bits of code in providers that would not
be used anyway.
No real source code changes, just configuration changes, mainly in providers.
These classes are used for storing measurements for a layout
(QgsLayoutMeasurement), sizes for a layout (QgsLayoutSize)
and points in a layout (QgsLayoutPoint)
They support storing a measurement unit alongside a measurement
length/size. A new class QgsLayoutMeasurementConverter handles
conversion between different units, including converting to and
from pixels via a specified DPI property.