GEOS 3.9.1
RepeatedPointRemover.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2019 Daniel Baston <dbaston@gmail.com>
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#ifndef GEOS_OP_VALID_REPEATEDPOINTREMOVER_H
16#define GEOS_OP_VALID_REPEATEDPOINTREMOVER_H
17
18#include <geos/geom/CoordinateArraySequence.h>
19
20namespace geos {
21namespace operation {
22namespace valid {
23
25 class GEOS_DLL RepeatedPointRemover {
26
36 public:
37 static std::unique_ptr<geom::CoordinateArraySequence> removeRepeatedPoints(const geom::CoordinateSequence* seq);
38 };
39}
40}
41}
42
43#endif
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Removes repeated, consecutive equal, coordinates from a CoordinateSequence.
Definition: RepeatedPointRemover.h:25
static std::unique_ptr< geom::CoordinateArraySequence > removeRepeatedPoints(const geom::CoordinateSequence *seq)
Returns a new CoordinateSequence being a copy of the input with any consecutive equal Coordinate remo...
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26