17#include <geos/export.h>
20#include <geos/geom/CoordinateFilter.h>
21#include <geos/geom/CoordinateSequence.h>
42 std::unique_ptr<CoordinateSequence>
clone()
const override;
52 void toVector(std::vector<Coordinate>&)
const override;
59 std::size_t dimension = 0);
63 std::size_t dimension = 0);
117 void setPoints(
const std::vector<Coordinate>& v)
override;
120 double value)
override;
131 for(
const auto& coord : vect) {
137 std::vector<Coordinate> vect;
138 mutable std::size_t dimension;
The default implementation of CoordinateSequence.
Definition: CoordinateArraySequence.h:35
std::unique_ptr< CoordinateSequence > clone() const override
Returns a deep copy of this collection.
void toVector(std::vector< Coordinate > &) const override
const Coordinate & getAt(std::size_t pos) const override
Returns a read-only reference to Coordinate at position i.
std::size_t getSize() const override
Returns the number of Coordinates (actual or otherwise, as this implementation may not store its data...
void expandEnvelope(Envelope &env) const override
void clear()
Reset this CoordinateArraySequence to the empty state.
Definition: CoordinateArraySequence.h:84
CoordinateArraySequence(std::vector< Coordinate > *coords, std::size_t dimension=0)
Construct sequence taking ownership of given Coordinate vector.
CoordinateArraySequence(std::size_t n, std::size_t dimension=0)
Construct sequence allocating space for n coordinates.
void setAt(const Coordinate &c, std::size_t pos) override
Copy Coordinate c to position pos.
CoordinateArraySequence()
Construct an empty sequence.
void add(std::size_t i, const Coordinate &coord, bool allowRepeated)
Inserts the specified coordinate at the specified position in this list.
void setPoints(const std::vector< Coordinate > &v) override
Substitute Coordinate list with a copy of the given vector.
void getAt(std::size_t i, Coordinate &c) const override
Copy Coordinate at position i to Coordinate c.
std::size_t getDimension() const override
void setOrdinate(std::size_t index, std::size_t ordinateIndex, double value) override
void add(const Coordinate &c)
Add a Coordinate to the list.
void add(const Coordinate &c, bool allowRepeated)
Add a coordinate.
CoordinateArraySequence(std::vector< Coordinate > &&coords, std::size_t dimension=0)
Construct sequence moving from given Coordinate vector.
bool isEmpty() const override
Returns true it list contains no coordinates.
Definition: CoordinateArraySequence.h:71
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
Definition: CoordinateFilter.h:41
virtual void filter_ro(const Coordinate *)
Performs an operation with coord.
Definition: CoordinateFilter.h:63
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
CoordinateArraySequence DefaultCoordinateSequence
This is for backward API compatibility.
Definition: CoordinateArraySequence.h:142
Basic namespace for all GEOS functionalities.
Definition: geos.h:39