QGIS API Documentation 3.39.0-Master (bca3cdb6021)
Loading...
Searching...
No Matches
qgssymbollayerutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssymbollayerutils.h
3 ---------------------
4 begin : November 2009
5 copyright : (C) 2009 by Martin Dobias
6 email : wonder dot sk at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16
17#ifndef QGSSYMBOLLAYERUTILS_H
18#define QGSSYMBOLLAYERUTILS_H
19
20#include "qgis_core.h"
21#include "qgis_sip.h"
22#include <QMap>
23#include <QFont>
24#include <QColor>
25#include <QPainter>
26#include "qgis.h"
27#include "qgsmapunitscale.h"
28#include "qgscolorramp.h"
29#include "qgsarrowsymbollayer.h"
30#include "qgssymbol.h"
31
32#include <QFile>
33
34#define FONTMARKER_CHR_FIX "~!_#!#_!~"
35
36class QgsExpression;
37class QgsPathResolver;
39class QgsSymbolLayer;
40
41typedef QMap<QString, QString> QgsStringMap;
42typedef QMap<QString, QgsSymbol * > QgsSymbolMap;
43typedef QList< QPair< QColor, QString > > QgsNamedColorList SIP_SKIP;
44
45class QDomDocument;
46class QDomElement;
47class QIcon;
48class QPixmap;
49class QPointF;
50class QSize;
51class QMimeData;
54
60class CORE_EXPORT QgsSymbolLayerUtils
61{
62 public:
63
64 static QString encodeColor( const QColor &color );
65 static QColor decodeColor( const QString &str );
66
67 static QString encodeSldAlpha( int alpha );
68 static int decodeSldAlpha( const QString &str );
69
70 static QString encodeSldFontStyle( QFont::Style style );
71 static QFont::Style decodeSldFontStyle( const QString &str );
72
73 static QString encodeSldFontWeight( int weight );
74 static int decodeSldFontWeight( const QString &str );
75
76 static QString encodePenStyle( Qt::PenStyle style );
77 static Qt::PenStyle decodePenStyle( const QString &str );
78
79 static QString encodePenJoinStyle( Qt::PenJoinStyle style );
80 static Qt::PenJoinStyle decodePenJoinStyle( const QString &str );
81
82 static QString encodePenCapStyle( Qt::PenCapStyle style );
83 static Qt::PenCapStyle decodePenCapStyle( const QString &str );
84
85 static QString encodeSldLineJoinStyle( Qt::PenJoinStyle style );
86 static Qt::PenJoinStyle decodeSldLineJoinStyle( const QString &str );
87
88 static QString encodeSldLineCapStyle( Qt::PenCapStyle style );
89 static Qt::PenCapStyle decodeSldLineCapStyle( const QString &str );
90
91 static QString encodeBrushStyle( Qt::BrushStyle style );
92 static Qt::BrushStyle decodeBrushStyle( const QString &str );
93
94 static QString encodeSldBrushStyle( Qt::BrushStyle style );
95 static Qt::BrushStyle decodeSldBrushStyle( const QString &str );
96
107 static Qgis::SymbolCoordinateReference decodeCoordinateReference( const QString &string, bool *ok SIP_OUT = nullptr );
108
116 static QString encodeCoordinateReference( Qgis::SymbolCoordinateReference coordinateReference );
117
122 static QgsArrowSymbolLayer::HeadType decodeArrowHeadType( const QVariant &value, bool *ok SIP_OUT = nullptr );
123
128 static QgsArrowSymbolLayer::ArrowType decodeArrowType( const QVariant &value, bool *ok SIP_OUT = nullptr );
129
140 static Qgis::MarkerClipMode decodeMarkerClipMode( const QString &string, bool *ok SIP_OUT = nullptr );
141
148 static QString encodeMarkerClipMode( Qgis::MarkerClipMode mode );
149
160 static Qgis::LineClipMode decodeLineClipMode( const QString &string, bool *ok SIP_OUT = nullptr );
161
168 static QString encodeLineClipMode( Qgis::LineClipMode mode );
169
175 static QString encodePoint( QPointF point );
176
182 static QPointF decodePoint( const QString &string );
183
196 static QPointF toPoint( const QVariant &value, bool *ok SIP_OUT = nullptr );
197
203 static QString encodeSize( QSizeF size );
204
210 static QSizeF decodeSize( const QString &string );
211
224 static QSizeF toSize( const QVariant &value, bool *ok SIP_OUT = nullptr );
225
226 static QString encodeMapUnitScale( const QgsMapUnitScale &mapUnitScale );
227 static QgsMapUnitScale decodeMapUnitScale( const QString &str );
228
229 static QString encodeRealVector( const QVector<qreal> &v );
230 static QVector<qreal> decodeRealVector( const QString &s );
231
232 static QString encodeSldRealVector( const QVector<qreal> &v );
233 static QVector<qreal> decodeSldRealVector( const QString &s );
234
242 static QString encodeSldUom( Qgis::RenderUnit unit, double *scaleFactor );
243
251 static Qgis::RenderUnit decodeSldUom( const QString &str, double *scaleFactor = nullptr );
252
259 static double sizeInPixelsFromSldUom( const QString &uom, double size );
260
266 static QString encodeScaleMethod( Qgis::ScaleMethod scaleMethod );
267
273 static Qgis::ScaleMethod decodeScaleMethod( const QString &str );
274
275 static QPainter::CompositionMode decodeBlendMode( const QString &s );
276
286 static QIcon symbolPreviewIcon( const QgsSymbol *symbol, QSize size, int padding = 0, QgsLegendPatchShape *shape = nullptr, const QgsScreenProperties &screen = QgsScreenProperties() );
287
300 static QPixmap symbolPreviewPixmap( const QgsSymbol *symbol, QSize size, int padding = 0, QgsRenderContext *customContext = nullptr, bool selected = false,
301 const QgsExpressionContext *expressionContext = nullptr,
302 const QgsLegendPatchShape *shape = nullptr,
303 const QgsScreenProperties &screen = QgsScreenProperties() );
304
315 static QPicture symbolLayerPreviewPicture( const QgsSymbolLayer *layer, Qgis::RenderUnit units, QSize size, const QgsMapUnitScale &scale = QgsMapUnitScale(), Qgis::SymbolType parentSymbolType = Qgis::SymbolType::Hybrid );
316
329 static QIcon symbolLayerPreviewIcon( const QgsSymbolLayer *layer, Qgis::RenderUnit u, QSize size, const QgsMapUnitScale &scale = QgsMapUnitScale(), Qgis::SymbolType parentSymbolType = Qgis::SymbolType::Hybrid, QgsMapLayer *mapLayer = nullptr, const QgsScreenProperties &screen = QgsScreenProperties() );
330
338 static QIcon colorRampPreviewIcon( QgsColorRamp *ramp, QSize size, int padding = 0 );
339
352 static QPixmap colorRampPreviewPixmap( QgsColorRamp *ramp, QSize size, int padding = 0, Qt::Orientation direction = Qt::Horizontal,
353 bool flipDirection = false, bool drawTransparentBackground = true );
354
355 static void drawStippledBackground( QPainter *painter, QRect rect );
356
361 static void drawVertexMarker( double x, double y, QPainter &p, Qgis::VertexMarkerType type, int markerSize );
362
364 static double estimateMaxSymbolBleed( QgsSymbol *symbol, const QgsRenderContext &context );
365
372 static QgsSymbol *loadSymbol( const QDomElement &element, const QgsReadWriteContext &context ) SIP_FACTORY;
373
382 template <class SymbolType> static SymbolType *loadSymbol( const QDomElement &element, const QgsReadWriteContext &context ) SIP_SKIP
383 {
384 QgsSymbol *tmpSymbol = QgsSymbolLayerUtils::loadSymbol( element, context );
385 SymbolType *symbolCastToType = dynamic_cast<SymbolType *>( tmpSymbol );
386
387 if ( symbolCastToType )
388 {
389 return symbolCastToType;
390 }
391 else
392 {
393 //could not cast
394 delete tmpSymbol;
395 return nullptr;
396 }
397 }
398
400 static QgsSymbolLayer *loadSymbolLayer( QDomElement &element, const QgsReadWriteContext &context ) SIP_FACTORY;
402 static QDomElement saveSymbol( const QString &symbolName, const QgsSymbol *symbol, QDomDocument &doc, const QgsReadWriteContext &context );
403
408 static QString symbolProperties( QgsSymbol *symbol );
409
413 static bool createSymbolLayerListFromSld( QDomElement &element, Qgis::GeometryType geomType, QList<QgsSymbolLayer *> &layers );
414
415 static QgsSymbolLayer *createFillLayerFromSld( QDomElement &element ) SIP_FACTORY;
416 static QgsSymbolLayer *createLineLayerFromSld( QDomElement &element ) SIP_FACTORY;
417 static QgsSymbolLayer *createMarkerLayerFromSld( QDomElement &element ) SIP_FACTORY;
418
422 static bool convertPolygonSymbolizerToPointMarker( QDomElement &element, QList<QgsSymbolLayer *> &layerList );
423
428 static bool hasExternalGraphic( QDomElement &element );
429
435 static bool hasExternalGraphicV2( QDomElement &element, const QString format = QString() );
436
437 static bool hasWellKnownMark( QDomElement &element );
438
439 static bool needFontMarker( QDomElement &element );
440 static bool needSvgMarker( QDomElement &element );
441 static bool needEllipseMarker( QDomElement &element );
442 static bool needMarkerLine( QDomElement &element );
443 static bool needLinePatternFill( QDomElement &element );
444 static bool needPointPatternFill( QDomElement &element );
445 static bool needSvgFill( QDomElement &element );
446
452 static bool needRasterImageFill( QDomElement &element );
453
454 static void fillToSld( QDomDocument &doc, QDomElement &element,
455 Qt::BrushStyle brushStyle, const QColor &color = QColor() );
456 static bool fillFromSld( QDomElement &element,
457 Qt::BrushStyle &brushStyle, QColor &color );
458
460 static void lineToSld( QDomDocument &doc, QDomElement &element,
461 Qt::PenStyle penStyle, const QColor &color, double width = -1,
462 const Qt::PenJoinStyle *penJoinStyle = nullptr, const Qt::PenCapStyle *penCapStyle = nullptr,
463 const QVector<qreal> *customDashPattern = nullptr, double dashOffset = 0.0 ) SIP_SKIP;
464 static bool lineFromSld( QDomElement &element,
465 Qt::PenStyle &penStyle, QColor &color, double &width,
466 Qt::PenJoinStyle *penJoinStyle = nullptr, Qt::PenCapStyle *penCapStyle = nullptr,
467 QVector<qreal> *customDashPattern = nullptr, double *dashOffset = nullptr );
468
469 static void externalGraphicToSld( QDomDocument &doc, QDomElement &element,
470 const QString &path, const QString &mime,
471 const QColor &color, double size = -1 );
472 static bool externalGraphicFromSld( QDomElement &element,
473 QString &path, QString &mime,
474 QColor &color, double &size );
475
476 static void wellKnownMarkerToSld( QDomDocument &doc, QDomElement &element,
477 const QString &name, const QColor &color, const QColor &strokeColor, Qt::PenStyle strokeStyle,
478 double strokeWidth = -1, double size = -1 );
479
481 static bool wellKnownMarkerFromSld( QDomElement &element,
482 QString &name, QColor &color, QColor &strokeColor, Qt::PenStyle &strokeStyle,
483 double &strokeWidth, double &size ) SIP_PYNAME( wellKnownMarkerFromSld2 );
484
485 static void externalMarkerToSld( QDomDocument &doc, QDomElement &element,
486 const QString &path, const QString &format, int *markIndex = nullptr,
487 const QColor &color = QColor(), double size = -1 );
488 static bool externalMarkerFromSld( QDomElement &element,
489 QString &path, QString &format, int &markIndex,
490 QColor &color, double &size );
491
492
493 static void labelTextToSld( QDomDocument &doc, QDomElement &element, const QString &label,
494 const QFont &font, const QColor &color = QColor(), double size = -1 );
495
497 static QString ogrFeatureStylePen( double width, double mmScaleFactor, double mapUnitsScaleFactor, const QColor &c,
498 Qt::PenJoinStyle joinStyle = Qt::MiterJoin,
499 Qt::PenCapStyle capStyle = Qt::FlatCap,
500 double offset = 0.0,
501 const QVector<qreal> *dashPattern = nullptr );
502
507 static QString ogrFeatureStyleBrush( const QColor &fillColr );
508
509 static void createRotationElement( QDomDocument &doc, QDomElement &element, const QString &rotationFunc );
510 static bool rotationFromSldElement( QDomElement &element, QString &rotationFunc );
511
512 static void createOpacityElement( QDomDocument &doc, QDomElement &element, const QString &alphaFunc );
513 static bool opacityFromSldElement( QDomElement &element, QString &alphaFunc );
514
515 static void createDisplacementElement( QDomDocument &doc, QDomElement &element, QPointF offset );
516 static bool displacementFromSldElement( QDomElement &element, QPointF &offset );
517
524 static void createAnchorPointElement( QDomDocument &doc, QDomElement &element, QPointF anchor );
525
526 static void createOnlineResourceElement( QDomDocument &doc, QDomElement &element, const QString &path, const QString &format );
527 static bool onlineResourceFromSldElement( QDomElement &element, QString &path, QString &format );
528
529 static void createGeometryElement( QDomDocument &doc, QDomElement &element, const QString &geomFunc );
530 static bool geometryFromSldElement( QDomElement &element, QString &geomFunc );
531
538 static bool createExpressionElement( QDomDocument &doc, QDomElement &element, const QString &function );
539 static bool createFunctionElement( QDomDocument &doc, QDomElement &element, const QString &function );
540 static bool functionFromSldElement( QDomElement &element, QString &function );
541
542 static QDomElement createSvgParameterElement( QDomDocument &doc, const QString &name, const QString &value );
543 static QgsStringMap getSvgParameterList( QDomElement &element );
544
545 static QDomElement createVendorOptionElement( QDomDocument &doc, const QString &name, const QString &value );
546 static QgsStringMap getVendorOptionList( QDomElement &element );
547
549 static QVariantMap parseProperties( const QDomElement &element );
551 static void saveProperties( QVariantMap props, QDomDocument &doc, QDomElement &element );
552
554 static QgsSymbolMap loadSymbols( QDomElement &element, const QgsReadWriteContext &context ) SIP_FACTORY;
556 static QDomElement saveSymbols( QgsSymbolMap &symbols, const QString &tagName, QDomDocument &doc, const QgsReadWriteContext &context );
557
558 static void clearSymbolMap( QgsSymbolMap &symbols );
559
566 static QMimeData *symbolToMimeData( const QgsSymbol *symbol ) SIP_FACTORY;
567
573 static QgsSymbol *symbolFromMimeData( const QMimeData *data ) SIP_FACTORY;
574
581 static QgsColorRamp *loadColorRamp( QDomElement &element ) SIP_FACTORY;
582
591 static QDomElement saveColorRamp( const QString &name, QgsColorRamp *ramp, QDomDocument &doc );
592
599 static QVariant colorRampToVariant( const QString &name, QgsColorRamp *ramp );
600
607 static QgsColorRamp *loadColorRamp( const QVariant &value ) SIP_FACTORY;
608
614 static QString colorToName( const QColor &color );
615
622 static QList< QColor > parseColorList( const QString &colorStr );
623
630 static QMimeData *colorToMimeData( const QColor &color ) SIP_FACTORY;
631
639 static QColor colorFromMimeData( const QMimeData *data, bool &hasAlpha SIP_OUT );
640
646 static QgsNamedColorList colorListFromMimeData( const QMimeData *data );
647
654 static QMimeData *colorListToMimeData( const QgsNamedColorList &colorList, bool allFormats = true ) SIP_FACTORY;
655
664 static bool saveColorsToGpl( QFile &file, const QString &paletteName, const QgsNamedColorList &colors );
665
674 static QgsNamedColorList importColorsFromGpl( QFile &file, bool &ok, QString &name );
675
683 static QColor parseColor( const QString &colorStr, bool strictEval = false );
684
693 static QColor parseColorWithAlpha( const QString &colorStr, bool &containsAlpha, bool strictEval = false );
694
698 static void multiplyImageOpacity( QImage *image, qreal opacity );
699
701 static void blurImageInPlace( QImage &image, QRect rect, int radius, bool alphaOnly );
702
706 static void premultiplyColor( QColor &rgb, int alpha );
707
720 static bool condenseFillAndOutline( QgsFillSymbolLayer *fill, QgsLineSymbolLayer *outline );
721
723 static void sortVariantList( QList<QVariant> &list, Qt::SortOrder order );
725 static QPointF pointOnLineWithDistance( QPointF startPoint, QPointF directionPoint, double distance );
726
728 static QStringList listSvgFiles();
729
731 static QStringList listSvgFilesAt( const QString &directory );
732
739 static QString svgSymbolNameToPath( const QString &name, const QgsPathResolver &pathResolver );
740
745 static QString svgSymbolPathToName( const QString &path, const QgsPathResolver &pathResolver );
746
754 static QList< QList< QPolygonF > > toQPolygonF( const QgsGeometry &geometry, Qgis::SymbolType type );
755
757 static QPointF polygonCentroid( const QPolygonF &points );
758
760 static QPointF polygonPointOnSurface( const QPolygonF &points, const QVector<QPolygonF> *rings = nullptr );
761
763 static bool pointInPolygon( const QPolygonF &points, QPointF point );
764
770 static double polylineLength( const QPolygonF &polyline );
771
784 static QPolygonF polylineSubstring( const QPolygonF &polyline, double startOffset, double endOffset );
785
793 static bool isSharpCorner( QPointF p1, QPointF p2, QPointF p3 );
794
802 static void appendPolyline( QPolygonF &target, const QPolygonF &line );
803
810 static QgsExpression *fieldOrExpressionToExpression( const QString &fieldOrExpression ) SIP_FACTORY;
811
818 static QString fieldOrExpressionFromExpression( QgsExpression *expression );
819
825 static QList<double> prettyBreaks( double minimum, double maximum, int classes );
826
831 static double rescaleUom( double size, Qgis::RenderUnit unit, const QVariantMap &props );
832
837 static QPointF rescaleUom( QPointF point, Qgis::RenderUnit unit, const QVariantMap &props ) SIP_PYNAME( rescalePointUom );
838
843 static QVector<qreal> rescaleUom( const QVector<qreal> &array, Qgis::RenderUnit unit, const QVariantMap &props ) SIP_PYNAME( rescaleArrayUom );
844
848 static void applyScaleDependency( QDomDocument &doc, QDomElement &ruleElem, QVariantMap &props );
849
853 static void mergeScaleDependencies( double mScaleMinDenom, double mScaleMaxDenom, QVariantMap &props );
854
860 static void parametricSvgToSld( QDomDocument &doc, QDomElement &graphicElem,
861 const QString &path,
862 const QColor &fillColor, double size, const QColor &strokeColor, double strokeWidth );
863
867 static QString getSvgParametricPath( const QString &basePath, const QColor &fillColor, const QColor &strokeColor, double strokeWidth );
868
874 Q_DECL_DEPRECATED static QSet<const QgsSymbolLayer *> toSymbolLayerPointers( const QgsFeatureRenderer *renderer, const QSet<QgsSymbolLayerId> &symbolLayerIds );
875
883 static double rendererFrameRate( const QgsFeatureRenderer *renderer );
884
899 static QgsSymbol *restrictedSizeSymbol( const QgsSymbol *s, double minSize, double maxSize, QgsRenderContext *context, double &width, double &height, bool *ok = nullptr );
900
905 static QgsStringMap evaluatePropertiesMap( const QMap<QString, QgsProperty> &propertiesMap, const QgsExpressionContext &context );
906
916 static QSize tileSize( int width, int height, double &angleRad SIP_INOUT );
917
922 static void clearSymbolLayerIds( QgsSymbol *symbol );
923
928 static void clearSymbolLayerIds( QgsSymbolLayer *symbolLayer );
929
934 static void resetSymbolLayerIds( QgsSymbol *symbol );
935
940 static void resetSymbolLayerIds( QgsSymbolLayer *symbolLayer );
941
952 static QVector< QgsGeometry > collectSymbolLayerClipGeometries( const QgsRenderContext &context, const QString &symbolLayerId, const QRectF &bounds );
953
955#ifndef SIP_RUN
956 static QgsProperty rotateWholeSymbol( double additionalRotation, const QgsProperty &property )
957 {
958 const QString exprString = property.asExpression();
959 return QgsProperty::fromExpression( QString::number( additionalRotation ) + " + (" + exprString + ')' );
960 }
961
962 static QgsProperty scaleWholeSymbol( double scaleFactor, const QgsProperty &property )
963 {
964 const QString exprString = property.asExpression();
965 return QgsProperty::fromExpression( QString::number( scaleFactor ) + "*(" + exprString + ')' );
966 }
967
968 static QgsProperty scaleWholeSymbol( double scaleFactorX, double scaleFactorY, const QgsProperty &property )
969 {
970 const QString exprString = property.asExpression();
972 ( !qgsDoubleNear( scaleFactorX, 0.0 ) ? "tostring(" + QString::number( scaleFactorX ) + "*(" + exprString + "))" : QStringLiteral( "'0'" ) ) +
973 "|| ',' || " +
974 ( !qgsDoubleNear( scaleFactorY, 0.0 ) ? "tostring(" + QString::number( scaleFactorY ) + "*(" + exprString + "))" : QStringLiteral( "'0'" ) ) );
975 }
976#endif
978
979};
980
981class QPolygonF;
982
984QList<QPolygonF> offsetLine( QPolygonF polyline, double dist, Qgis::GeometryType geometryType ) SIP_SKIP;
985
986#endif
The Qgis class provides global constants for use throughout the application.
Definition qgis.h:54
MarkerClipMode
Marker clipping modes.
Definition qgis.h:3017
LineClipMode
Line clipping modes.
Definition qgis.h:3031
ScaleMethod
Scale methods.
Definition qgis.h:588
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition qgis.h:337
RenderUnit
Rendering size units.
Definition qgis.h:4819
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
Definition qgis.h:1680
SymbolType
Symbol types.
Definition qgis.h:574
@ Hybrid
Hybrid symbol.
SymbolCoordinateReference
Symbol coordinate reference modes.
Definition qgis.h:2975
HeadType
Possible head types.
ArrowType
Possible arrow types.
Abstract base class for color ramps.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Class for parsing and evaluation of expressions (formerly called "search strings").
Abstract base class for all 2D vector feature renderers.
Abstract base class for fill symbol layers.
A geometry is the spatial representation of a feature.
Represents a patch shape for use in map legends.
Abstract base class for line symbol layers.
Base class for all map layer types.
Definition qgsmaplayer.h:76
Struct for storing maximum and minimum scales for measurements in map units.
Resolves relative paths into absolute paths and vice versa.
A store for object properties.
QString asExpression() const
Returns an expression string representing the state of the property, or an empty string if the proper...
static QgsProperty fromExpression(const QString &expression, bool isActive=true)
Returns a new ExpressionBasedProperty created from the specified expression.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
Stores properties relating to a screen.
We may need stable references to symbol layers, when pointers to symbol layers is not usable (when a ...
Contains utility functions for working with symbols and symbol layers.
static SymbolType * loadSymbol(const QDomElement &element, const QgsReadWriteContext &context)
Attempts to load a symbol from a DOM element and cast it to a particular symbol type.
static QgsSymbol * loadSymbol(const QDomElement &element, const QgsReadWriteContext &context)
Attempts to load a symbol from a DOM element.
Abstract base class for all rendered symbols.
Definition qgssymbol.h:231
QList< QPair< QColor, QString > > QgsNamedColorList
List of colors paired with a friendly display name identifying the color.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
#define str(x)
Definition qgis.cpp:38
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference)
Definition qgis.h:5883
QMap< QString, QString > QgsStringMap
Definition qgis.h:6421
#define SIP_SKIP
Definition qgis_sip.h:126
#define SIP_PYNAME(name)
Definition qgis_sip.h:81
#define SIP_OUT
Definition qgis_sip.h:58
#define SIP_FACTORY
Definition qgis_sip.h:76
#define SIP_INOUT
Definition qgis_sip.h:71
QMap< QString, QgsSymbol * > QgsSymbolMap
Definition qgsrenderer.h:48
QList< QPolygonF > offsetLine(QPolygonF polyline, double dist, Qgis::GeometryType geometryType)
calculate geometry shifted by a specified distance
QMap< QString, QgsSymbol * > QgsSymbolMap
QMap< QString, QString > QgsStringMap