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

Method parseGeoJson

CesiumVectorData/src/GeoJsonDocument.cpp:568–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566} // namespace
567
568Result<GeoJsonObject>
569GeoJsonDocument::parseGeoJson(const rapidjson::Document& doc) {
570 if (!doc.IsObject()) {
571 return Result<GeoJsonObject>(
572 ErrorList::error("GeoJSON must contain a JSON object."));
573 }
574
575 return parseGeoJsonObject(
576 doc.GetObject(),
577 [](const std::string&) { return true; },
578 "");
579}
580
581Result<GeoJsonObject>
582GeoJsonDocument::parseGeoJson(const std::span<const std::byte>& bytes) {

Callers

nothing calls this directly

Calls 4

formatFunction · 0.85
parseGeoJsonObjectFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected