GEOS 3.14.0dev
WKTFileReader.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2020 Martin Davis
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#pragma once
16
17#include <geos/geom/GeometryFactory.h>
18#include <geos/io/WKTReader.h>
19#include <geos/export.h>
20
21// Forward declarations
22namespace geos {
23namespace geom {
24
25class Geometry;
26class PrecisionModel;
27}
28}
29
30namespace geos {
31namespace io {
32
33class GEOS_DLL WKTFileReader {
34
35public:
36 WKTFileReader();
37 ~WKTFileReader();
38
39 std::vector<std::unique_ptr<geom::Geometry>> read(std::string fname);
40
41private:
42 std::unique_ptr<geos::geom::Geometry> readGeom(std::ifstream& f, geos::io::WKTReader& rdr);
43};
44
45}
46}
WKT parser class; see also WKTWriter.
Definition WKTReader.h:64
Basic namespace for all GEOS functionalities.
Definition geos.h:39