CurvePolygon.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2024 ISciences, LLC
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <geos/geom/SurfaceImpl.h>
namespace geos {
namespace geom {
class GEOS_DLL CurvePolygon : public SurfaceImpl<Curve> {
friend class GeometryFactory;
public:
~CurvePolygon() override = default;
double getArea() const override;
std::unique_ptr<Geometry> getBoundary() const override;
std::unique_ptr<CoordinateSequence> getCoordinates() const override;
std::string getGeometryType() const override;
GeometryTypeId getGeometryTypeId() const override;
bool hasCurvedComponents() const override;
void normalize() override;
protected:
using SurfaceImpl::SurfaceImpl;
Geometry* cloneImpl() const override;
int
getSortIndex() const override
{
return SORTINDEX_CURVEPOLYGON;
}
Geometry* reverseImpl() const override;
};
}
}
geos::geom
Definition Angle.h:26
geos::geom::GeometryTypeId
GeometryTypeId
Geometry types.
Definition Geometry.h:73
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38