Fire Core  8.0.0.alpha
GIS framework per tutti gli usi
 Tutto Classi Namespace Funzioni Variabili Ridefinizioni di tipo (typedef) Tipi enumerati (enum) Valori del tipo enumerato Friend
WktWriter.hpp
1 // Copyright 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_GEAR_IO_WKTWRITER_HPP_INCLUDED
5 #define FIRE_GEAR_IO_WKTWRITER_HPP_INCLUDED
6 
7 #include <exception>
8 #include <vector>
9 #include <ostream>
10 #include <string>
11 
12 #include "fire/export.hpp"
13 
14 #include "fire/gear/io/Writer.hpp"
15 #include "fire/gear/Group.hpp"
16 
17 namespace fire {
18 namespace gear {
19 namespace geom {
20 class Geometry;
21 } // namespace geom
22 } // namespace gear
23 } // namespace fire
24 
29 namespace fire {
34 namespace gear {
39 namespace io {
44 class FIRE_ENGINE_DLL WktWriter : public fire::gear::io::Writer {
45  private:
50  bool outputOldStyle3D;
56  int outputDimension;
57 
58  public:
68  WktWriter();
73  virtual ~WktWriter();
83  void write(const std::vector< fire::gear::geom::Geometry* >& geometries, std::ostream& outputStream);
94  void write(const std::vector< fire::gear::geom::Geometry* >& geometries, const std::string& filePath);
104  void write(const fire::gear::Group& group, std::ostream& outputStream);
115  void write(const fire::gear::Group& group, const std::string& filePath);
125  std::string write(const fire::gear::geom::Geometry& geometry);
130  bool getOutputOld3D() const;
135  void setOutputOld3D(bool bvalue);
140  int getOutputDimension() const;
149  void setOutputDimension(int iDimension);
150 };
151 } // namespace io
152 } // namespace gear
153 } // namespace fire
154 
155 #endif
Definition: Group.hpp:48
Definition: Geometry.hpp:69
classe di dichiarazione dell' interfaccia del writer delle geometrie
Definition: Writer.hpp:40
classe di specializza l' interfaccia del writer delle geometrie per il formato Well-known text (WKT) ...
Definition: WktWriter.hpp:44