Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
VIPS
VIPSLogic
Merge requests
!17
Develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Develop
develop
into
master
Overview
0
Commits
66
Pipelines
0
Changes
2
Merged
Tor-Einar Skog
requested to merge
develop
into
master
5 years ago
Overview
0
Commits
66
Pipelines
0
Changes
2
Expand
Creating a baseline
0
0
Merge request reports
Viewing commit
45b62af0
Prev
Next
Show latest version
2 files
+
44
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
45b62af0
Allowing for more than one organization's stations to be shown on the front page map
· 45b62af0
Tor-Einar Skog
authored
6 years ago
src/main/java/no/nibio/vips/logic/controller/session/ForecastBean.java
+
15
−
2
Options
@@ -659,7 +659,7 @@ public class ForecastBean {
return
resource
;
}
public
Kml
getForecastsAggregateKml
(
Integer
organizationId
,
List
<
Integer
>
cropOrganismIds
,
Date
theDate
,
String
serverName
)
public
Kml
getForecastsAggregateKml
(
List
<
Integer
>
organizationId
s
,
List
<
Integer
>
cropOrganismIds
,
Date
theDate
,
String
serverName
)
{
//String iconPath = Globals.PROTOCOL + "://" + serverName + "/public/images/";
String
iconPath
=
"//"
+
serverName
+
"/public/images/"
;
@@ -696,7 +696,20 @@ public class ForecastBean {
// Run through forecast configurations
//Date benchmark = new Date();
List
<
PointOfInterest
>
poisWithAggregate
=
getPointOfInterestForecastsAggregate
(
organizationId
,
cropOrganismIds
,
theDate
);
List
<
PointOfInterest
>
poisWithAggregate
=
new
ArrayList
<>();
if
(
organizationIds
.
size
()
==
1
&&
organizationIds
.
get
(
0
).
equals
(-
1
))
{
em
.
createNamedQuery
(
"Organization.findAll"
,
Organization
.
class
).
getResultStream
().
forEach
(
org
->
poisWithAggregate
.
addAll
(
getPointOfInterestForecastsAggregate
(
org
.
getOrganizationId
(),
cropOrganismIds
,
theDate
))
);
}
else
{
organizationIds
.
stream
().
forEach
(
orgId
->
poisWithAggregate
.
addAll
(
getPointOfInterestForecastsAggregate
(
orgId
,
cropOrganismIds
,
theDate
))
);
}
//System.out.println(this.getClass().getName() + " DEBUG: getPointOfInterestForecastsAggregate took " + (new Date().getTime() - benchmark.getTime()) + " ms to complete.");
GISEntityUtil
gisUtil
=
new
GISEntityUtil
();
Loading