Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
gms-aux
Commits
4f4b7861
Commit
4f4b7861
authored
Oct 16, 2017
by
Daniel Eggert
Browse files
fixed missing distribution index value storage
parent
77d85a67
Changes
2
Hide whitespace changes
Inline
Side-by-side
gms-database/src/main/java/de/potsdam/gfz/gms/database/SceneDatabase.java
View file @
4f4b7861
...
...
@@ -1481,6 +1481,7 @@ public class SceneDatabase {
}
pst
.
setString
(++
idx
,
job
.
mode
.
toString
());
pst
.
setInt
(++
idx
,
job
.
distributionIndex
);
ResultSet
rs
=
pst
.
executeQuery
();
...
...
gms-database/src/main/java/de/potsdam/gfz/gms/database/SqlStatements.java
View file @
4f4b7861
...
...
@@ -47,7 +47,7 @@ public interface SqlStatements {
public
static
final
String
GET_PROC_LEVEL_FOR_JOB_SCENES_QUERY
=
"select scenes.datasetid, scenes.id, scenes.proc_level from scenes, jobs where jobs.id=? AND scenes.id = ANY(jobs.sceneids);"
;
public
static
final
String
CREATE_SCENE_PROCESSING_JOB
=
"INSERT INTO jobs (creationtime, timerange_start, timerange_end, bounds, sceneids, virtualsensorid, datasetid_spatial_ref, ref_job_id, non_ref_datasetids, max_cloudcover, season_code, path_analysis_script, analysis_parameter, statistics, job_mode) VALUES (CURRENT_TIMESTAMP, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?::job_mode) RETURNING id;"
;
public
static
final
String
CREATE_SCENE_PROCESSING_JOB
=
"INSERT INTO jobs (creationtime, timerange_start, timerange_end, bounds, sceneids, virtualsensorid, datasetid_spatial_ref, ref_job_id, non_ref_datasetids, max_cloudcover, season_code, path_analysis_script, analysis_parameter, statistics, job_mode
, distribution_index
) VALUES (CURRENT_TIMESTAMP, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?::job_mode
, ?
) RETURNING id;"
;
public
static
final
String
CREATE_VIRTUAL_SENSOR
=
"INSERT INTO virtual_sensors (name, spatial_resolution, spectral_characteristics_datasetid, wavelengths_pos, band_width) VALUES (?, ?, ?, ?, ?) RETURNING id;"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment