Solar System Treks (trek)¶
WMTS map-tile layers (mosaics, elevation and more) of the Moon, Mars and Vesta from NASA's Solar System Treks portals: LRO, Kaguya, MRO HiRISE/CTX, Viking, Dawn and other missions.
Endpoint¶
https://trek.nasa.gov/{body}/TrekServices/ws/index/eq/searchItems (layer search),
.../getLayerServices?uuid=... (a layer's WMTS endpoint) and
{endpoint}/1.0.0/WMTSCapabilities.xml. The api.nasa.gov mars-wmts/vesta-wmts routes
redirected to pre-signed S3 URLs after 30 s, tiles timed out after 60 s, and there is no layer
index (RESEARCH.md ยง8).
Key use¶
None. This service is called on its own host; it does not spend api.nasa.gov quota.
Tools¶
| Tool | What it returns |
|---|---|
nasa_trek_list_layers |
equirectangular layers of one body matching a search: uuid, title, mission, instrument, bounding box, resolution |
nasa_trek_tile_url |
one layer's WMTS endpoint, capabilities URL, tile URL template, tile matrix set, formats and a level-0 sample tile URL |
Inputs and result fields: Tool reference.
Quirks handled¶
- The layer search is a Solr query (Moon about 1,240 products, Mars 222, Vesta 15); the server filters to mosaics and pages.
- Layer names differ between api.nasa.gov and trek.nasa.gov; nasa-mcp uses Trek's own uuids.
- The tile extension (
.pngor.jpg) varies by layer and is read from the capabilities'ResourceURL. Capabilities are parsed withdefusedxml. - Level 0 is 2 columns by 1 row. The server returns URLs only; load them in Leaflet, OpenLayers or QGIS.
- Layer lists and capabilities are cached 1 day (
static).
Citation¶
source.citation:
NASA Solar System Treks Project, JPL/Caltech (https://trek.nasa.gov/).