GEOS 3.9.1
ConnectedElementLocationFilter.h
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
25#include <geos/operation/distance/GeometryLocation.h>
26
27#include <memory>
28#include <vector>
29
30// Forward declarations
31namespace geos {
32namespace geom {
33class Geometry;
34}
35}
36
37
38namespace geos {
39namespace operation { // geos::operation
40namespace distance { // geos::operation::distance
41
52private:
53
54 std::vector<std::unique_ptr<GeometryLocation>> locations;
58public:
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.
Definition: GeometryFilter.h:47
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
A ConnectedElementPointFilter extracts a single point from each connected element in a Geometry (e....
Definition: ConnectedElementLocationFilter.h:51
static std::vector< std::unique_ptr< GeometryLocation > > getLocations(const geom::Geometry *geom)
Returns a list containing a point from each Polygon, LineString, and Point found inside the specified...
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26