globalmapper.GetOnlineLayerLocationMetadata¶
- globalmapper.GetOnlineLayerLocationMetadata(GM_LayerHandle_t32 aLayer, float aXCoord, float aYCoord, uint32 aReserved=0) GM_Error_t32, str [source]¶
Queries a loaded online layer for location-specific metadata. This is typically used for WMS / WMTS sources that support the GetFeatureInfo interface.
The filepath of the output is returned as a string. The output file will generally be XML or HTML data.
- Parameters:
aLayer (GM_LayerHandle_t32) – Loaded online layer handle to query (or gm.NULL to get top-most)
aXCoord (float) – X coord in current projection
aYCoord (float) – Y coord in current projection
aReserved (uint32) – Reserved for future use; defaults to 0
- Returns:
Error Code
- Return type:
GM_Error_t32
- Returns:
The location of the file that was downloaded, containing the location-specific metadata for the provided online layer
- Return type:
str