Skip to content

Commit 7eb1133

Browse files
committed
Make QgsLineStringV2::fromWkbPoints private
1 parent 1f33011 commit 7eb1133

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

python/core/geometry/qgslinestringv2.sip

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ class QgsLineStringV2: public QgsCurveV2
1414
QgsLineStringV2();
1515
~QgsLineStringV2();
1616

17-
/** Resets the line string to match the line string in a WKB geometry.
18-
* @param type WKB type
19-
* @param wkb WKB representation of line geometry
20-
* @note not available in Python bindings
21-
*/
22-
//void fromWkbPoints( QgsWKBTypes::Type type, const QgsConstWkbPtr& wkb );
23-
2417
/** Returns the specified point from inside the line string.
2518
* @param i index of point, starting at 0 for the first point
2619
*/

src/core/geometry/qgslinestringv2.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ class CORE_EXPORT QgsLineStringV2: public QgsCurveV2
3333
QgsLineStringV2();
3434
~QgsLineStringV2();
3535

36-
/** Resets the line string to match the line string in a WKB geometry.
37-
* @param type WKB type
38-
* @param wkb WKB representation of line geometry
39-
* @note not available in Python bindings
40-
*/
41-
void fromWkbPoints( QgsWKBTypes::Type type, const QgsConstWkbPtr& wkb );
42-
4336
/** Returns the specified point from inside the line string.
4437
* @param i index of point, starting at 0 for the first point
4538
*/
@@ -188,6 +181,15 @@ class CORE_EXPORT QgsLineStringV2: public QgsCurveV2
188181
QVector<double> mM;
189182

190183
void importVerticesFromWkb( const QgsConstWkbPtr& wkb );
184+
185+
/** Resets the line string to match the line string in a WKB geometry.
186+
* @param type WKB type
187+
* @param wkb WKB representation of line geometry
188+
*/
189+
void fromWkbPoints( QgsWKBTypes::Type type, const QgsConstWkbPtr& wkb );
190+
191+
friend class QgsPolygonV2;
192+
191193
};
192194

193195
#endif // QGSLINESTRINGV2_H

tests/src/core/testqgsgeometry.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,8 +1220,6 @@ void TestQgsGeometry::lineStringV2()
12201220
wkb = 0;
12211221
QCOMPARE( l16.wkbType(), QgsWKBTypes::Unknown );
12221222

1223-
//TODO - from WKB points
1224-
12251223
//to/from WKT
12261224
QgsLineStringV2 l17;
12271225
l17.setPoints( QList< QgsPointV2 >() << QgsPointV2( QgsWKBTypes::PointZM, 1, 2, 3, 4 )

0 commit comments

Comments
 (0)