GEOS: PrecisionReducerCoordinateOperation.h Source File

GEOS 3.5.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

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
25 namespace geos {
26 namespace geom {
27 class PrecisionModel;
28 class CoordinateSequence;
29 class Geometry;
30 }
31 }
32
33 namespace geos {
34 namespace precision { // geos.precision
35
36 class PrecisionReducerCoordinateOperation :
37 public geom::util::CoordinateOperation
38 {
39 using CoordinateOperation::edit;
40 private:
41
42 const geom::PrecisionModel& targetPM;
43
44 bool removeCollapsed;
45
46 PrecisionReducerCoordinateOperation(PrecisionReducerCoordinateOperation const&); /*= delete*/
47 PrecisionReducerCoordinateOperation& operator=(PrecisionReducerCoordinateOperation const&); /*= delete*/
48
49 public:
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
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25