15 #ifndef GEOS_GEOM_COORDINATEARRAYSEQUENCE_H
16 #define GEOS_GEOM_COORDINATEARRAYSEQUENCE_H
18 #include <geos/export.h>
21 #include <geos/geom/CoordinateSequence.h>
23 #include <geos/inline.h>
47 const Coordinate& getAt(std::size_t pos)
const override;
50 void getAt(std::size_t i,
Coordinate& c)
const override;
53 size_t getSize()
const override;
56 const std::vector<Coordinate>* toVector()
const override;
59 void toVector(std::vector<Coordinate>&)
const override;
66 std::size_t dimension = 0);
73 bool isEmpty()
const override {
return empty(); }
75 bool empty()
const {
return vect->empty(); }
82 void add(
const Coordinate& c,
bool allowRepeated)
override;
95 void add(std::size_t i,
const Coordinate& coord,
bool allowRepeated)
override;
97 void setAt(
const Coordinate& c, std::size_t pos)
override;
99 void deleteAt(std::size_t pos)
override;
101 std::string toString()
const override;
103 void setPoints(
const std::vector<Coordinate> &v)
override;
105 double getOrdinate(std::size_t index,
106 size_t ordinateIndex)
const override;
108 void setOrdinate(std::size_t index, std::size_t ordinateIndex,
109 double value)
override;
111 void expandEnvelope(
Envelope &env)
const override;
113 std::size_t getDimension()
const override;
122 std::vector<Coordinate> *vect;
123 mutable std::size_t dimension;
132 #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCE_H
CoordinateArraySequence DefaultCoordinateSequence
This is for backward API compatibility.
Definition: CoordinateArraySequence.h:127
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:59
The default implementation of CoordinateSequence.
Definition: CoordinateArraySequence.h:37
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
bool isEmpty() const override
Returns true it list contains no coordinates.
Definition: CoordinateArraySequence.h:73
Definition: CoordinateFilter.h:43
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59
void clear()
Reset this CoordinateArraySequence to the empty state.
Definition: CoordinateArraySequence.h:78