GEOS
3.9.1dev
|
#include <DefaultCoordinateSequenceFactory.h>
Public Member Functions | |
std::unique_ptr< CoordinateSequence > | create () const finaloverride |
Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated. More... | |
std::unique_ptr< CoordinateSequence > | create (std::vector< Coordinate > *coords, std::size_t dims=0) const finaloverride |
Returns a CoordinateSequence based on the given array. More... | |
std::unique_ptr< CoordinateSequence > | create (std::vector< Coordinate > &&coords, std::size_t dims=0) const finaloverride |
Returns a CoordinateSequence based on the given array. More... | |
std::unique_ptr< CoordinateSequence > | create (std::size_t size, std::size_t dims=0) const finaloverride |
Creates a CoordinateSequence of the specified size and dimension. More... | |
std::unique_ptr< CoordinateSequence > | create (const CoordinateSequence &coordSeq) const finaloverride |
Creates a CoordinateSequence which is a copy of the given one. More... | |
Public Member Functions inherited from geos::geom::CoordinateSequenceFactory | |
virtual | ~CoordinateSequenceFactory ()=default |
Static Public Member Functions | |
static const CoordinateSequenceFactory * | instance () |
Definition at line 25 of file DefaultCoordinateSequenceFactory.h.
|
inlinefinaloverridevirtual |
Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated.
Implements geos::geom::CoordinateSequenceFactory.
Definition at line 28 of file DefaultCoordinateSequenceFactory.h.
|
inlinefinaloverridevirtual |
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.
coordinates | the coordinates |
dimension | 0, 2 or 3 with 0 indicating unknown at this time. |
Implements geos::geom::CoordinateSequenceFactory.
Definition at line 32 of file DefaultCoordinateSequenceFactory.h.
|
inlinefinaloverridevirtual |
Returns a CoordinateSequence based on the given array.
coordinates | the coordinates |
dimension | 0, 2 or 3 with 0 indicating unknown at this time. |
Implements geos::geom::CoordinateSequenceFactory.
Definition at line 36 of file DefaultCoordinateSequenceFactory.h.
|
inlinefinaloverridevirtual |
Creates a CoordinateSequence of the specified size and dimension.
For this to be useful, the CoordinateSequence implementation must be mutable.
size | the number of coordinates in the sequence |
dimension | the dimension of the coordinates in the sequence (0=unknown, 2, or 3 - ignored if not user specifiable) |
Implements geos::geom::CoordinateSequenceFactory.
Definition at line 40 of file DefaultCoordinateSequenceFactory.h.
|
inlinefinaloverridevirtual |
Creates a CoordinateSequence which is a copy of the given one.
This method must handle null arguments by creating an empty sequence.
coordSeq | the coordinate sequence to copy |
Implements geos::geom::CoordinateSequenceFactory.
Definition at line 52 of file DefaultCoordinateSequenceFactory.h.
|
static |