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
Commits
e7a9bffa
Commit
e7a9bffa
authored
7 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Adding seasonal moods (XMas, Winter) to the map
parent
1759f516
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/nibio/vips/logic/controller/session/ForecastBean.java
+19
-45
19 additions, 45 deletions
.../no/nibio/vips/logic/controller/session/ForecastBean.java
with
19 additions
and
45 deletions
src/main/java/no/nibio/vips/logic/controller/session/ForecastBean.java
+
19
−
45
View file @
e7a9bffa
...
...
@@ -666,58 +666,32 @@ public class ForecastBean {
LabelStyle
noLabel
=
new
LabelStyle
().
withScale
(
0.0
);
document
.
createAndAddStyle
()
.
withId
(
"warning_type_0"
)
.
withLabelStyle
(
noLabel
)
.
createAndSetIconStyle
()
.
withScale
(
1
)
.
withHotSpot
(
hotspot
)
.
createAndSetIcon
()
.
withHref
(
iconPath
+
"station_icon_status_0.png"
);
document
.
createAndAddStyle
()
.
withId
(
"warning_type_1"
)
.
withLabelStyle
(
noLabel
)
.
createAndSetIconStyle
()
.
withScale
(
1
)
.
withHotSpot
(
hotspot
)
.
createAndSetIcon
()
.
withHref
(
iconPath
+
"station_icon_status_1.png"
);
document
.
createAndAddStyle
()
.
withId
(
"warning_type_2"
)
.
withLabelStyle
(
noLabel
)
.
createAndSetIconStyle
()
.
withScale
(
1
)
.
withHotSpot
(
hotspot
)
.
createAndSetIcon
()
.
withHref
(
iconPath
+
"station_icon_status_2.png"
);
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
SystemTime
.
getSystemTime
());
document
.
createAndAddStyle
()
.
withId
(
"warning_type_3"
)
.
withLabelStyle
(
noLabel
)
.
createAndSetIconStyle
()
.
withScale
(
1
)
.
withHotSpot
(
hotspot
)
.
createAndSetIcon
()
.
withHref
(
iconPath
+
"station_icon_status_3.png"
);
for
(
int
i
=
0
;
i
<=
4
;
i
++)
{
document
.
createAndAddStyle
()
.
withId
(
"warning_type_"
+
i
)
.
withLabelStyle
(
noLabel
)
.
createAndSetIconStyle
()
.
withScale
(
1
)
.
withHotSpot
(
hotspot
)
.
createAndSetIcon
()
.
withHref
(
iconPath
+
"station_icon_status_"
+
(
cal
.
get
(
Calendar
.
MONTH
)
<=
1
?
"winter"
:
cal
.
get
(
Calendar
.
MONTH
)
==
Calendar
.
DECEMBER
?
"xmas"
:
i
)
+
".png"
);
}
document
.
createAndAddStyle
()
.
withId
(
"warning_type_4"
)
.
withLabelStyle
(
noLabel
)
.
createAndSetIconStyle
()
.
withScale
(
1
)
.
withHotSpot
(
hotspot
)
.
createAndSetIcon
()
.
withHref
(
iconPath
+
"station_icon_status_4.png"
);
// Run through forecast configurations
// Run through forecast configurations
//Date benchmark = new Date();
List
<
PointOfInterest
>
poisWithAggregate
=
getPointOfInterestForecastsAggregate
(
organizationId
,
cropOrganismIds
,
theDate
);
//System.out.println(this.getClass().getName() + " DEBUG: getPointOfInterestForecastsAggregate took " + (new Date().getTime() - benchmark.getTime()) + " ms to complete.");
GISEntityUtil
gisUtil
=
new
GISEntityUtil
();
for
(
PointOfInterest
poiWithAggregate:
poisWithAggregate
)
for
(
PointOfInterest
poiWithAggregate:
poisWithAggregate
)
{
// If it's an inactive weather station, we don't produce a placemark
if
(
poiWithAggregate
instanceof
PointOfInterestWeatherStation
...
...
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