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_)
62#if !defined(__geo_simpletags_h_) && !defined(LIBGEOTIFF_GEO_SIMPLETAGS_H_)
138 std::string
const& citation = std::string(0),
139 int32_t verticalDatum = -1,
140 int32_t verticalUnits = 9001);
166 void SetVLRs(std::vector<VariableRecord>
const& vlrs);
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)
207int LAS_DLL GTIFSetFromOGISDefn(
GTIF*,
const char*);
208void SetLinearUnitCitation(
GTIF* psGTIF,
char* pszLinearUOMName);
210#if defined(_OGR_SRS_API_H_INCLUDED)
211void SetGeogCSCitation(
GTIF* psGTIF, OGRSpatialReference* poSRS,
char* angUnitName,
int nDatum,
short nSpheroid);
Spatial Reference System container for libLAS.
Definition spatialreference.hpp:70
SpatialReference(std::vector< VariableRecord > const &vlrs)
Constructor creating SpatialReference instance from given Variable-Length Record.
std::string GetWKT(WKTModeFlag mode_flag, bool pretty) const
SpatialReference(SpatialReference const &other)
Copy constryctor.
void SetVerticalCS(int32_t verticalCSType, std::string const &citation=std::string(0), int32_t verticalDatum=-1, int32_t verticalUnits=9001)
Sets the vertical coordinate system using geotiff key values.
SpatialReference()
Default constructor.
void SetFromUserInput(std::string const &v)
Sets the SRS using GDAL's SetFromUserInput function.
~SpatialReference()
Destructor.
WKTModeFlag
Definition spatialreference.hpp:73
@ eHorizontalOnly
Definition spatialreference.hpp:74
@ eCompoundOK
Definition spatialreference.hpp:75
const GTIF * GetGTIF()
Returns a pointer to the internal GTIF*.
GeoVLRType
Definition spatialreference.hpp:79
@ eGeoTIFF
Definition spatialreference.hpp:80
@ eOGRWKT
Definition spatialreference.hpp:81
void SetWKT(std::string const &v)
Sets the SRS using GDAL's OGC WKT.
SpatialReference & operator=(SpatialReference const &rhs)
Assignment operator.
std::string GetProj4() const
Returns the Proj.4 string describing the Spatial Reference System.
void ClearVLRs(GeoVLRType eType)
std::vector< VariableRecord > GetVLRs() const
Return a copy of the LASVLRs that SpatialReference maintains.
bool operator==(const SpatialReference &other) const
void SetProj4(std::string const &v)
Sets the Proj.4 string describing the Spatial Reference System.
void SetGTIF(GTIF *pgtiff, ST_TIFF *ptiff)
void AddVLR(VariableRecord const &vlr)
Add a VLR representing GeoTIFF keys to the SRS.
std::string GetWKT(WKTModeFlag mode_flag=eHorizontalOnly) const
Returns the OGC WKT describing Spatial Reference System.
void SetVLRs(std::vector< VariableRecord > const &vlrs)
Set the LASVLRs for the SpatialReference.
bool operator!=(const SpatialReference &other) const
Definition spatialreference.hpp:101
liblas::property_tree::ptree GetPTree() const
Representation of variable-length record data.
Definition variablerecord.hpp:60
#define LAS_DLL
Definition export.hpp:58
#define LAS_C_END
Definition las_config.h:55
#define LAS_C_START
Definition las_config.h:54
Namespace grouping all elements of libLAS public interface.
Definition bounds.hpp:60
LAS_DLL std::ostream & operator<<(std::ostream &ostr, const liblas::SpatialReference &srs)
struct GTIFS * GTIF
Definition spatialreference.hpp:60
struct ST_TIFFS * ST_TIFF
Definition spatialreference.hpp:63