Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

geos::geom::CoordinateArraySequenceFactory Class Reference

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

#include <geos.h>

Inheritance diagram for geos::geom::CoordinateArraySequenceFactory:

geos::geom::CoordinateSequenceFactory List of all members.

Public Member Functions

CoordinateSequencecreate (std::vector< Coordinate > *coords) const
 Returns a CoordinateArraySequence based on the given vector (the vector is not copied - callers give up ownership).
CoordinateSequencecreate (std::vector< Coordinate > *coords, std::size_t dims) const
 Returns a CoordinateSequence based on the given array.
CoordinateSequencecreate (std::size_t size, std::size_t dimension=0) const

Static Public Member Functions

const CoordinateSequenceFactoryinstance ()
 Returns the singleton instance of CoordinateArraySequenceFactory.

Detailed Description

Creates CoordinateSequences internally represented as an array of Coordinates.


Member Function Documentation

CoordinateSequence* geos::geom::CoordinateArraySequenceFactory::create std::size_t  size,
std::size_t  dimension = 0
const [virtual]
 

See also:
CoordinateSequenceFactory::create(std::size_t, int)

Implements geos::geom::CoordinateSequenceFactory.

CoordinateSequence* geos::geom::CoordinateArraySequenceFactory::create std::vector< Coordinate > *  coords,
std::size_t  dims
const [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.

Parameters:
coordinates the coordinates
dimension 0, 2 or 3 with 0 indicating unknown at this time.

Implements geos::geom::CoordinateSequenceFactory.


The documentation for this class was generated from the following file:
Generated on Sun Aug 21 23:21:02 2011 for GEOS by  doxygen 1.3.9.1