GEOS  3.14.0dev
BuildArea.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright 2011-2014 Sandro Santilli <strk@kbt.io>
7  * Copyright (C) 2019 Even Rouault <even.rouault@spatialys.com>
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  * Ported from rtgeom_geos.c from
16  * rttopo - topology library
17  * http://git.osgeo.org/gitea/rttopo/librttopo
18  * with relicensing from GPL to LGPL with Copyright holder permission.
19  *
20  **********************************************************************/
21 
22 #pragma once
23 
24 #include <geos/export.h>
25 
26 #include <memory>
27 
28 #ifdef _MSC_VER
29 #pragma warning(push)
30 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
31 #endif
32 
33 // Forward declarations
34 namespace geos {
35 namespace geom {
36 class Geometry;
37 }
38 }
39 
40 namespace geos {
41 namespace operation { // geos::operation
42 namespace polygonize { // geos::operation::polygonize
43 
54 class GEOS_DLL BuildArea {
55 
56 public:
57 
61  BuildArea() = default;
62 
63  ~BuildArea() = default;
64 
66  std::unique_ptr<geom::Geometry> build(const geom::Geometry* geom);
67 };
68 
69 } // namespace geos::operation::polygonize
70 } // namespace geos::operation
71 } // namespace geos
72 
73 #ifdef _MSC_VER
74 #pragma warning(pop)
75 #endif
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Creates an areal geometry formed by the constituent linework of given geometry.
Definition: BuildArea.h:54
BuildArea()=default
Create a BuildArea object.
std::unique_ptr< geom::Geometry > build(const geom::Geometry *geom)
Return the area built from the constituent linework of the input geometry.
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25