QGIS/python/core/geometry/qgspolygonv2.sip
Nyall Dawson 4e18d54555 Tests and fixes for QgsPolygonV2
- Setting exterior ring will force all interior rings to match
dimensionality of exterior ring
- add equality operator
- use correct WKB types for rings when creating polygon from WKB
- segmentize curves when setting exterior ring with curved segments
- fix export to GML2/3 (should use LinearRing, not LineString as
ring element tag)
2015-12-15 22:36:41 +11:00

32 lines
1.0 KiB
Plaintext

class QgsPolygonV2: public QgsCurvePolygonV2
{
%TypeHeaderCode
#include <qgspolygonv2.h>
%End
public:
QgsPolygonV2();
bool operator==( const QgsPolygonV2& other ) const;
bool operator!=( const QgsPolygonV2& other ) const;
virtual QString geometryType() const;
virtual QgsPolygonV2* clone() const;
virtual bool fromWkb( const unsigned char* wkb );
// inherited: bool fromWkt( const QString &wkt );
int wkbSize() const;
unsigned char* asWkb( int& binarySize ) const;
// inherited: QString asWkt( int precision = 17 ) const;
// inherited: QDomElement asGML2( QDomDocument& doc, int precision = 17, const QString& ns = "gml" ) const;
// inherited: QDomElement asGML3( QDomDocument& doc, int precision = 17, const QString& ns = "gml" ) const;
// inherited: QString asJSON( int precision = 17 ) const;
QgsPolygonV2* surfaceToPolygon() const;
void addInteriorRing( QgsCurveV2* ring /Transfer/ );
//overridden to handle LineString25D rings
virtual void setExteriorRing( QgsCurveV2* ring /Transfer/ );
};