@@ -96,15 +96,25 @@ class CORE_EXPORT QgsGeometry
9696 static QgsGeometry* fromMultiPolygon ( const QgsMultiPolygon& multipoly );
9797 /* * construct geometry from a rectangle */
9898 static QgsGeometry* fromRect ( const QgsRect& rect );
99+ /* *
100+ Set the geometry, feeding in a geometry in GEOS format.
101+ This class will take ownership of the buffer.
102+ */
103+ void fromGeos ( GEOSGeometry* geos );
104+ /* *
105+ Set the geometry, feeding in the buffer containing OGC Well-Known Binary and the buffer's length.
106+ This class will take ownership of the buffer.
107+ */
108+ void fromWkb ( unsigned char * wkb, size_t length );
99109
100110 /* *
101111 Returns the buffer containing this geometry in WKB format.
102112 You may wish to use in conjunction with wkbSize().
103113 */
104- unsigned char * wkbBuffer ();
114+ unsigned char * asWkb ();
105115
106116 /* *
107- Returns the size of the WKB in wkbBuffer ().
117+ Returns the size of the WKB in asWkb ().
108118 */
109119 size_t wkbSize ();
110120
@@ -117,17 +127,7 @@ class CORE_EXPORT QgsGeometry
117127 /* * Returns true if wkb of the geometry is of WKBMulti* type */
118128 bool isMultipart ();
119129
120- /* *
121- Set the geometry, feeding in a geometry in GEOS format.
122- This class will take ownership of the buffer.
123- */
124- void setGeos ( GEOSGeometry* geos );
125130
126- /* *
127- Set the geometry, feeding in the buffer containing OGC Well-Known Binary and the buffer's length.
128- This class will take ownership of the buffer.
129- */
130- void setWkbAndOwnership ( unsigned char * wkb, size_t length );
131131
132132
133133 double distance ( QgsGeometry& geom );
@@ -151,7 +151,7 @@ class CORE_EXPORT QgsGeometry
151151 account the first vertex is equal to the last vertex (and will
152152 skip equal vertex positions).
153153 */
154- void adjacentVerticies ( int atVertex, int & beforeVertex, int & afterVertex );
154+ void adjacentVertices ( int atVertex, int & beforeVertex, int & afterVertex );
155155
156156
157157 /* * Insert a new vertex before the given vertex index,
@@ -245,7 +245,10 @@ class CORE_EXPORT QgsGeometry
245245 @param topological true if topological editing is enabled
246246 @topologyTestPoints OUT: points that need to be tested for topological completeness in the dataset
247247 @return 0 in case of success, 1 if geometry has not been split, error else*/
248- int splitGeometry ( const QList<QgsPoint>& splitLine, QList<QgsGeometry*>& newGeometries, bool topological, QList<QgsPoint>& topologyTestPoints );
248+ int splitGeometry ( const QList<QgsPoint>& splitLine,
249+ QList<QgsGeometry*>&newGeometries,
250+ bool topological,
251+ QList<QgsPoint>& topologyTestPoints );
249252
250253 /* *Changes this geometry such that it does not intersect the other geometry
251254 @param other geometry that should not be intersect
0 commit comments