Commit e0bd6d66 authored by Akarsh Simha's avatar Akarsh Simha Committed by Jasem Mutlaq

Update DSS URLs to https.

Retrieving DSS images was not working because we got a service
redirect HTML blurb instead of an image.
parent dcc946b4
Pipeline #48489 passed with stage
in 6 minutes and 21 seconds
......@@ -136,7 +136,7 @@ QString KSDssDownloader::getDSSURL(const dms &ra, const dms &dec, float width, f
QString version = version_.toLower();
QString type = type_.toLower();
QString URLprefix = QString("http://archive.stsci.edu/cgi-bin/dss_search?v=%1&").arg(version);
QString URLprefix = QString("https://archive.stsci.edu/cgi-bin/dss_search?v=%1&").arg(version);
QString URLsuffix = QString("&e=J2000&f=%1&c=none&fov=NONE").arg(type);
char decsgn = (dec.Degrees() < 0.0) ? '-' : '+';
......
......@@ -125,7 +125,7 @@ QString getDSSURL(const SkyPoint *const p)
QString getDSSURL(const dms &ra, const dms &dec, float width, float height, const QString &type)
{
const QString URLprefix("http://archive.stsci.edu/cgi-bin/dss_search?");
const QString URLprefix("https://archive.stsci.edu/cgi-bin/dss_search?");
QString URLsuffix = QString("&e=J2000&f=%1&c=none&fov=NONE").arg(type);
const double dss_default_size = Options::defaultDSSImageSize();
......
......@@ -477,7 +477,7 @@ void SkyMap::slotDSS()
if (kstars)
{
new ImageViewer(
url, i18n("Digitized Sky Survey image provided by the Space Telescope Science Institute [public domain]."),
url, i18n("Digitized Sky Survey image provided by the Space Telescope Science Institute [free for non-commercial use]."),
this);
//iv->show();
}
......@@ -545,8 +545,8 @@ void SkyMap::slotSDSS()
// implemented in ObservingList::setCurrentImage() etc. in
// tools/observinglist.cpp; must try to de-duplicate as much as
// possible.
QString URLprefix("http://casjobs.sdss.org/ImgCutoutDR6/getjpeg.aspx?");
QString URLsuffix("&scale=1.0&width=600&height=600&opt=GST&query=SR(10,20)");
QString URLprefix("http://skyserver.sdss.org/dr16/SkyServerWS/ImgCutout/getjpeg?");
QString URLsuffix("&scale=1.0&width=600&height=600");
dms ra(0.0), dec(0.0);
QString RAString, DecString;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment