-
Notifications
You must be signed in to change notification settings - Fork 12
/
bag_metadataprofiles.h
64 lines (53 loc) · 2.94 KB
/
bag_metadataprofiles.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// Created by Brian C Miles on 5/24/22.
//
#ifndef OPENNS_BAG_METADATAPROFILE_H
#define OPENNS_BAG_METADATAPROFILE_H
#include "bag_compounddatatype.h"
namespace BAG {
const std::unordered_map<GeorefMetadataProfile, std::string> kGeorefMetadataProfileMapString {
{UNKNOWN_METADATA_PROFILE, UNKOWN_METADATA_PROFILE_NAME},
{NOAA_OCS_2022_10_METADATA_PROFILE, NOAA_OCS_2022_10_METADATA_PROFILE_NAME}
};
const std::unordered_map<std::string, GeorefMetadataProfile> kStringMapGeorefMetadataProfile {
{UNKOWN_METADATA_PROFILE_NAME, UNKNOWN_METADATA_PROFILE},
{NOAA_OCS_2022_10_METADATA_PROFILE_NAME, NOAA_OCS_2022_10_METADATA_PROFILE}
};
BAG_API const Record CreateRecord_NOAA_OCS_2022_10(bool significantFeatures,
bool featureLeastDepth,
float featureSize,
float featureSizeVar,
bool coverage,
bool bathyCoverage,
float horizontalUncertFixed,
float horizontalUncertVar,
std::string surveyDateStart,
std::string surveyDateEnd,
std::string sourceInstitution,
std::string sourceSurveyID,
uint32_t sourceSurveyIndex,
std::string licenseName,
std::string licenseURL);
const RecordDefinition METADATA_DEFINITION_UNKNOWN = RecordDefinition();
const RecordDefinition METADATA_DEFINITION_NOAA_OCS_2022_10 = {
{"significant_features", DT_BOOLEAN},
{"feature_least_depth", DT_BOOLEAN},
{"feature_size", DT_FLOAT32},
{"feature_size_var", DT_FLOAT32},
{"coverage", DT_BOOLEAN},
{"bathy_coverage", DT_BOOLEAN},
{"horizontal_uncert_fixed", DT_FLOAT32},
{"horizontal_uncert_var", DT_FLOAT32},
{"survey_date_start", DT_STRING},
{"survey_date_end", DT_STRING},
{"source_institution", DT_STRING},
{"source_survey_id", DT_STRING},
{"source_survey_index", DT_UINT32},
{"license_name", DT_STRING},
{"license_url", DT_STRING}
};
const std::unordered_map<GeorefMetadataProfile, RecordDefinition> kGeorefMetadataProfileMapKnownRecordDefinition {
{NOAA_OCS_2022_10_METADATA_PROFILE, METADATA_DEFINITION_NOAA_OCS_2022_10}
};
}
#endif //OPENNS_BAG_METADATAPROFILE_H