GEOS  3.9.1dev
ConnectedElementLocationFilter.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) 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  * Last port: operation/distance/ConnectedElementLocationFilter.java b98e8234
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
20 #define GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
21 
22 #include <geos/export.h>
23 
24 #include <geos/geom/GeometryFilter.h> // for inheritance
26 
27 #include <memory>
28 #include <vector>
29 
30 // Forward declarations
31 namespace geos {
32 namespace geom {
33 class Geometry;
34 }
35 }
36 
37 
38 namespace geos {
39 namespace operation { // geos::operation
40 namespace distance { // geos::operation::distance
41 
52 private:
53 
54  std::vector<std::unique_ptr<GeometryLocation>> locations;
58 public:
67  static std::vector<std::unique_ptr<GeometryLocation>> getLocations(const geom::Geometry* geom);
68 
69  void filter_ro(const geom::Geometry* geom) override;
70  void filter_rw(geom::Geometry* geom) override;
71 };
72 
73 
74 } // namespace geos::operation::distance
75 } // namespace geos::operation
76 } // namespace geos
77 
78 #endif // GEOS_OP_DISTANCE_CONNECTEDELEMENTLOCATIONFILTER_H
79 
Geometry classes support the concept of applying a Geometry filter to the Geometry.
#define GEOS_DLL
Definition: export.h:28
A ConnectedElementPointFilter extracts a single point from each connected element in a Geometry (e...
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Basic namespace for all GEOS functionalities.
std::vector< std::unique_ptr< GeometryLocation > > locations