OGRPolygon class
OGRPolygon
是 OGR 几何图形库中的一个类,用于表示多边形的几何图形。它是一种封闭的多边形,由一个或多个外环(OGRLinearRing
)和零个或多个内环(OGRLinearRing
)组成。多边形是平面上的一个封闭区域,可以包含其他几何图形,如点、线、其他多边形等
Public Functions
OGRPolygon()
创建一个空多边形
OGRPolygon(const OGRPolygon &other)
复制构造函数
OGRPolygon &operator=(const OGRPolygon &other)
赋值运算符
inline ChildType **begin()
返回迭代器的开始时间
inline ChildType **end()
迭代器的返回结束
begin
inline const ChildType *const *begin() const
返回迭代器的开始时间
end
inline const ChildType *const *end() const
迭代器的返回结束
getGeometryName
virtual const char *getGeometryName() const override
获取几何类型的 WKT 名称
返回: 用于此几何类型的名称,采用众所周知的文本格式。返回的指针指向静态内部字符串,不应修改或释放
getGeometryType
virtual OGRwkbGeometryType getGeometryType() const override
获取几何类型
返回: 几何类型代码
clone
virtual OGRPolygon *clone() const override
创建此对象的副本
返回: 具有与原始对象相同的几何和空间参考系统的新对象实例
hasCurveGeometry
virtual OGRBoolean hasCurveGeometry(int bLookForNonLinear = FALSE) const override
如果此几何图形是或具有曲线几何图形,则返回此几何图形