GEOS  3.8.0dev
MinimumClearance.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2016 Daniel Baston
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: precision/MinimumClearance.java (f6187ee2 JTS-1.14)
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_PRECISION_MINIMUMCLEARANCE_H
20 #define GEOS_PRECISION_MINIMUMCLEARANCE_H
21 
22 #include <geos/geom/Geometry.h>
23 #include <geos/geom/LineString.h>
24 #include <geos/geom/CoordinateSequence.h>
25 
26 namespace geos {
27 namespace precision {
28 class GEOS_DLL MinimumClearance {
29 private:
30  const geom::Geometry* inputGeom;
31  double minClearance;
32  std::unique_ptr<geom::CoordinateSequence> minClearancePts;
33 
34  void compute();
35 public:
36  MinimumClearance(const geom::Geometry* g);
37 
44  double getDistance();
45 
53  std::unique_ptr<geom::LineString> getLine();
54 };
55 }
56 }
57 
58 #endif
59 
60 
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25