Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-siav2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ViaLactea
vlkb-siav2
Commits
4f23166e
Commit
4f23166e
authored
1 year ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
search: adds access_url (with call to cutout) to VOTable output
parent
6625a229
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data-discovery/src/main/java/vlkb/output/XmlSerializer.java
+18
-14
18 additions, 14 deletions
data-discovery/src/main/java/vlkb/output/XmlSerializer.java
with
18 additions
and
14 deletions
data-discovery/src/main/java/vlkb/output/XmlSerializer.java
+
18
−
14
View file @
4f23166e
...
@@ -49,23 +49,26 @@ public final class XmlSerializer
...
@@ -49,23 +49,26 @@ public final class XmlSerializer
private
static
StarTable
makeSearchResultsTable
(
Subsurvey
[]
ssurv
)
private
static
StarTable
makeSearchResultsTable
(
Subsurvey
[]
ssurv
)
{
{
ColumnInfo
[]
colInfos
=
new
ColumnInfo
[
5
+
2
*
4
];
ColumnInfo
[]
colInfos
=
new
ColumnInfo
[
6
+
2
*
4
];
colInfos
[
0
]
=
new
ColumnInfo
(
"overlap"
,
Integer
.
class
,
"Overlap Code"
);
int
ix
=
0
;
colInfos
[
1
]
=
new
ColumnInfo
(
"overlapSky"
,
Integer
.
class
,
"Overlap Code for Sky axes"
);
colInfos
[
2
]
=
new
ColumnInfo
(
"overlapSpec"
,
Integer
.
class
,
"Overlap Code for Spectral axis"
);
colInfos
[
3
]
=
new
ColumnInfo
(
"dataType"
,
String
.
class
,
"Data Type (image|cube)"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"overlap"
,
Integer
.
class
,
"Overlap Code"
);
colInfos
[
4
]
=
new
ColumnInfo
(
"pubdid"
,
String
.
class
,
"PublisherDid"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"overlapSky"
,
Integer
.
class
,
"Overlap Code for Sky axes"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"overlapSpec"
,
Integer
.
class
,
"Overlap Code for Spectral axis"
);
colInfos
[
5
]
=
new
ColumnInfo
(
"P1lon"
,
Double
.
class
,
"longitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"dataType"
,
String
.
class
,
"Data Type (image|cube)"
);
colInfos
[
6
]
=
new
ColumnInfo
(
"P1lat"
,
Double
.
class
,
"latitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"pubdid"
,
String
.
class
,
"PublisherDid"
);
colInfos
[
7
]
=
new
ColumnInfo
(
"P2lon"
,
Double
.
class
,
"longitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"access_url"
,
String
.
class
,
"Access URL"
);
colInfos
[
8
]
=
new
ColumnInfo
(
"P2lat"
,
Double
.
class
,
"latitude"
);
colInfos
[
9
]
=
new
ColumnInfo
(
"P3lon"
,
Double
.
class
,
"longitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"P1lon"
,
Double
.
class
,
"longitude"
);
colInfos
[
10
]
=
new
ColumnInfo
(
"P3lat"
,
Double
.
class
,
"latitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"P1lat"
,
Double
.
class
,
"latitude"
);
colInfos
[
11
]
=
new
ColumnInfo
(
"P4lon"
,
Double
.
class
,
"longitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"P2lon"
,
Double
.
class
,
"longitude"
);
colInfos
[
12
]
=
new
ColumnInfo
(
"P4lat"
,
Double
.
class
,
"latitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"P2lat"
,
Double
.
class
,
"latitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"P3lon"
,
Double
.
class
,
"longitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"P3lat"
,
Double
.
class
,
"latitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"P4lon"
,
Double
.
class
,
"longitude"
);
colInfos
[
ix
++
]
=
new
ColumnInfo
(
"P4lat"
,
Double
.
class
,
"latitude"
);
RowListStarTable
astro
=
new
RowListStarTable
(
colInfos
);
RowListStarTable
astro
=
new
RowListStarTable
(
colInfos
);
...
@@ -81,6 +84,7 @@ public final class XmlSerializer
...
@@ -81,6 +84,7 @@ public final class XmlSerializer
dataset
.
dataType
,
dataset
.
dataType
,
dataset
.
publisherDid
,
dataset
.
publisherDid
,
dataset
.
access
.
accessCutoutUrl
,
new
Double
(
dataset
.
vertices_deg
.
lon
[
0
]),
new
Double
(
dataset
.
vertices_deg
.
lat
[
0
]),
new
Double
(
dataset
.
vertices_deg
.
lon
[
0
]),
new
Double
(
dataset
.
vertices_deg
.
lat
[
0
]),
new
Double
(
dataset
.
vertices_deg
.
lon
[
1
]),
new
Double
(
dataset
.
vertices_deg
.
lat
[
1
]),
new
Double
(
dataset
.
vertices_deg
.
lon
[
1
]),
new
Double
(
dataset
.
vertices_deg
.
lat
[
1
]),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment