4 #include <terralib_buildconfig.h> 22 const double& xf,
const double& yf)
33 double halfSize = size * 0.5;
34 s->
setPoint(0, xc - halfSize, yc - halfSize);
35 s->
setPoint(1, xc - halfSize, yc + halfSize);
36 s->
setPoint(2, xc + halfSize, yc + halfSize);
37 s->
setPoint(3, xc + halfSize, yc - halfSize);
38 s->
setPoint(4, xc - halfSize, yc - halfSize);
void push_back(Curve *ring)
It adds the curve to the curve polygon.
te::gm::Polygon * createPolygon()
A LinearRing is a LineString that is both closed and simple.
LineString is a curve with linear interpolation between points.
A point with x and y coordinate values.
void setPoint(std::size_t i, const double &x, const double &y)
It sets the value of the specified point.
te::gm::Point * createPointZ(const double &x, const double &y, const double &z)
te::gm::Point * createPoint(const double &x, const double &y)
te::gm::Polygon * createPolygonWithHole()
te::gm::GeometryCollection * createGeometryCollection()
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
void setX(const double &x)
It sets the Point x-coordinate value.
void add(Geometry *g)
It adds the geometry into the collection.
A set of geometry examples.
void setY(const double &y)
It sets the Point y-coordinate value.
It is a collection of other geometric objects.
te::gm::LinearRing * createSquare(const double &xc, const double &yc, const double &size)
void setZ(const double &z)
It sets the Point z-coordinate value.
te::gm::LineString * createLineString(const double &xi, const double &yi, const double &xf, const double &yf)