MCPcopy Create free account
hub / github.com/OSGeo/PROJ / getFullValidContent

Function getFullValidContent

test/unit/test_defmodel.cpp:84–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82constexpr int IDX_EXPONENTIAL = 5;
83
84static json getFullValidContent() {
85 json j(getMinValidContent());
86 j["name"] = "name";
87 j["version"] = "version";
88 j["publication_date"] = "2018-07-01T00:00:00Z";
89 j["license"] = "license";
90 j["description"] = "description";
91 j["authority"]["name"] = "authority_name";
92 j["authority"]["url"] = "authority_url";
93 j["authority"]["address"] = "authority_address";
94 j["authority"]["email"] = "authority_email";
95 j["links"] = {{{"href", "href"},
96 {"rel", "rel"},
97 {"type", "type"},
98 {"title", "title"}}};
99 j["reference_epoch"] = "2000-01-01T00:00:00Z";
100 j["uncertainty_reference_epoch"] = "2018-12-15T00:00:00Z";
101 j["horizontal_offset_method"] = "addition";
102 j["horizontal_offset_unit"] = "metre";
103 j["vertical_offset_unit"] = "metre";
104 j["horizontal_uncertainty_type"] = "circular 95% confidence limit";
105 j["horizontal_uncertainty_unit"] = "metre";
106 j["vertical_uncertainty_type"] = "95% confidence limit";
107 j["vertical_uncertainty_unit"] = "metre";
108 j["components"] = {{
109 {"description", "description"},
110 {"displacement_type", "horizontal"},
111 {"uncertainty_type", "none"},
112 {"horizontal_uncertainty", 0.01},
113 {"vertical_uncertainty", 0.02},
114 {"extent",
115 {{"type", "bbox"},
116 {"parameters",
117 {{"bbox", {modelMinX, modelMinY, modelMaxX, modelMaxY}}}}}},
118 {"spatial_model",
119 {
120 {"type", "GeoTIFF"},
121 {"interpolation_method", "bilinear"},
122 {"filename", "nzgd2000-ndm-grid02.tif"},
123 {"md5_checksum", "49fce8ab267be2c8d00d43683060a032"},
124 }},
125 {"time_function",
126 {
127 {"type", "constant"},
128 {"parameters", json::object()},
129 }},
130 }};
131
132 j["components"].push_back(j["components"][0]);
133 j["components"][IDX_VELOCITY]["time_function"] = {
134 {"type", "velocity"},
135 {"parameters", {{"reference_epoch", "2000-01-01T00:00:00Z"}}},
136 };
137
138 j["components"].push_back(j["components"][0]);
139 j["components"][IDX_STEP]["time_function"] = {
140 {"type", "step"},
141 {"parameters", {{"step_epoch", "2000-01-01T00:00:00Z"}}},

Callers 1

TESTFunction · 0.85

Calls 1

getMinValidContentFunction · 0.70

Tested by

no test coverage detected