geo.catalog
2 functions / 11 types
Index
| Function | Description |
|---|---|
| GetServicePreview | Fetch a representative tile without adding a map layer. Elevation previews contain shaded relief. Missing coverage returns no preview. |
| GetWmtsLayers | List every layer a WMTS service offers, in the order its capabilities document declares them. |
| Type | Description |
|---|---|
| ArcgisPreviewSource | |
| GetServicePreview | Fetch a representative tile without adding a map layer. Elevation previews contain shaded relief. Missing coverage returns no preview. |
| GetServicePreviewResponse | |
| GetWmtsLayers | List every layer a WMTS service offers, in the order its capabilities document declares them. |
| GetWmtsLayersResponse | |
| PreviewSource | |
| PreviewTile | One tile that shows a layer source at a glance, as geo.catalog.get_service_preview answers it. |
| ServiceLayer | One layer a WMTS service offers, as geo.catalog.get_wmts_layers lists it. |
| UvRect | A rectangle inside an image, in fractions of the image’s width and height measured from its top-left corner. |
| WmtsPreviewSource | |
| XyzPreviewSource |
GetServicePreview
RPC
GetServicePreview(request: geo.catalog.GetServicePreview) -> geo.catalog.GetServicePreviewResponseFetch a representative tile without adding a map layer. Elevation previews contain shaded relief. Missing coverage returns no preview.
Service method: spatialengine.v1.geo.catalog.GeoCatalog.GetServicePreview.
Returns geo.catalog.GetServicePreviewResponse.
source : geo.catalog.PreviewSource
auth optional : geo.map.layer.TileAuth
GetWmtsLayers
RPC
GetWmtsLayers(request: geo.catalog.GetWmtsLayers) -> geo.catalog.GetWmtsLayersResponseList every layer a WMTS service offers, in the order its capabilities document declares them.
The document is read with auth and kept, so asking again, or spawning one of the layers with
geo.map.layer.add_wmts_layer and the same credentials, does not fetch it again. This needs
no map. Fails when the document cannot be reached or read.
Service method: spatialengine.v1.geo.catalog.GeoCatalog.GetWmtsLayers.
Returns geo.catalog.GetWmtsLayersResponse.
capabilities_url : string
The URL of a WMTS capabilities document.
auth optional : geo.map.layer.TileAuth
Credentials of your own, sent with the capabilities request. They appear in each preview URL.
ArcgisPreviewSource
Message
service_url : string
role optional : geo.map.layer.LayerRole
elevation optional : geo.map.layer.ElevationOptions
GetServicePreview
Message
Fetch a representative tile without adding a map layer. Elevation previews contain shaded relief. Missing coverage returns no preview.
source : geo.catalog.PreviewSource
auth optional : geo.map.layer.TileAuth
GetServicePreviewResponse
Message
value optional : geo.catalog.PreviewTile
GetWmtsLayers
Message
List every layer a WMTS service offers, in the order its capabilities document declares them.
The document is read with auth and kept, so asking again, or spawning one of the layers with
geo.map.layer.add_wmts_layer and the same credentials, does not fetch it again. This needs
no map. Fails when the document cannot be reached or read.
capabilities_url : string
The URL of a WMTS capabilities document.
auth optional : geo.map.layer.TileAuth
Credentials of your own, sent with the capabilities request. They appear in each preview URL.
GetWmtsLayersResponse
Message
value optional : list[geo.catalog.ServiceLayer]
PreviewSource
Message
Choose one of: wmts, arcgis, xyz.
wmts optional : geo.catalog.WmtsPreviewSource
arcgis optional : geo.catalog.ArcgisPreviewSource
xyz optional : geo.catalog.XyzPreviewSource
PreviewTile
Message
One tile that shows a layer source at a glance, as geo.catalog.get_service_preview answers
it.
url : string
The tile’s address, with the credentials asked for applied, ready for an image element. For
an elevation layer it is a data: URL holding the tile drawn as shaded relief.
content optional : geo.catalog.UvRect
The part of the tile the layer draws on, absent when it draws on the whole tile. Crop the image to it to show the layer without the empty part of the tile.
ServiceLayer
Message
One layer a WMTS service offers, as geo.catalog.get_wmts_layers lists it.
identifier : geo.ProviderLayerId
The identifier geo.map.layer.add_wmts_layer takes as provider_layer_id.
title : string
The title the service gives the layer, or the identifier where it gives none.
summary optional : string
The service’s description of the layer.
role : geo.map.layer.LayerRole
Elevation when the layer’s tile formats or name say its tiles hold heights.
formats optional : list[geo.MediaType]
The tile media types the layer offers.
tile_matrix_sets optional : list[geo.TileMatrixSet]
The tile matrix sets the layer can be drawn on. A set the layer links to but the service does not declare is left out, because a layer cannot be spawned on it.
styles optional : list[geo.StyleId]
The style identifiers the layer offers, the default first.
has_time_dimension : bool
Whether the layer changes over time. Spawned, it follows the scene clock.
preview_url optional : string
The address of one tile that shows the layer at a glance, absent when the layer has no such tile or holds heights.
preview_content optional : geo.catalog.UvRect
The part of the preview tile the layer draws on, absent when it draws on the whole tile.
bounds optional : geo.map.layer.GeoBounds
The ground the layer covers, where the service declares it.
dates optional : geo.map.layer.LayerDates
The dates the layer offers, where it declares a time axis of dates. date is the one the
preview tile shows, which is the one the layer opens on while the clock reads the present.
unavailable_tile_matrix_sets optional : list[geo.UnavailableTileMatrixSet]
The tile matrix sets the layer links that cannot be drawn until their coordinate reference
system is registered, each with the reason. A layer spawned with every set here is saved
and reports Failed until a set’s system is registered.
UvRect
Message
A rectangle inside an image, in fractions of the image’s width and height measured from its top-left corner.
x : double
y : double
width : double
height : double
WmtsPreviewSource
Message
capabilities_url : string
provider_layer_id optional : geo.ProviderLayerId
XyzPreviewSource
Message
subdomains optional : list[string]
template : geo.TileUrlTemplate
role optional : geo.map.layer.LayerRole
elevation optional : geo.map.layer.ElevationOptions
max_zoom optional : uint32
tile_size optional : uint32