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
LayerRasterSh.hpp
1 // Copyright © 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_SOURCE_RASTER_SHARED_LAYERRASTERSH_HPP_INCLUDED
5 #define FIRE_SOURCE_RASTER_SHARED_LAYERRASTERSH_HPP_INCLUDED
6 
7 #include <fire/shared/Shared.hpp>
8 
9 #include <exception>
10 
11 #include "fire/source/raster/LayerRaster.hpp"
12 
13 namespace fire {
14 namespace source {
15 namespace raster {
16 namespace shared {
17 
18 class LayerRasterSh : public fire::shared::Shared< LayerRaster > {
19  public:
20  explicit LayerRasterSh(LayerRaster* ptr = NULL): Shared(ptr) {
21  }
22 
23  LayerRasterSh(LayerRasterSh const & c): Shared(c) {
24  }
25 
26  inline const gear::geom::Envelope::EnvelopeShp getExtent() {
27  return _getPtr()->getExtent();
28  }
29 
30  inline const std::string getName() {
31  return _getPtr()->getName();
32  }
33 
34  inline const std::string getMime() {
35  return _getPtr()->getMime();
36  }
37 
38  inline const int getSrid() {
39  return _getPtr()->getSrid();
40  }
41 
42  inline const gis::data::Size getPixelSize() {
43  return _getPtr()->getPixelSize();
44  }
45 
46  inline const int getBandCount() {
47  return _getPtr()->getBandCount();
48  }
49 
50  inline void getBandValuesAt(gear::geom::Envelope::EnvelopeShp envelope, const gis::data::Size& step, const InterpolationType::InterpolationType& interptype, const std::vector< int >& bandindexes, std::vector< double >& band_values) {
51  _getPtr()->getBandValuesAt(envelope, step, interptype, bandindexes, band_values);
52  }
53 
54  inline void setMask(gear::geom::MultiPolygon multipolygon) {
55  _getPtr()->setMask(multipolygon);
56  }
57 
58  inline const DriverType::DriverType getDriverType() {
59  return _getPtr()->getDriverType();
60  }
61 
62 };
63 } // namespace shared
64 } // namespace raster
65 } // namespace source
66 } // namespace fire
67 
68 #endif
Definition: EnvelopeSh.hpp:18
Definition: LayerRaster.hpp:26
Definition: Shared.hpp:17
Definition: LayerRasterSh.hpp:18
Definition: MultiPolygon.hpp:48
Classe contenente le informazioni di dimensione.
Definition: Size.hpp:20