GEOS
3.9.1
include
geos
precision
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
30
class
GEOS_DLL
MinimumClearance
{
31
private
:
32
const
geom::Geometry
* inputGeom;
33
double
minClearance;
34
std::unique_ptr<geom::CoordinateSequence> minClearancePts;
35
36
void
compute();
37
public
:
38
MinimumClearance
(
const
geom::Geometry
* g);
39
46
double
getDistance
();
47
55
std::unique_ptr<geom::LineString>
getLine
();
56
};
57
}
58
}
59
60
#endif
61
62
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:26
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition:
Geometry.h:188
geos::precision::MinimumClearance::getDistance
double getDistance()
geos::precision::MinimumClearance
Computes the Minimum Clearance of a Geometry.
Definition:
MinimumClearance.h:30
geos::precision::MinimumClearance::getLine
std::unique_ptr< geom::LineString > getLine()
Generated by
1.8.20