GEOS  3.9.1dev
Public Member Functions | Static Public Member Functions | List of all members
geos::geom::CoordinateArraySequenceFactory Class Reference

Creates CoordinateSequences internally represented as an array of Coordinates. More...

#include <geos.h>

Inheritance diagram for geos::geom::CoordinateArraySequenceFactory:
[legend]
Collaboration diagram for geos::geom::CoordinateArraySequenceFactory:
[legend]

Public Member Functions

std::unique_ptr< CoordinateSequencecreate () const override
 Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated. More...
 
std::unique_ptr< CoordinateSequencecreate (std::vector< Coordinate > *coords, std::size_t dims=0) const override
 Returns a CoordinateSequence based on the given array. More...
 
std::unique_ptr< CoordinateSequencecreate (std::vector< Coordinate > &&coords, std::size_t dims=0) const override
 Returns a CoordinateSequence based on the given array. More...
 
std::unique_ptr< CoordinateSequencecreate (std::size_t size, std::size_t dimension=0) const override
 
std::unique_ptr< CoordinateSequencecreate (const CoordinateSequence &coordSeq) const override
 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 CoordinateSequenceFactoryinstance ()
 Returns the singleton instance of CoordinateArraySequenceFactory. More...
 

Detailed Description

Creates CoordinateSequences internally represented as an array of Coordinates.

Definition at line 43 of file CoordinateArraySequenceFactory.h.

Member Function Documentation

std::unique_ptr<CoordinateSequence> geos::geom::CoordinateArraySequenceFactory::create ( ) const
overridevirtual

Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated.

Implements geos::geom::CoordinateSequenceFactory.

std::unique_ptr<CoordinateSequence> geos::geom::CoordinateArraySequenceFactory::create ( std::vector< Coordinate > *  coordinates,
std::size_t  dimension = 0 
) const
overridevirtual

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.

Parameters
coordinatesthe coordinates
dimension0, 2 or 3 with 0 indicating unknown at this time.

Implements geos::geom::CoordinateSequenceFactory.

std::unique_ptr<CoordinateSequence> geos::geom::CoordinateArraySequenceFactory::create ( std::vector< Coordinate > &&  coordinates,
std::size_t  dimension = 0 
) const
overridevirtual

Returns a CoordinateSequence based on the given array.

Parameters
coordinatesthe coordinates
dimension0, 2 or 3 with 0 indicating unknown at this time.

Implements geos::geom::CoordinateSequenceFactory.

std::unique_ptr<CoordinateSequence> geos::geom::CoordinateArraySequenceFactory::create ( std::size_t  size,
std::size_t  dimension = 0 
) const
overridevirtual
See also
CoordinateSequenceFactory::create(std::size_t, int)

Implements geos::geom::CoordinateSequenceFactory.

std::unique_ptr<CoordinateSequence> geos::geom::CoordinateArraySequenceFactory::create ( const CoordinateSequence coordSeq) const
overridevirtual

Creates a CoordinateSequence which is a copy of the given one.

This method must handle null arguments by creating an empty sequence.

Parameters
coordSeqthe coordinate sequence to copy

Implements geos::geom::CoordinateSequenceFactory.

static const CoordinateSequenceFactory* geos::geom::CoordinateArraySequenceFactory::instance ( )
static

Returns the singleton instance of CoordinateArraySequenceFactory.


The documentation for this class was generated from the following file: