CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
RemoteFiles.cc File Reference
#include "RemoteFiles.h"
#include <spdlog/fmt/fmt.h>
#include <cmath>
#include "String.h"
Include dependency graph for RemoteFiles.cc:

Functions

bool GenerateUrlFromRequest (const CARTA::RemoteFileRequest &request, std::string &url, std::string &error_message)
 Generates a URL for a remote file request based on provided parameters.
 

Function Documentation

◆ GenerateUrlFromRequest()

bool GenerateUrlFromRequest ( const CARTA::RemoteFileRequest &  request,
std::string &  url,
std::string &  error_message 
)

Generates a URL for a remote file request based on provided parameters.

This function validates the CARTA::RemoteFileRequest parameters and constructs a URL to fetch an image from the HiPS service. If any required parameters are missing or invalid, it returns false and provides an appropriate error message.

Note
The function ensures that all required parameters are present and valid before constructing the URL. If wcs is not provided, additional fields such as coordsys, projection, fov, and object or (ra, dec) must be specified.
Here is the call graph for this function:
Here is the caller graph for this function: