GEOS  3.9.1dev
GeometryNoder.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) 2012 Sandro Santilli <strk@kbt.io>
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  * NOTE: this is not in JTS. JTS has a snapround/GeometryNoder though
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_NODING_GEOMETRYNODER_H
20 #define GEOS_NODING_GEOMETRYNODER_H
21 
22 #include <geos/export.h>
23 #include <geos/noding/SegmentString.h> // for NonConstVect
24 
25 #include <memory> // for unique_ptr
26 
27 // Forward declarations
28 namespace geos {
29 namespace geom {
30 class Geometry;
31 }
32 namespace noding {
33 class Noder;
34 }
35 }
36 
37 namespace geos {
38 namespace noding { // geos.noding
39 
41 public:
42 
43  static std::unique_ptr<geom::Geometry> node(const geom::Geometry& geom);
44 
45  GeometryNoder(const geom::Geometry& g);
46 
47  std::unique_ptr<geom::Geometry> getNoded();
48 
49 private:
50 
52 
54 
55  static void extractSegmentStrings(const geom::Geometry& g,
57 
58  Noder& getNoder();
59 
60  std::unique_ptr<Noder> noder;
61 
62  std::unique_ptr<geom::Geometry> toGeometry(SegmentString::NonConstVect& noded);
63 
64  GeometryNoder(GeometryNoder const&); /*= delete*/
65  GeometryNoder& operator=(GeometryNoder const&); /*= delete*/
66 };
67 
68 } // namespace geos.noding
69 } // namespace geos
70 
71 #endif // GEOS_NODING_NODER_H
#define GEOS_DLL
Definition: export.h:28
const geom::Geometry & argGeom
Definition: GeometryNoder.h:51
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
SegmentString::NonConstVect lineList
Definition: GeometryNoder.h:53
Basic namespace for all GEOS functionalities.
Computes all intersections between segments in a set of SegmentString.
Definition: Noder.h:49
std::unique_ptr< Noder > noder
Definition: GeometryNoder.h:60
std::vector< SegmentString * > NonConstVect
Definition: SegmentString.h:49