MinimumClearance.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2016 Daniel Baston
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: precision/MinimumClearance.java (f6187ee2 JTS-1.14)
*
**********************************************************************/
#pragma once
#include <geos/geom/Geometry.h>
#include <geos/geom/LineString.h>
#include <geos/geom/CoordinateSequence.h>
namespace geos {
namespace precision {
class GEOS_DLL MinimumClearance {
private:
const geom::Geometry* inputGeom;
double minClearance;
std::unique_ptr<geom::CoordinateSequence> minClearancePts;
void compute();
public:
MinimumClearance(const geom::Geometry* g);
double getDistance();
std::unique_ptr<geom::LineString> getLine();
};
}
}
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::precision::MinimumClearance::getDistance
double getDistance()
geos::precision::MinimumClearance::getLine
std::unique_ptr< geom::LineString > getLine()
geos::precision
Provides classes for manipulating the precision model of Geometries.
Definition namespaces.h:300
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38