GEOS  3.13.0dev
WKTStreamReader.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
22 namespace geos {
23 namespace geom {
24 
25 class Geometry;
26 class PrecisionModel;
27 }
28 }
29 
30 namespace geos {
31 namespace io {
32 
33 class GEOS_DLL WKTStreamReader {
34 
35 public:
36  WKTStreamReader(std::istream& instr);
37  ~WKTStreamReader();
38 
39  std::unique_ptr<geos::geom::Geometry> next();
40 
41 private:
42 
43  std::istream& instr;
44  WKTReader rdr;
45 };
46 
47 }
48 }
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25