File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -24,25 +24,20 @@ class QgsMultiCurve: QgsGeometryCollection
24
24
25
25
virtual QgsMultiCurve *clone() const /Factory/;
26
26
27
- virtual QgsMultiCurve *toCurveType() const /Factory/ ;
27
+ virtual void clear() ;
28
28
29
+ virtual QgsMultiCurve *toCurveType() const /Factory/;
29
30
30
31
virtual bool fromWkt( const QString &wkt );
31
32
32
-
33
33
virtual QDomElement asGML2( QDomDocument &doc, int precision = 17, const QString &ns = "gml" ) const;
34
34
35
35
virtual QDomElement asGML3( QDomDocument &doc, int precision = 17, const QString &ns = "gml" ) const;
36
36
37
37
virtual QString asJSON( int precision = 17 ) const;
38
38
39
-
40
39
virtual bool addGeometry( QgsAbstractGeometry *g /Transfer/ );
41
40
42
- %Docstring
43
- Adds a geometry and takes ownership. Returns true in case of success
44
- :rtype: bool
45
- %End
46
41
47
42
QgsMultiCurve *reversed() const /Factory/;
48
43
%Docstring
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ QgsMultiCurve *QgsMultiCurve::clone() const
38
38
return new QgsMultiCurve ( *this );
39
39
}
40
40
41
+ void QgsMultiCurve::clear ()
42
+ {
43
+ QgsGeometryCollection::clear ();
44
+ mWkbType = QgsWkbTypes::MultiCurve;
45
+ }
46
+
41
47
QgsMultiCurve *QgsMultiCurve::toCurveType () const
42
48
{
43
49
return clone ();
Original file line number Diff line number Diff line change @@ -31,18 +31,12 @@ class CORE_EXPORT QgsMultiCurve: public QgsGeometryCollection
31
31
QgsMultiCurve ();
32
32
QString geometryType () const override ;
33
33
QgsMultiCurve *clone () const override SIP_FACTORY;
34
+ void clear () override ;
34
35
QgsMultiCurve *toCurveType () const override SIP_FACTORY;
35
-
36
36
bool fromWkt ( const QString &wkt ) override ;
37
-
38
- // inherited: int wkbSize() const;
39
- // inherited: unsigned char* asWkb( int& binarySize ) const;
40
- // inherited: QString asWkt( int precision = 17 ) const;
41
37
QDomElement asGML2 ( QDomDocument &doc, int precision = 17 , const QString &ns = " gml" ) const override ;
42
38
QDomElement asGML3 ( QDomDocument &doc, int precision = 17 , const QString &ns = " gml" ) const override ;
43
39
QString asJSON ( int precision = 17 ) const override ;
44
-
45
- // ! Adds a geometry and takes ownership. Returns true in case of success
46
40
bool addGeometry ( QgsAbstractGeometry *g SIP_TRANSFER ) override ;
47
41
48
42
/* * Returns a copy of the multi curve, where each component curve has had its line direction reversed.
You can’t perform that action at this time.
0 commit comments