WKTFileReader.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2020 Martin Davis
*
* 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/geom/GeometryFactory.h>
#include <geos/io/WKTReader.h>
#include <geos/export.h>
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
class PrecisionModel;
}
}
namespace geos {
namespace io {
class GEOS_DLL WKTFileReader {
public:
WKTFileReader();
~WKTFileReader();
std::vector<std::unique_ptr<geom::Geometry>> read(std::string fname);
private:
std::unique_ptr<geos::geom::Geometry> readGeom(std::ifstream& f, geos::io::WKTReader& rdr);
};
}
}
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::PrecisionModel
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:87
geos::geom
Definition Angle.h:26
geos::io
Contains the interfaces for converting JTS objects to and from other formats.
Definition Geometry.h:65
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38