1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
*
* 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.
*
**********************************************************************/
#pragma once
#include <geos/noding/Noder.h>
#include <geos/noding/ValidatingNoder.h>
#include <geos/noding/SegmentString.h>
#include <geos/noding/NodedSegmentString.h>
#include <geos/noding/snapround/SnapRoundingNoder.h>
#include <geos/io/WKTReader.h>
#include <geos/io/WKTWriter.h>
#include <geos/geom/Geometry.h>
#include <geos/geom/CoordinateSequence.h>
#include <geos/geom/PrecisionModel.h>
#include <geos/geom/util/LinearComponentExtracter.h>
// std
#include <memory>
namespace geos {
class NodingTestUtil {
private:
// Methods
static std::unique_ptr<geom::Geometry>
toLines(const std::vector<noding::SegmentString*>* nodedList, const geom::GeometryFactory* geomFact);
static std::vector<noding::SegmentString*>
toSegmentStrings(std::vector<const geom::LineString*>& lines);
public:
// Methods
static std::unique_ptr<geom::Geometry>
nodeValidated(const geom::Geometry* geom1, const geom::Geometry* geom2, noding::Noder* noder);
};
} // geos
|