GEOS  3.8.0dev
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 <memory>
25 #include <vector>
26 
27 //#include <geos/geom/Coordinate.h>
28 #include <geos/inline.h>
29 
30 // Forward declarations
31 namespace geos {
32 namespace geom {
33 class CoordinateSequence;
34 class Coordinate;
35 }
36 }
37 
38 namespace geos {
39 namespace geom { // geos::geom
40 
48 class GEOS_DLL CoordinateSequenceFactory {
49 public:
50 
55  virtual std::unique_ptr<CoordinateSequence> create() const = 0;
56 
72  virtual std::unique_ptr<CoordinateSequence> create(
73  std::vector<Coordinate>* coordinates,
74  std::size_t dimension = 0) const = 0;
75 
86  virtual std::unique_ptr<CoordinateSequence> create(std::size_t size,
87  std::size_t dimension = 0) const = 0;
88 
96  virtual std::unique_ptr<CoordinateSequence> create(const CoordinateSequence& coordSeq) const = 0;
97 
98  virtual ~CoordinateSequenceFactory();
99 };
100 
101 } // namespace geos::geom
102 } // namespace geos
103 
104 //#ifdef GEOS_INLINE
105 //# include "geos/geom/CoordinateSequenceFactory.inl"
106 //#endif
107 
108 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
A factory to create concrete instances of CoordinateSequences.
Definition: CoordinateSequenceFactory.h:48
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58