New answers tagged

0

After found the class QgsPluginRegistry it seems to be very easy to get the complete path of my dll: #include "qgspluginregistry.h" ... QgsPluginRegistry *pRegistry = QgsPluginRegistry::instance(); QString library = pRegistry->library( "name_of_my_plugin" ); But this class is not offered to the API, had to search it in the sources of ...


0

After browsing the QGIS source code found in qgsrulebasedlabelingwidget.cpp the solution: // also clear old-style labeling config mLayer->removeCustomProperty( "labeling" ); mLayer->setLabeling( new QgsRuleBasedLabeling( mRootRule->clone() ) ); Before i adapted this code I set up my rootRule like this: rootRule = new QgsRuleBasedLabeling::Rule( ...


0

It's not possible yet - the relevant methods and classes aren't exposed to the python API. This will be addressed when 3.0 is released.


2

Sorry for answering my own question. After browsing the API I found the solution is to cast the QgsPaintEffect to QgsEffectStack and edit the existing effects, maybe someone can benefit from this code: QgsPaintEffect* oldEffect=p_Symbol->symbolLayer(0)->paintEffect(); QgsEffectStack* stackEffect=(static_cast<QgsEffectStack*>(oldEffect)); ...


0

Following I found out: For deploying a cpp-plugin for QGIS it is requiered building the dll separately for every version - even point releases of a LTR. From this perspective it makes no difference if it is the actual or the ltr release. We have to take care that customers are using same version/point realease. For setting up development environement I don'...


4

GeoTransform is an array that contains six numbers: X origin Pixel width Angle (with vertical axis) Y origin Pixel height Angle (with horizontal axis) X and Y are coordinates of the top left corner of your raster image. Each pixel has size, width and height and it is a value in meters or degrees (depends on your CRS) - this value is constant, not ...



Top 50 recent answers are included