GEOS 3.6.2
PrecisionReducerCoordinateOperation.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2012 Sandro Santilli <strk@keybit.net>
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 * Last port: precision/PrecisionreducerCoordinateOperation.java r591 (JTS-1.12)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_PRECISION_PRECISIONREDUCERCOORDINATEOPERATION_H
20#define GEOS_PRECISION_PRECISIONREDUCERCOORDINATEOPERATION_H
21
22#include <geos/geom/util/CoordinateOperation.h>
23
24// Forward declarations
25namespace geos {
26 namespace geom {
27 class PrecisionModel;
29 class Geometry;
30 }
31}
32
33namespace geos {
34namespace precision { // geos.precision
35
36class PrecisionReducerCoordinateOperation :
37 public geom::util::CoordinateOperation
38{
39using CoordinateOperation::edit;
40private:
41
42 const geom::PrecisionModel& targetPM;
43
44 bool removeCollapsed;
45
46 PrecisionReducerCoordinateOperation(PrecisionReducerCoordinateOperation const&); /*= delete*/
47 PrecisionReducerCoordinateOperation& operator=(PrecisionReducerCoordinateOperation const&); /*= delete*/
48
49public:
50
51 PrecisionReducerCoordinateOperation( const geom::PrecisionModel& pm,
52 bool doRemoveCollapsed )
53 :
54 targetPM(pm),
55 removeCollapsed(doRemoveCollapsed)
56 {}
57
59 //
61 geom::CoordinateSequence* edit(const geom::CoordinateSequence *coordinates,
62 const geom::Geometry *geom);
63};
64
65} // namespace geos.precision
66} // namespace geos
67
68#endif // GEOS_PRECISION_PRECISIONREDUCERCOORDINATEOPERATION_H
69
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:87
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for manipulating the precision model of Geometries.
Definition precision.h:22
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25