isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
SpatialReference.h
1 #pragma once
2 
3 #include <ogr_spatialref.h>
4 #include <string>
5 
6 namespace isce3 { namespace io { namespace gdal {
7 
10 public:
11 
13  explicit SpatialReference(int epsg);
14 
16  explicit SpatialReference(const std::string & wkt);
17 
18  SpatialReference(const OGRSpatialReference &);
19 
21  int toEPSG() const;
22 
24  std::string toWKT() const;
25 
27  const OGRSpatialReference & get() const { return _srs; }
28 
29 private:
30  OGRSpatialReference _srs;
31 };
32 
34 bool operator==(const SpatialReference &, const SpatialReference &);
35 
37 bool operator!=(const SpatialReference &, const SpatialReference &);
38 
39 }}}
int toEPSG() const
Get EPSG code.
Definition: SpatialReference.cpp:67
std::string toWKT() const
Export to WKT-formatted string.
Definition: SpatialReference.cpp:79
SpatialReference(int epsg)
Construct from EPSG code.
Definition: SpatialReference.cpp:28
Spatial reference system / coordinate reference system.
Definition: SpatialReference.h:9

Generated for ISCE3.0 by doxygen 1.8.5.