Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make QgsLineStringV2::fromWkbPoints private
- Loading branch information
|
@@ -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 ) |
|
|