GEOS  3.9.1dev
ComponentCoordinateExtracter.h
Go to the documentation of this file.
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_GEOM_UTIL_COMPONENTCOORDINATEEXTRACTER_H
17 #define GEOS_GEOM_UTIL_COMPONENTCOORDINATEEXTRACTER_H
18 
19 #include <vector>
20 
22 #include <geos/geom/Geometry.h> // to be removed when we have the .inl
23 #include <geos/geom/Coordinate.h> // to be removed when we have the .inl
24 #include <geos/geom/LineString.h> // to be removed when we have the .inl
25 #include <geos/geom/Point.h> // to be removed when we have the .inl
26 
27 namespace geos {
28 namespace geom { // geos::geom
29 namespace util { // geos::geom::util
30 
38 public:
46  static void getCoordinates(const Geometry& geom, std::vector<const Coordinate*>& ret);
47 
52  ComponentCoordinateExtracter(std::vector<const Coordinate*>& newComps);
53 
54  void filter_rw(Geometry* geom) override;
55 
56  void filter_ro(const Geometry* geom) override;
57 
58 private:
59 
61 
62  // Declare type as noncopyable
65 };
66 
67 } // namespace geos.geom.util
68 } // namespace geos.geom
69 } // namespace geos
70 
71 #endif //GEOS_GEOM_UTIL_COMPONENTCOORDINATEEXTRACTER_H
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Extracts a single representative Coordinate from each connected component of a Geometry.
ComponentCoordinateExtracter(std::vector< const Coordinate * > &newComps)
std::vector< const Coordinate * > ConstVect
A vector of const Coordinate pointers.
Definition: Coordinate.h:71
void filter_ro(const Geometry *geom) override
Basic namespace for all GEOS functionalities.
static void getCoordinates(const Geometry &geom, std::vector< const Coordinate * > &ret)
ComponentCoordinateExtracter & operator=(const ComponentCoordinateExtracter &rhs)=delete
void filter_rw(Geometry *geom) override