GEOS 3.14.0dev
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#pragma once
17
18#include <geos/export.h>
19#include <geos/geom/util/GeometryEditorOperation.h> // for inheritance
20
21// Forward declarations
22namespace geos {
23namespace geom {
24class Geometry;
25class CoordinateSequence;
26class GeometryFactory;
27}
28}
29
30
31namespace geos {
32namespace geom { // geos.geom
33namespace util { // geos.geom.util
34
41
42public:
43
47 std::unique_ptr<Geometry> edit(const Geometry* geometry,
48 const GeometryFactory* factory) override;
49
58 virtual std::unique_ptr<CoordinateSequence> edit(const CoordinateSequence* coordinates,
59 const Geometry* geometry) = 0;
60
61
62 ~CoordinateOperation() override = default;
63};
64
65
66
67} // namespace geos.geom.util
68} // namespace geos.geom
69} // namespace geos
70
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:70
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
Definition CoordinateOperation.h:40
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:38
Basic namespace for all GEOS functionalities.
Definition geos.h:39