39#ifndef WOSS_BATHYMETRY_GEBCO_DB_H
40#define WOSS_BATHYMETRY_GEBCO_DB_H
42#ifdef WOSS_NETCDF_SUPPORT
46#if defined (WOSS_NETCDF4_SUPPORT)
53 static const int GEBCO_1_MINUTE_BATHY_NLAT = 10801;
55 static const int GEBCO_1_MINUTE_BATHY_NLON = 21601;
57 static const double GEBCO_1_MINUTE_BATHY_SPACING = 0.0166666666666667;
60 static const int GEBCO_30_SECONDS_BATHY_NLAT = 21600;
62 static const int GEBCO_30_SECONDS_BATHY_NLON = 43200;
64 static const double GEBCO_30_SECONDS_BATHY_SPACING = 0.00833333333333333;
67 static const int GEBCO_15_SECONDS_BATHY_NLAT = 43200;
69 static const int GEBCO_15_SECONDS_BATHY_NLON = 86400;
71 static const double GEBCO_15_SECONDS_BATHY_SPACING = 0.004166666666666665;
74 static const double GEBCO_1_MINUTE_BATHY_MIN_LAT = -90.0;
76 static const double GEBCO_1_MINUTE_BATHY_MAX_LAT = 90.0;
78 static const double GEBCO_1_MINUTE_BATHY_MIN_LONG = -180.0;
80 static const double GEBCO_1_MINUTE_BATHY_MAX_LONG = 180.0;
83 static const double GEBCO_30_SECONDS_BATHY_MIN_LAT = -89.995833333333333335;
85 static const double GEBCO_30_SECONDS_BATHY_MAX_LAT = 89.995833333333333335;
87 static const double GEBCO_30_SECONDS_BATHY_MIN_LONG = -179.995833333333333335;
89 static const double GEBCO_30_SECONDS_BATHY_MAX_LONG = 179.995833333333333335;
92 static const double GEBCO_15_SECONDS_BATHY_MIN_LAT = -89.9979166666666666675;
94 static const double GEBCO_15_SECONDS_BATHY_MAX_LAT = 89.9979166666666666675;
96 static const double GEBCO_15_SECONDS_BATHY_MIN_LONG = -179.9979166666666666675;
98 static const double GEBCO_15_SECONDS_BATHY_MAX_LONG = 179.9979166666666666675;
101 static const double GEBCO_1D_1_MINUTE_BATHY_START_LAT = 90.0;
103 static const double GEBCO_1D_1_MINUTE_BATHY_START_LONG = -180.0;
106 static const double GEBCO_1D_30_SECONDS_BATHY_START_LAT = 89.995833333333333335;
108 static const double GEBCO_1D_30_SECONDS_BATHY_START_LONG = -179.995833333333333335;
111 static const double GEBCO_2D_1_MINUTE_BATHY_START_LAT = -90.0;
113 static const double GEBCO_2D_1_MINUTE_BATHY_START_LONG = -180.0;
116 static const double GEBCO_2D_30_SECONDS_BATHY_START_LAT = -89.995833333333333335;
118 static const double GEBCO_2D_30_SECONDS_BATHY_START_LONG = -179.995833333333333335;
121 static const double GEBCO_2D_15_SECONDS_BATHY_START_LAT = -89.9979166666666666675;
123 static const double GEBCO_2D_15_SECONDS_BATHY_START_LONG = -179.9979166666666666675;
169 virtual bool insertValue(
const Coord& coordinates,
const Bathymetry& bathymetry_value );
213#if defined(WOSS_NETCDF4_SUPPORT)
223#if defined(WOSS_NETCDF4_SUPPORT)
232#if defined(WOSS_NETCDF4_SUPPORT)
GEBCO_BATHY_TYPE
Definition bathymetry-gebco-db.h:132
@ GEBCO_1D_1_MINUTE_BATHY_TYPE
GEBCO 1D, one minute of arc netcf format.
Definition bathymetry-gebco-db.h:133
@ GEBCO_2D_1_MINUTE_BATHY_TYPE
GEBCO 2D, one minute of arc netcf format.
Definition bathymetry-gebco-db.h:135
@ GEBCO_INVALID_BATHY_TYPE
INVALID, must be last.
Definition bathymetry-gebco-db.h:138
@ GEBCO_1D_30_SECONDS_BATHY_TYPE
GEBCO 1D, thirty seconds of arc netcf format.
Definition bathymetry-gebco-db.h:134
@ GEBCO_2D_30_SECONDS_BATHY_TYPE
GEBCO 2D, thirty seconds of arc netcf format.
Definition bathymetry-gebco-db.h:136
@ GEBCO_2D_15_SECONDS_BATHY_TYPE
GEBCO 2D, fifteen seconds of arc netcf format.
Definition bathymetry-gebco-db.h:137
std::pair< long, long > Gebco2DIndexes
Definition bathymetry-gebco-db.h:127
NetCDF specialization of WossNetcdfDb for GEBCO database.
Definition bathymetry-gebco-db.h:148
virtual bool insertValue(const Coord &coordinates, const Bathymetry &bathymetry_value)
Definition bathymetry-gebco-db.cpp:151
netCDF::NcVar bathy_var
Definition bathymetry-gebco-db.h:214
netCDF::NcVar lon_var
Definition bathymetry-gebco-db.h:233
GEBCO_BATHY_TYPE getGebcoType()
Definition bathymetry-gebco-db.h:198
virtual bool finalizeConnection()
Definition bathymetry-gebco-db.cpp:72
long get1DBathyIndex(const Coord &coords) const
Definition bathymetry-gebco-db.cpp:320
Gebco2DIndexes get2DBathyIndexes(const Coord &coords) const
Definition bathymetry-gebco-db.cpp:365
virtual double getValue(const Coord &coords) const
Definition bathymetry-gebco-db.cpp:157
netCDF::NcVar lat_var
Definition bathymetry-gebco-db.h:224
GEBCO_BATHY_TYPE gebco_type
Definition bathymetry-gebco-db.h:207
void setGebcoType(const GEBCO_BATHY_TYPE &type)
Definition bathymetry-gebco-db.h:192
Coordinates (lat, long) class definitions and functions library.
Definition coordinates-definitions.h:107
Data behaviour class for bathymetry database.
Definition woss-db.h:292
NetCDF implementation of WossDb.
Definition woss-db.h:193
Provides the interface for woss::WossDb class.