42 #ifndef LIBLAS_LASSPATIALREFERENCE_HPP_INCLUDED
43 #define LIBLAS_LASSPATIALREFERENCE_HPP_INCLUDED
45 #include <liblas/detail/fwd.hpp>
46 #include <liblas/detail/private_utility.hpp>
51 #include <liblas/external/property_tree/ptree.hpp>
59 #if !defined(__geotiff_h_) && !defined(LIBGEOTIFF_GEOTIFF_H_)
60 typedef struct GTIFS *
GTIF;
62 #if !defined(__geo_simpletags_h_) && !defined(LIBGEOTIFF_GEO_SIMPLETAGS_H_)
105 const GTIF* GetGTIF();
117 std::string GetWKT(WKTModeFlag mode_flag = eHorizontalOnly)
const;
118 std::string GetWKT(WKTModeFlag mode_flag,
bool pretty)
const;
123 void SetWKT(std::string
const& v);
137 void SetVerticalCS(int32_t verticalCSType,
138 std::string
const& citation = std::string(0),
139 int32_t verticalDatum = -1,
140 int32_t verticalUnits = 9001);
145 void SetFromUserInput(std::string
const& v);
152 std::string GetProj4()
const;
160 void SetProj4(std::string
const& v);
166 void SetVLRs(std::vector<VariableRecord>
const& vlrs);
172 std::vector<VariableRecord> GetVLRs()
const;
174 void ClearVLRs( GeoVLRType eType );
176 liblas::property_tree::ptree GetPTree()
const;
185 std::vector<VariableRecord> m_vlrs;
187 std::string GetGTIFFText()
const;
202 #if defined(__geotiff_h_) || defined(LIBGEOTIFF_GEOTIFF_H_)
203 #if defined(GEO_NORMALIZE_H_INCLUDED)
207 int LAS_DLL GTIFSetFromOGISDefn(
GTIF*,
const char*);
208 void SetLinearUnitCitation(
GTIF* psGTIF,
char* pszLinearUOMName);
210 #if defined(_OGR_SRS_API_H_INCLUDED)
211 void SetGeogCSCitation(
GTIF* psGTIF, OGRSpatialReference* poSRS,
char* angUnitName,
int nDatum,
short nSpheroid);
212 #endif // defined _OGR_SRS_API_H_INCLUDED
213 #endif // defined __geotiff_h_ || defined LIBGEOTIFF_GEOTIFF_H_
217 #endif // LIBLAS_LASSPATIALREFERENCE_HPP_INCLUDED
LAS_DLL std::ostream & operator<<(std::ostream &ostr, const liblas::SpatialReference &srs)
struct ST_TIFFS * ST_TIFF
Definition: spatialreference.hpp:63
Representation of variable-length record data.
Definition: variablerecord.hpp:59
#define LAS_DLL
Definition: export.hpp:58
GeoVLRType
Definition: spatialreference.hpp:78
bool operator==(Classification const &lhs, Classification const &rhs)
Equal-to operator implemented in terms of Classification::equal.
Definition: classification.hpp:226
#define LAS_C_END
Definition: las_config.h:55
Spatial Reference System container for libLAS.
Definition: spatialreference.hpp:69
Namespace grouping all elements of libLAS public interface.
Definition: bounds.hpp:60
struct GTIFS * GTIF
Definition: spatialreference.hpp:60
WKTModeFlag
Definition: spatialreference.hpp:72
#define LAS_C_START
Definition: las_config.h:54
bool operator!=(const SpatialReference &other) const
Definition: spatialreference.hpp:101