GEOS
3.6.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2016 Daniel Baston 00007 * 00008 * This is free software; you can redistribute and/or modify it under 00009 * the terms of the GNU Lesser General Public Licence as published 00010 * by the Free Software Foundation. 00011 * See the COPYING file for more information. 00012 * 00013 ********************************************************************** 00014 * 00015 * Last port: precision/MinimumClearance.java (f6187ee2 JTS-1.14) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_PRECISION_MINIMUMCLEARANCE_H 00020 #define GEOS_PRECISION_MINIMUMCLEARANCE_H 00021 00022 #include <geos/geom/Geometry.h> 00023 #include <geos/geom/LineString.h> 00024 #include <geos/geom/CoordinateSequence.h> 00025 00026 namespace geos { 00027 namespace precision { 00028 class GEOS_DLL MinimumClearance { 00029 private: 00030 const geom::Geometry* inputGeom; 00031 double minClearance; 00032 std::auto_ptr<geom::CoordinateSequence> minClearancePts; 00033 00034 void compute(); 00035 public: 00036 MinimumClearance(const geom::Geometry* g); 00037 00044 double getDistance(); 00045 00053 std::auto_ptr<geom::LineString> getLine(); 00054 }; 00055 } 00056 } 00057 00058 #endif 00059 00060