OmniSciDB  85c2d10cdc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Types.cpp File Reference
#include "Geospatial/Types.h"
#include <limits>
#include <mutex>
#include <gdal.h>
#include <ogr_geometry.h>
#include <ogrsf_frmts.h>
#include "Geospatial/GDAL.h"
#include "Logger/Logger.h"
#include "Shared/sqltypes.h"
+ Include dependency graph for Types.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{Types.cpp}::Coords
 
struct  anonymous_namespace{Types.cpp}::BoundingBox
 
struct  Geospatial::anonymous_namespace{Types.cpp}::HexDigitToDecimalTable
 

Namespaces

 anonymous_namespace{Types.cpp}
 
 Geospatial
 
 Geospatial::anonymous_namespace{Types.cpp}
 

Macros

#define SRID_WORLD_MERCATOR   999000
 
#define SRID_NORTH_UTM_START   999001
 
#define SRID_NORTH_UTM_END   999060
 
#define SRID_NORTH_LAMBERT   999061
 
#define SRID_SOUTH_UTM_START   999101
 
#define SRID_SOUTH_UTM_END   999160
 
#define SRID_SOUTH_LAMBERT   999161
 
#define SRID_LAEA_START   999163
 
#define SRID_LAEA_END   999283
 

Functions

int anonymous_namespace{Types.cpp}::process_poly_ring (OGRLinearRing *ring, std::vector< double > &coords, BoundingBox *bbox)
 
uint8_t Geospatial::anonymous_namespace{Types.cpp}::hex_to_binary (const char &usb, const char &lsb)
 
std::vector< uint8_t > Geospatial::anonymous_namespace{Types.cpp}::hex_string_to_binary_vector (const std::string &wkb_hex)
 

Variables

constexpr auto anonymous_namespace{Types.cpp}::DOUBLE_MAX = std::numeric_limits<double>::max()
 
constexpr auto anonymous_namespace{Types.cpp}::DOUBLE_MIN = std::numeric_limits<double>::lowest()
 
std::mutex Geospatial::transformation_map_mutex_
 
std::map< std::tuple< int32_t,
int32_t >, std::shared_ptr
< OGRCoordinateTransformation > > 
Geospatial::transformation_map_
 
constexpr HexDigitToDecimalTable Geospatial::anonymous_namespace{Types.cpp}::hex_digit_to_decimal_table
 

Macro Definition Documentation

#define SRID_LAEA_END   999283

LAEA zones end (6 latitude bands x up to 20 longitude bands)

Definition at line 224 of file Types.cpp.

Referenced by Geospatial::GeoBase::getTransformation().

#define SRID_LAEA_START   999163

LAEA zones start (6 latitude bands x up to 20 longitude bands)

Definition at line 222 of file Types.cpp.

Referenced by Geospatial::GeoBase::getBestPlanarSRID(), and Geospatial::GeoBase::getTransformation().

#define SRID_NORTH_LAMBERT   999061

Lambert Azimuthal Equal Area (LAEA) North Pole, equivalent to EPSG:3574

Definition at line 214 of file Types.cpp.

Referenced by Geospatial::GeoBase::getBestPlanarSRID(), and Geospatial::GeoBase::getTransformation().

#define SRID_NORTH_UTM_END   999060

End of UTM North zone, equivalent to EPSG:32660

Definition at line 212 of file Types.cpp.

Referenced by Geospatial::GeoBase::getTransformation().

#define SRID_NORTH_UTM_START   999001

Start of UTM North zone, equivalent to EPSG:32601

Definition at line 210 of file Types.cpp.

Referenced by Geospatial::GeoBase::getBestPlanarSRID(), and Geospatial::GeoBase::getTransformation().

#define SRID_SOUTH_LAMBERT   999161

Lambert Azimuthal Equal Area (LAEA) South Pole, equivalent to EPSG:3409

Definition at line 220 of file Types.cpp.

Referenced by Geospatial::GeoBase::getBestPlanarSRID(), and Geospatial::GeoBase::getTransformation().

#define SRID_SOUTH_UTM_END   999160

Start of UTM South zone, equivalent to EPSG:32760

Definition at line 218 of file Types.cpp.

Referenced by Geospatial::GeoBase::getTransformation().

#define SRID_SOUTH_UTM_START   999101

Start of UTM South zone, equivalent to EPSG:32701

Definition at line 216 of file Types.cpp.

Referenced by Geospatial::GeoBase::getBestPlanarSRID(), and Geospatial::GeoBase::getTransformation().

#define SRID_WORLD_MERCATOR   999000

World Mercator, equivalent to EPSG:3395

Definition at line 208 of file Types.cpp.

Referenced by Geospatial::GeoBase::getBestPlanarSRID(), and Geospatial::GeoBase::getTransformation().