![]() |
ArcGIS Procedural Runtime
3.3.11173
|
Provides a number of functions to resolve symbolic names to actual resources.
This includes the steps: (1) resolve the key to an URI (2) load content pointed at by the URI and (3) decode the content.
All calls are thread-safe.
Functions | |
| bool | isCached (prt::Cache *cache, prt::ContentType ct, const prtx::URIPtr &uri) |
| void | readURI (const prtx::URIPtr &uri, BinaryVector &data) |
| BinaryVectorPtr | resolveBinaryData (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
| CGBPtr | resolveCGB (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr) |
| GeometryPtr | resolveGeometry (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
| void | resolveMaterial (prt::Cache *cache, MaterialPtrVector &materials, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
| TablePtr | resolveTable (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
| CTStringPtr | resolveText (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
| TexturePtr | resolveTexture (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
| bool prtx::DataBackend::isCached | ( | prt::Cache * | cache, |
| prt::ContentType | ct, | ||
| const prtx::URIPtr & | uri | ||
| ) |
| void prtx::DataBackend::readURI | ( | const prtx::URIPtr & | uri, |
| BinaryVector & | data | ||
| ) |
[DEPRECATED, use resolveBinaryData()] Reads and returns the content pointed at by the URI. Throws an exception on error.
| uri | URI to read from. | |
| [out] | data | Vector to return a copy of the content. |
| BinaryVectorPtr prtx::DataBackend::resolveBinaryData | ( | prt::Cache * | cache, |
| const std::wstring & | key, | ||
| const prtx::ResolveMap * | resolveMap = nullptr, |
||
| std::wstring * | warnings = nullptr |
||
| ) |
Resolves (reads) generic binary data from an URI (or optionally via key and resolveMap).
| cache | Cache to use. Set to nullptr for no cache. | |
| key | Key (i.e. symbolic name) into resolveMap. | |
| resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, the key will be interpreted as an URI. | |
| [out] | warnings | Optional pointer to a std::wstring to add warnings. |
| CGBPtr prtx::DataBackend::resolveCGB | ( | prt::Cache * | cache, |
| const std::wstring & | key, | ||
| const prtx::ResolveMap * | resolveMap = nullptr |
||
| ) |
Resolve a CGB.
| cache | Cache to use. Set to nullptr for no cache. |
| key | Key (i.e. symbolic name) into resolveMap. |
| resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, it is tried to interpret the key as an URI. |
| GeometryPtr prtx::DataBackend::resolveGeometry | ( | prt::Cache * | cache, |
| const std::wstring & | key, | ||
| const prtx::ResolveMap * | resolveMap = nullptr, |
||
| std::wstring * | warnings = nullptr |
||
| ) |
Resolve a geometry.
Decoders may add metadata that's accessible through the Attributable interface or CGA's assetMetadata. Keys follow this pattern:
| Metadata Key | Type | Description |
|---|---|---|
| /fields/ | Namespace containing generic metadata. | |
| /georef/spatialReference | string | The spatial reference of the geometry. The format can vary between decoders and file types. Typical formats are WKIDs ('EPSG:4326' or 'http://www.opengis.net/def/crs/EPSG/0/6697'), WKTs, URNs ('urn:adv:crs:ETRS89_UTM32*DE_DHHN2016_NH'). |
| /georef/eastings | float | The x-offset from the origin of the spatial reference. This value is always in meters. |
| /georef/northings | float | The minus z-offset from the origin of the spatial reference. This value is always in meters. |
| /georef/height | float | The y-offset from the origin of the spatial reference. This value is always in meters. |
| /scale/appliedUnitToMeter | float | The factor the decoder used to scale the source vertices to meters. |
| cache | Cache to use. Set to nullptr for no cache. | |
| key | Key (i.e. symbolic name) into resolveMap. | |
| resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, the function tries to interpret the key as an URI. | |
| [out] | warnings | Optional pointer to a wstring to add warnings. |
| void prtx::DataBackend::resolveMaterial | ( | prt::Cache * | cache, |
| MaterialPtrVector & | materials, | ||
| const std::wstring & | key, | ||
| const prtx::ResolveMap * | resolveMap = nullptr, |
||
| std::wstring * | warnings = nullptr |
||
| ) |
Resolves materials
| cache | Cache to use. Set to nullptr for no cache. | |
| materials | [OUT] Vector to which 0, 1 or several MaterialPtrs are added. | |
| key | Key (i.e. symbolic name) into resolveMap. | |
| resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, it is tried to interpret the key as an URI. | |
| [out] | warnings | Optional pointer to a wstring to add warnings. |
| TablePtr prtx::DataBackend::resolveTable | ( | prt::Cache * | cache, |
| const std::wstring & | key, | ||
| const prtx::ResolveMap * | resolveMap = nullptr, |
||
| std::wstring * | warnings = nullptr |
||
| ) |
Resolves table.
| cache | Cache to use. Set to nullptr for no cache. | |
| key | Key (i.e. symbolic name) into resolveMap. | |
| resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, the key will be interpreted as an URI. | |
| [out] | warnings | Optional pointer to a std::wstring to add warnings. |
| CTStringPtr prtx::DataBackend::resolveText | ( | prt::Cache * | cache, |
| const std::wstring & | key, | ||
| const prtx::ResolveMap * | resolveMap = nullptr, |
||
| std::wstring * | warnings = nullptr |
||
| ) |
Resolves text.
| cache | Cache to use. Set to nullptr for no cache. | |
| key | Key (i.e. symbolic name) into resolveMap. | |
| resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, the key will be interpreted as an URI. | |
| [out] | warnings | Optional pointer to a std::wstring to add warnings. |
| TexturePtr prtx::DataBackend::resolveTexture | ( | prt::Cache * | cache, |
| const std::wstring & | key, | ||
| const prtx::ResolveMap * | resolveMap = nullptr, |
||
| std::wstring * | warnings = nullptr |
||
| ) |
Resolve a texture.
| cache | Cache to use. Set to nullptr for no cache. | |
| key | Key (i.e. symbolic name) into resolveMap. | |
| resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, it is tried to interpret the key as an URI. | |
| [out] | warnings | Optional pointer to a wstring to add warnings. |
1.8.14