GEOS  3.9.1dev
CoordinateOperation.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2001-2002 Vivid Solutions Inc.
7  * Copyright (C) 2006 Refractions Research Inc.
8  *
9  * This is free software; you can redistribute and/or modify it under
10  * the terms of the GNU Lesser General Public Licence as published
11  * by the Free Software Foundation.
12  * See the COPYING file for more information.
13  *
14  **********************************************************************/
15 
16 #ifndef GEOS_GEOM_UTIL_COORDINATEOPERATION_H
17 #define GEOS_GEOM_UTIL_COORDINATEOPERATION_H
18 
19 #include <geos/export.h>
20 #include <geos/geom/util/GeometryEditorOperation.h> // for inheritance
21 
22 // Forward declarations
23 namespace geos {
24 namespace geom {
25 class Geometry;
26 class CoordinateSequence;
27 class GeometryFactory;
28 }
29 }
30 
31 
32 namespace geos {
33 namespace geom { // geos.geom
34 namespace util { // geos.geom.util
35 
42 
43 public:
44 
48  std::unique_ptr<Geometry> edit(const Geometry* geometry,
49  const GeometryFactory* factory) override;
50 
59  virtual std::unique_ptr<CoordinateSequence> edit(const CoordinateSequence* coordinates,
60  const Geometry* geometry) = 0;
61 
62 
63  ~CoordinateOperation() override = default;
64 };
65 
66 
67 
68 } // namespace geos.geom.util
69 } // namespace geos.geom
70 } // namespace geos
71 
72 #endif
#define GEOS_DLL
Definition: export.h:28
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Basic namespace for all GEOS functionalities.
The internal representation of a list of coordinates inside a Geometry.