GEOS  3.14.0dev
Public Member Functions | List of all members
geos::geom::util::CoordinateOperation Class Referenceabstract

#include <CoordinateOperation.h>

Inheritance diagram for geos::geom::util::CoordinateOperation:
geos::geom::util::GeometryEditorOperation

Public Member Functions

std::unique_ptr< Geometryedit (const Geometry *geometry, const GeometryFactory *factory) override
 
virtual std::unique_ptr< CoordinateSequenceedit (const CoordinateSequence *coordinates, const Geometry *geometry)=0
 

Detailed Description

A GeometryEditorOperation which modifies the coordinate list of a Geometry. Operates on Geometry subclasses which contains a single coordinate list.

Member Function Documentation

◆ edit() [1/2]

virtual std::unique_ptr<CoordinateSequence> geos::geom::util::CoordinateOperation::edit ( const CoordinateSequence coordinates,
const Geometry geometry 
)
pure virtual

Edits the array of Coordinate from a Geometry.

Parameters
coordinatesthe coordinate array to operate on
geometrythe geometry containing the coordinate list
Returns
an edited coordinate array (which may be the same as the input)

◆ edit() [2/2]

std::unique_ptr<Geometry> geos::geom::util::CoordinateOperation::edit ( const Geometry geometry,
const GeometryFactory factory 
)
overridevirtual

Return a newly created geometry, ownership to caller

Implements geos::geom::util::GeometryEditorOperation.


The documentation for this class was generated from the following file: