MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / parseGeoJsonObject

Function parseGeoJsonObject

CesiumVectorData/test/TestGeoJsonObject.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27GeoJsonObject parseGeoJsonObject(const std::string& json) {
28 Result<GeoJsonDocument> doc =
29 GeoJsonDocument::fromGeoJson(stringToBytes(json));
30 CHECK(!doc.errors.hasErrors());
31 REQUIRE(doc.value);
32 return doc.value->rootObject;
33}
34
35template <typename T>
36bool operator==(const std::vector<T>& vectorA, const std::vector<T>& vectorB) {

Callers 1

Calls 2

hasErrorsMethod · 0.80
stringToBytesFunction · 0.70

Tested by

no test coverage detected