RepeatedPointRemover.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2019 Daniel Baston <dbaston@gmail.com>
*
* 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/geom/CoordinateSequence.h>
#include <geos/geom/Geometry.h>
namespace geos {
namespace operation {
namespace valid {
class GEOS_DLL RepeatedPointRemover {
public:
static std::unique_ptr<geom::CoordinateSequence>
removeRepeatedPoints(
const geom::CoordinateSequence* seq,
double tolerance = 0.0);
static std::unique_ptr<geom::CoordinateSequence>
removeRepeatedAndInvalidPoints(
const geom::CoordinateSequence* seq,
double tolerance = 0.0);
static std::unique_ptr<geom::Geometry>
removeRepeatedPoints(
const geom::Geometry* geom,
double tolerance = 0.0);
};
}
}
}
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::operation::valid::RepeatedPointRemover
Definition RepeatedPointRemover.h:28
geos::operation::valid::RepeatedPointRemover::removeRepeatedPoints
static std::unique_ptr< geom::CoordinateSequence > removeRepeatedPoints(const geom::CoordinateSequence *seq, double tolerance=0.0)
geos::geom
Definition Angle.h:26
geos::operation::valid
Provides classes for testing the validity of geometries.
Definition namespaces.h:289
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38