Specialization of WossTextualDb for UTM CSV database.
More...
#include <bathymetry-utm-csv-db.h>
Specialization of WossTextualDb for UTM CSV database.
Specialization of WossTextualDb for UTM CSV database. It creates a vector used to get requested bathymetry values.
◆ BathyUtmCsvDb()
| BathyUtmCsvDb::BathyUtmCsvDb |
( |
const std::string & |
name | ) |
|
◆ ~BathyUtmCsvDb()
| virtual woss::BathyUtmCsvDb::~BathyUtmCsvDb |
( |
| ) |
|
|
overridevirtualdefault |
◆ finalizeConnection()
| bool BathyUtmCsvDb::finalizeConnection |
( |
| ) |
|
|
overridevirtual |
◆ getBathyIndex()
| int BathyUtmCsvDb::getBathyIndex |
( |
const Coord & |
coords | ) |
const |
|
protected |
Returns the index corresponding the given coordinates. This index will be used to access the vector variable and thus retrieving the bathymetry value
- Parameters
-
| coords | const reference to a valid Coord object |
- Returns
- index value
References db_spacing, woss::WossDb::debug, woss::UtmWgs84::getEasting(), woss::UtmWgs84::getNorthing(), woss::UtmWgs84::getUtmWgs84FromCoord(), woss::UtmWgs84::isValid(), range_easting_end, range_easting_start, range_northing_end, range_northing_start, and total_easting_values.
Referenced by getValue().
◆ getCSVSeparator()
| const char woss::BathyUtmCsvDb::getCSVSeparator |
( |
| ) |
const |
|
inline |
Returns the current char separator
- Returns
- the char separator
References separator.
◆ getDbRangeEasting()
| std::pair< double, double > woss::BathyUtmCsvDb::getDbRangeEasting |
( |
| ) |
const |
|
inline |
◆ getDbRangeNorthing()
| std::pair< double, double > woss::BathyUtmCsvDb::getDbRangeNorthing |
( |
| ) |
const |
|
inline |
◆ getDbSpacing()
| double woss::BathyUtmCsvDb::getDbSpacing |
( |
| ) |
const |
|
inline |
Returns the current db spatial resolution
- Returns
- the db spatial resolution in meters
References db_spacing.
◆ getDbTotalValues()
| std::pair< int, int > woss::BathyUtmCsvDb::getDbTotalValues |
( |
| ) |
const |
|
inline |
◆ getLandApproximationFlag()
| bool woss::BathyUtmCsvDb::getLandApproximationFlag |
( |
| ) |
|
|
inline |
◆ getValue()
| double BathyUtmCsvDb::getValue |
( |
const Coord & |
coords | ) |
const |
|
overridevirtual |
◆ importData()
| bool BathyUtmCsvDb::importData |
( |
| ) |
|
|
protectedvirtual |
◆ insertValue()
| bool BathyUtmCsvDb::insertValue |
( |
const Coord & |
coordinates, |
|
|
const Bathymetry & |
bathymetry_value |
|
) |
| |
|
overridevirtual |
Inserts the given woss::Bathymetry value in the database for given coordinates
- Parameters
-
| coordinates | const reference to a valid Coord object |
| bathymetry_value | const reference to woss::Bathymetry value to be inserted |
- Returns
- true if method was successful, false otherwise
Implements woss::WossBathymetryDb.
◆ setCSVSeparator()
| void woss::BathyUtmCsvDb::setCSVSeparator |
( |
const char |
new_separator | ) |
|
|
inline |
Sets the char separator used in CSV textual db
- Parameters
-
| new_separator | separator char |
References separator.
◆ setDbRangeEasting()
| void woss::BathyUtmCsvDb::setDbRangeEasting |
( |
double |
start, |
|
|
double |
end |
|
) |
| |
|
inline |
◆ setDbRangeNorthing()
| void woss::BathyUtmCsvDb::setDbRangeNorthing |
( |
double |
start, |
|
|
double |
end |
|
) |
| |
|
inline |
◆ setDbSpacing()
| void woss::BathyUtmCsvDb::setDbSpacing |
( |
double |
spacing | ) |
|
|
inline |
Sets db resolution, in meters
- Parameters
-
| spacing | space resolution in meters |
References db_spacing.
◆ setDbTotalValues()
| void woss::BathyUtmCsvDb::setDbTotalValues |
( |
int |
nnorth, |
|
|
int |
neast |
|
) |
| |
|
inline |
Sets the db total northing and easting values
- Parameters
-
| nnorth | db total northing points. should be >= 0 |
| neast | db total easting points. should be >= 0 |
References total_easting_values, and total_northing_values.
◆ setLandApproximationFlag()
| void woss::BathyUtmCsvDb::setLandApproximationFlag |
( |
bool |
flag | ) |
|
|
inline |
◆ approx_land_to_sea_surface
| bool woss::BathyUtmCsvDb::approx_land_to_sea_surface |
|
protected |
◆ bathy_vec
| std::vector<double> woss::BathyUtmCsvDb::bathy_vec |
|
protected |
◆ db_spacing
| double woss::BathyUtmCsvDb::db_spacing |
|
protected |
◆ land_approximation_depth
| const double BathyUtmCsvDb::land_approximation_depth = 0.000000001 |
|
staticprotected |
Depth value for land approximation
Referenced by getValue().
◆ range_easting_end
| double woss::BathyUtmCsvDb::range_easting_end |
|
protected |
◆ range_easting_start
| double woss::BathyUtmCsvDb::range_easting_start |
|
protected |
◆ range_northing_end
| double woss::BathyUtmCsvDb::range_northing_end |
|
protected |
◆ range_northing_start
| double woss::BathyUtmCsvDb::range_northing_start |
|
protected |
◆ separator
| char woss::BathyUtmCsvDb::separator |
|
protected |
◆ total_easting_values
| int woss::BathyUtmCsvDb::total_easting_values |
|
protected |
◆ total_northing_values
| int woss::BathyUtmCsvDb::total_northing_values |
|
protected |
The documentation for this class was generated from the following files: