GEOS 3.6.2
CoordinateSequenceFactory.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 * Last port: geom/CoordinateSequenceFactory.java r591 (JTS-1.12)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
20#define GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
21
22
23#include <geos/export.h>
24#include <vector>
25
26//#include <geos/geom/Coordinate.h>
27#include <geos/inline.h>
28
29// Forward declarations
30namespace geos {
31 namespace geom {
33 class Coordinate;
34 }
35}
36
37namespace geos {
38namespace geom { // geos::geom
39
48public:
49
54 virtual CoordinateSequence *create() const=0;
55
72 std::vector<Coordinate> *coordinates,
73 std::size_t dimension=0 ) const=0;
74
85 virtual CoordinateSequence *create(std::size_t size,
86 std::size_t dimension=0) const=0;
87
95 virtual CoordinateSequence *create(const CoordinateSequence &coordSeq) const=0;
96
98};
99
100} // namespace geos::geom
101} // namespace geos
102
103//#ifdef GEOS_INLINE
104//# include "geos/geom/CoordinateSequenceFactory.inl"
105//#endif
106
107#endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
A factory to create concrete instances of CoordinateSequences.
Definition CoordinateSequenceFactory.h:47
virtual CoordinateSequence * create(std::size_t size, std::size_t dimension=0) const =0
Creates a CoordinateSequence of the specified size and dimension.
virtual CoordinateSequence * create(std::vector< Coordinate > *coordinates, std::size_t dimension=0) const =0
Returns a CoordinateSequence based on the given array.
virtual CoordinateSequence * create(const CoordinateSequence &coordSeq) const =0
Creates a CoordinateSequence which is a copy of the given one.
virtual CoordinateSequence * create() const =0
Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated.
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
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25