GEOS
3.4.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
geos
precision
CommonBitsRemover.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2005-2006 Refractions Research Inc.
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_PRECISION_COMMONBITSREMOVER_H
16
#define GEOS_PRECISION_COMMONBITSREMOVER_H
17
18
#include <geos/export.h>
19
#include <geos/geom/Coordinate.h>
// for composition
20
21
// Forward declarations
22
namespace
geos {
23
namespace
geom {
24
class
Geometry;
25
}
26
namespace
precision {
27
class
CommonBitsRemover;
28
class
CommonCoordinateFilter;
29
}
30
}
31
32
namespace
geos {
33
namespace
precision {
// geos.precision
34
40
class
GEOS_DLL
CommonBitsRemover
{
41
42
private
:
43
44
geom::Coordinate
commonCoord;
45
46
CommonCoordinateFilter *ccFilter;
47
48
public
:
49
50
CommonBitsRemover
();
51
52
~
CommonBitsRemover
();
53
62
void
add(
const
geom::Geometry
*geom);
63
67
geom::Coordinate
& getCommonCoordinate();
68
77
geom::Geometry
* removeCommonBits(
geom::Geometry
*geom);
78
86
geom::Geometry
* addCommonBits(
geom::Geometry
*geom);
87
};
88
89
}
// namespace geos.precision
90
}
// namespace geos
91
92
#endif // GEOS_PRECISION_COMMONBITSREMOVER_H
Generated on Tue Mar 10 2015 22:05:10 for GEOS by
1.8.2