Skip to main content
API Reference SwiftyNsdk NsdkMapStorage

extractMapMetadata

Extracts metadata from a map relative to a specified anchor....

Declaration

func extractMapMetadata(anchorPayload: String, map: NsdkBuffer) throws -> MapMetadata?

Summary

Extracts metadata from a map relative to a specified anchor.
Render the feature points in the metadata relative to the specified anchor to visualize the map.
This is only possible when the anchor is linked directly to the map's node(s), or if
the anchor's nodes are reachable to the map's nodes from the currently active
transform graph.
- Parameter anchorPayload: The base64-encoded payload of the anchor that the
returned points will be relative to.
- Parameter map: The map buffer to extract metadata from.
- Returns: The metadata of the map if successful, nil if otherwise.
- Throws: NsdkError.invalidArgumentor NsdkError.nullArgument
indicating a problem with either argument. Check NSDK's C logs for more information.


ON THIS PAGE