GEOS  3.14.0dev
PolygonalExtracter.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 #pragma once
17 
18 #include <geos/export.h>
19 #include <geos/geom/Geometry.h>
20 #include <vector>
21 
22 namespace geos {
23 namespace geom { // geos.geom
24 namespace util { // geos.geom.util
25 
29 class GEOS_DLL PolygonalExtracter {
30 
31 public:
32 
40  static void getPolygonals(const Geometry& geom, std::vector<const Geometry*>& polys);
41 
42 private:
43 
44  static void getPolygonals(const Geometry* geom, std::vector<const Geometry*>& polys);
45 
46  // Declare type as noncopyable
47  PolygonalExtracter(const PolygonalExtracter& other) = delete;
48  PolygonalExtracter& operator=(const PolygonalExtracter& rhs) = delete;
49 };
50 
51 } // namespace geos.geom.util
52 } // namespace geos.geom
53 } // namespace geos
54 
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Extracts the polygonal (Polygon and MultiPolygon) elements from a Geometry.
Definition: PolygonalExtracter.h:29
static void getPolygonals(const Geometry &geom, std::vector< const Geometry * > &polys)
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25