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
WkbWriter.hpp
1 // Copyright 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_GEAR_IO_WKBWRITER_HPP_INCLUDED
5 #define FIRE_GEAR_IO_WKBWRITER_HPP_INCLUDED
6 
7 #include <iostream>
8 #include <string>
9 
10 #include "fire/export.hpp"
11 
12 namespace fire {
13 namespace gear {
14 namespace geom {
15 class Geometry;
16 } // namespace geom
17 } // namespace gear
18 } // namespace fire
19 
24 namespace fire {
29 namespace gear {
34 namespace io {
40  big_endian,
41  little_endian
42 };
43 
44 class FIRE_ENGINE_DLL WkbWriter {
45  private:
51  int outputDimension;
57  ByteDataOrder byteOrder;
62  bool includeSRID;
63 
64  public:
76  WkbWriter();
86  void write(const fire::gear::geom::Geometry& geometry, std::ostream& outputStream);
97  std::string toString(std::istream& inputStream, const bool bSeparator = true);
109  std::string write(const fire::gear::geom::Geometry& geometry, const bool bSeparator = true);
113  int getOutputDimension() const;
122  void setOutputDimension(int newOutputDimension);
126  int getByteOrder() const;
136  void setByteOrder(int newByteOrder);
141  bool getIncludeSRID() const;
146  void setIncludeSRID(bool newIncludeSRID);
147 };
148 } // namespace io
149 } // namespace gear
150 } // namespace fire
151 
152 #endif
ByteDataOrder
classe che specializza l' interfaccia del writer delle geometrie per il formato Well-known binary (WK...
Definition: WkbWriter.hpp:39
Definition: WkbWriter.hpp:44
Definition: Geometry.hpp:69