-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsimple_hips_test.cpp
More file actions
28 lines (21 loc) · 837 Bytes
/
simple_hips_test.cpp
File metadata and controls
28 lines (21 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// simple_hips_test.cpp - Minimal HiPS connectivity test
#include <QCoreApplication>
#include <QDebug>
#include "ProperHipsClient.h"
int main(int argc, char *argv[]) {
QCoreApplication app(argc, argv);
if (false) qDebug() << "Simple HiPS Test - Testing M51 position";
ProperHipsClient client;
// Test M51 position with working survey
SkyPosition m51 = {202.4695833, 47.1951667, "M51", "Whirlpool Galaxy"};
QString url = client.buildTileUrl("DSS2_Color", m51, 6);
if (false) qDebug() << "M51 test URL:" << url;
if (!url.isEmpty()) {
if (false) qDebug() << "✅ URL generation successful";
client.testSurveyAtPosition("DSS2_Color", m51);
} else {
if (false) qDebug() << "❌ URL generation failed";
return 1;
}
return app.exec();
}