Skip to content
Permalink
Browse files

Add some docstrings

  • Loading branch information
manisandro committed Oct 8, 2015
1 parent a3159a3 commit c927073e20c920f23103f6778c6e259513acb1ba
Showing with 7 additions and 1 deletion.
  1. +2 −1 python/core/geometry/qgsgeometry.sip
  2. +1 −0 src/core/geometry/qgsgeometry.h
  3. +4 −0 src/core/geometry/qgsgeos.h
@@ -123,10 +123,11 @@ class QgsGeometry
size_t wkbSize() const;

/** Returns a geos geometry. QgsGeometry retains ownership of the geometry, so the returned object should not be deleted.
@param precision The precision of the grid to which to snap the geometry vertices. If 0, no snapping is performed.
@note this method was added in version 1.1
@note not available in python bindings
*/
// const GEOSGeometry* asGeos() const;
// const GEOSGeometry* asGeos( double precision = 0 ) const;

/** Returns type of the geometry as a WKB type (point / linestring / polygon etc.)
* @see type
@@ -158,6 +158,7 @@ class CORE_EXPORT QgsGeometry
size_t wkbSize() const;

/** Returns a geos geometry. QgsGeometry retains ownership of the geometry, so the returned object should not be deleted.
@param precision The precision of the grid to which to snap the geometry vertices. If 0, no snapping is performed.
@note this method was added in version 1.1
@note not available in python bindings
*/
@@ -29,6 +29,10 @@ class QgsPolygonV2;
class CORE_EXPORT QgsGeos: public QgsGeometryEngine
{
public:
/** GEOS geometry engine constructor
* @param geometry The geometry
* @param precision The precision of the grid to which to snap the geometry vertices. If 0, no snapping is performed.
*/
QgsGeos( const QgsAbstractGeometryV2* geometry, double precision = 0 );
~QgsGeos();

0 comments on commit c927073

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