MakeValid.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright 2009-2010 Sandro Santilli <strk@kbt.io>
* Copyright (C) 2019 Even Rouault <even.rouault@spatialys.com>
*
* 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.
**********************************************************************
*
* Ported from rtgeom_geos.c from
* rttopo - topology library
* http://git.osgeo.org/gitea/rttopo/librttopo
* with relicensing from GPL to LGPL with Copyright holder permission.
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <memory>
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
#endif
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
}
}
namespace geos {
namespace operation { // geos::operation
namespace valid { // geos::operation::valid
class GEOS_DLL MakeValid {
public:
MakeValid() = default;
~MakeValid() = default;
std::unique_ptr<geom::Geometry> build(const geom::Geometry* geom);
};
} // namespace geos::operation::valid
} // namespace geos::operation
} // namespace geos
#ifdef _MSC_VER
#pragma warning(pop)
#endif
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::operation::valid::MakeValid::build
std::unique_ptr< geom::Geometry > build(const geom::Geometry *geom)
Return a valid version of the input geometry.
geos::operation::valid::MakeValid::MakeValid
MakeValid()=default
Create a MakeValid object.
geos::geom
Definition Angle.h:26
geos::operation::valid
Provides classes for testing the validity of geometries.
Definition namespaces.h:289
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38