GEOS 3.6.2
CoordinateArraySequenceFactory.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#ifndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
16#define GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
17
18
19#include <geos/export.h>
20#include <vector>
21
22#include <geos/geom/CoordinateSequenceFactory.h> // for inheritance
23
24#include <geos/inline.h>
25
26// Forward declarations
27namespace geos {
28 namespace geom {
29 class Coordinate;
30 }
31}
32
33namespace geos {
34namespace geom { // geos::geom
35
44
45public:
47
48 CoordinateSequence *create(std::vector<Coordinate> *coords, std::size_t dims=0) const;
49
51 CoordinateSequence *create(std::size_t size, std::size_t dimension=0) const;
52
54
59};
60
63
64} // namespace geos::geom
65} // namespace geos
66
67#ifdef GEOS_INLINE
68# include "geos/geom/CoordinateArraySequenceFactory.inl"
69#endif
70
71#endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
Creates CoordinateSequences internally represented as an array of Coordinates.
Definition CoordinateArraySequenceFactory.h:43
CoordinateSequence * create(std::size_t size, std::size_t dimension=0) const
static const CoordinateSequenceFactory * instance()
Returns the singleton instance of CoordinateArraySequenceFactory.
CoordinateSequence * create(const CoordinateSequence &coordSeq) const
Creates a CoordinateSequence which is a copy of the given one.
CoordinateSequence * create() const
Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated.
CoordinateSequence * create(std::vector< Coordinate > *coords, std::size_t dims=0) const
Returns a CoordinateSequence based on the given array.
A factory to create concrete instances of CoordinateSequences.
Definition CoordinateSequenceFactory.h:47
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory
This is for backward API compatibility.
Definition CoordinateArraySequenceFactory.h:62
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25