Skip to content
Permalink
Browse files

Make QgsLineStringV2::fromWkbPoints private

  • Loading branch information
nyalldawson committed Nov 27, 2015
1 parent 1f33011 commit 7eb1133bc5780b8ba19cb1643e4728b39fd468a7
@@ -14,13 +14,6 @@ class QgsLineStringV2: public QgsCurveV2
QgsLineStringV2();
~QgsLineStringV2();

/** Resets the line string to match the line string in a WKB geometry.
* @param type WKB type
* @param wkb WKB representation of line geometry
* @note not available in Python bindings
*/
//void fromWkbPoints( QgsWKBTypes::Type type, const QgsConstWkbPtr& wkb );

/** Returns the specified point from inside the line string.
* @param i index of point, starting at 0 for the first point
*/
@@ -33,13 +33,6 @@ class CORE_EXPORT QgsLineStringV2: public QgsCurveV2
QgsLineStringV2();
~QgsLineStringV2();

/** Resets the line string to match the line string in a WKB geometry.
* @param type WKB type
* @param wkb WKB representation of line geometry
* @note not available in Python bindings
*/
void fromWkbPoints( QgsWKBTypes::Type type, const QgsConstWkbPtr& wkb );

/** Returns the specified point from inside the line string.
* @param i index of point, starting at 0 for the first point
*/
@@ -188,6 +181,15 @@ class CORE_EXPORT QgsLineStringV2: public QgsCurveV2
QVector<double> mM;

void importVerticesFromWkb( const QgsConstWkbPtr& wkb );

/** Resets the line string to match the line string in a WKB geometry.
* @param type WKB type
* @param wkb WKB representation of line geometry
*/
void fromWkbPoints( QgsWKBTypes::Type type, const QgsConstWkbPtr& wkb );

friend class QgsPolygonV2;

};

#endif // QGSLINESTRINGV2_H
@@ -1220,8 +1220,6 @@ void TestQgsGeometry::lineStringV2()
wkb = 0;
QCOMPARE( l16.wkbType(), QgsWKBTypes::Unknown );

//TODO - from WKB points

//to/from WKT
QgsLineStringV2 l17;
l17.setPoints( QList< QgsPointV2 >() << QgsPointV2( QgsWKBTypes::PointZM, 1, 2, 3, 4 )

0 comments on commit 7eb1133

Please sign in to comment.
You can’t perform that action at this time.