GEOS 3.11.1
|
A factory to create concrete instances of CoordinateSequence
s.
More...
#include <CoordinateSequenceFactory.h>
Public Member Functions | |
virtual std::unique_ptr< CoordinateSequence > | create () const =0 |
Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated. More... | |
virtual std::unique_ptr< CoordinateSequence > | create (std::vector< Coordinate > *coordinates, std::size_t dimension=0) const =0 |
Returns a CoordinateSequence based on the given array. More... | |
virtual std::unique_ptr< CoordinateSequence > | create (std::vector< Coordinate > &&coordinates, std::size_t dimension=0) const =0 |
Returns a CoordinateSequence based on the given array. More... | |
virtual std::unique_ptr< CoordinateSequence > | create (std::size_t size, std::size_t dimension=0) const =0 |
Creates a CoordinateSequence of the specified size and dimension. More... | |
virtual std::unique_ptr< CoordinateSequence > | create (const CoordinateSequence &coordSeq) const =0 |
Creates a CoordinateSequence which is a copy of the given one. More... | |
A factory to create concrete instances of CoordinateSequence
s.
Used to configure GeometryFactory
s to provide specific kinds of CoordinateSequences.
|
pure virtual |
Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated.
Implemented in geos::geom::CoordinateArraySequenceFactory.
|
pure virtual |
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 |
Implemented in geos::geom::CoordinateArraySequenceFactory.
|
pure virtual |
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) |
Implemented in geos::geom::CoordinateArraySequenceFactory.
|
pure virtual |
Returns a CoordinateSequence based on the given array.
coordinates | the coordinates |
dimension | 0, 2 or 3 with 0 indicating unknown at this time. |
|
pure 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.
coordinates | the coordinates |
dimension | 0, 2 or 3 with 0 indicating unknown at this time. |