use of gov.usgs.cida.coastalhazards.model.summary.Medium in project coastal-hazards by USGS-CIDA.
the class StormUtil method buildStormTemplateSummary.
public static Summary buildStormTemplateSummary(Layer layer) {
Summary summary = new Summary();
Document cswDoc = getStormCswDocument(layer);
if (cswDoc != null) {
String title = MetadataUtil.extractFirstStringFromCswDoc(cswDoc, "/*/metadata/idinfo/citation/citeinfo/title");
Map<String, String> titleParts = parseTitleParts(title);
String cswAbstract = MetadataUtil.extractFirstStringFromCswDoc(cswDoc, "/*/metadata/idinfo/descript/abstract");
List<String> dataSrcList = MetadataUtil.extractStringsFromCswDoc(cswDoc, "/*/metadata/dataqual/lineage/srcinfo/srccite/citeinfo/title");
String surgeDescription = buildSurgeDescription(cswDoc);
Tiny tiny = buildTinyText(titleParts);
Medium medium = buildMediumText(titleParts);
Full full = buildFullText(titleParts, title, surgeDescription);
Legend legend = buildLegendText(titleParts);
summary.setTiny(tiny);
summary.setMedium(medium);
summary.setFull(full);
summary.setLegend(legend);
}
return summary;
}
use of gov.usgs.cida.coastalhazards.model.summary.Medium in project coastal-hazards by USGS-CIDA.
the class StormUtil method buildMediumText.
private static Medium buildMediumText(Map<String, String> titleParts) {
Medium medium = new Medium();
String mediumText = "Potential coastal change impacts during a direct landfall of " + titleParts.get("name") + ": " + titleParts.get("advFull");
medium.setTitle(titleParts.get("name"));
medium.setText(mediumText);
return medium;
}
Aggregations