GEOS 3.9.1
CoordinateOperation.h
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
23namespace geos {
24namespace geom {
25class Geometry;
26class CoordinateSequence;
27class GeometryFactory;
28}
29}
30
31
32namespace geos {
33namespace geom { // geos.geom
34namespace util { // geos.geom.util
35
42
43public:
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
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Definition: CoordinateOperation.h:41
std::unique_ptr< Geometry > edit(const Geometry *geometry, const GeometryFactory *factory) override
virtual std::unique_ptr< CoordinateSequence > edit(const CoordinateSequence *coordinates, const Geometry *geometry)=0
Definition: GeometryEditorOperation.h:39
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26