![]() |
CARTA Backend
The backend component of CARTA
|
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. | |
| 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.
wcs is not provided, additional fields such as coordsys, projection, fov, and object or (ra, dec) must be specified.