CoordinateOperation.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/util/GeometryEditorOperation.h> // for inheritance
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
class CoordinateSequence;
class GeometryFactory;
}
}
namespace geos {
namespace geom { // geos.geom
namespace util { // geos.geom.util
class GEOS_DLL CoordinateOperation: public GeometryEditorOperation {
public:
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;
~CoordinateOperation() override = default;
};
} // namespace geos.geom.util
} // namespace geos.geom
} // namespace geos
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
geos::geom::GeometryFactory
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:70
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::util::CoordinateOperation
Definition CoordinateOperation.h:40
geos::geom::util::CoordinateOperation::edit
std::unique_ptr< Geometry > edit(const Geometry *geometry, const GeometryFactory *factory) override
geos::geom::util::CoordinateOperation::edit
virtual std::unique_ptr< CoordinateSequence > edit(const CoordinateSequence *coordinates, const Geometry *geometry)=0
geos::geom::util::GeometryEditorOperation
Definition GeometryEditorOperation.h:38
geos::geom::util
Provides classes that parse and modify Geometry objects.
Definition ComponentCoordinateExtracter.h:28
geos::geom
Definition Angle.h:26
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38