GEOS  3.14.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 #pragma once
20 
21 #include <geos/geom/Geometry.h>
22 #include <geos/geom/LineString.h>
23 #include <geos/geom/CoordinateSequence.h>
24 
25 namespace geos {
26 namespace precision {
27 
29 class GEOS_DLL MinimumClearance {
30 private:
31  const geom::Geometry* inputGeom;
32  double minClearance;
33  std::unique_ptr<geom::CoordinateSequence> minClearancePts;
34 
35  void compute();
36 public:
38 
45  double getDistance();
46 
54  std::unique_ptr<geom::LineString> getLine();
55 };
56 }
57 }
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Computes the Minimum Clearance of a Geometry.
Definition: MinimumClearance.h:29
std::unique_ptr< geom::LineString > getLine()
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25