GEOS 3.14.0dev
GeometryFlattener.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2022 ISciences LLC
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#pragma once
16
17#include <geos/export.h>
18#include <geos/geom/Geometry.h>
19#include <geos/geom/GeometryFactory.h>
20#include <geos/geom/GeometryCollection.h>
21
22namespace geos {
23namespace operation {
24namespace cluster {
25
26
27class GEOS_DLL GeometryFlattener {
28public:
37 static std::unique_ptr<geom::Geometry> flatten(std::unique_ptr<geom::Geometry>&& g);
38
39private:
40 static void flatten(std::unique_ptr<geom::Geometry>&& g, std::vector<std::unique_ptr<geom::Geometry>>& components);
41};
42
43
44}
45}
46}
Basic namespace for all GEOS functionalities.
Definition geos.h:39