GEOS
3.6.1
include
geos
util
CoordinateArrayFilter.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2001-2002 Vivid Solutions Inc.
7
* Copyright (C) 2006 Refractions Research Inc.
8
*
9
* This is free software; you can redistribute and/or modify it under
10
* the terms of the GNU Lesser General Public Licence as published
11
* by the Free Software Foundation.
12
* See the COPYING file for more information.
13
*
14
**********************************************************************/
15
16
#ifndef GEOS_UTIL_COORDINATEARRAYFILTER_H
17
#define GEOS_UTIL_COORDINATEARRAYFILTER_H
18
19
#include <geos/export.h>
20
#include <cassert>
21
22
#include <geos/geom/CoordinateFilter.h>
23
#include <geos/geom/CoordinateSequence.h>
24
#include <geos/geom/Coordinate.h>
25
26
namespace
geos
{
27
namespace
util {
// geos::util
28
36
class
GEOS_DLL CoordinateArrayFilter:
public
geom::CoordinateFilter {
37
private
:
38
geom::Coordinate::ConstVect
&pts;
// target vector reference
39
public
:
45
CoordinateArrayFilter(
geom::Coordinate::ConstVect
& target)
46
:
47
pts(target)
48
{}
49
50
virtual
~CoordinateArrayFilter() {}
51
52
virtual
void
filter_ro(
const
geom::Coordinate *coord)
53
{
54
pts.push_back(coord);
55
}
56
};
57
58
59
}
// namespace geos.util
60
}
// namespace geos
61
62
#endif // GEOS_UTIL_COORDINATEARRAYFILTER_H
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:25
geos::geom::Coordinate::ConstVect
std::vector< const Coordinate * > ConstVect
A vector of const Coordinate pointers.
Definition:
Coordinate.h:95
Generated by
1.8.17