GEOS
3.3.3
|
Creates CoordinateSequences internally represented as an array of Coordinates. More...
#include <geos.h>
Public Member Functions | |
CoordinateSequence * | create (std::vector< Coordinate > *coords) const |
Returns a CoordinateArraySequence based on the given vector (the vector is not copied - callers give up ownership). | |
CoordinateSequence * | create (std::vector< Coordinate > *coords, std::size_t dims) const |
Returns a CoordinateSequence based on the given array. | |
CoordinateSequence * | create (std::size_t size, std::size_t dimension=0) const |
Static Public Member Functions | |
static const CoordinateSequenceFactory * | instance () |
Returns the singleton instance of CoordinateArraySequenceFactory. |
Creates CoordinateSequences internally represented as an array of Coordinates.
|
virtual |
Returns a CoordinateSequence based on the given array.
Whether the array is copied or simply referenced is implementation-dependent. For this reason caller does give up ownership of it. Implementations that will not copy it will need take care of deleting it. This method must handle null arguments by creating an empty sequence. @param coordinates the coordinates
dimension | 0, 2 or 3 with 0 indicating unknown at this time. |
Implements geos::geom::CoordinateSequenceFactory.
|
virtual |
Implements geos::geom::CoordinateSequenceFactory.