From c68e108c3acab2106a50208b6db47c428b8cd9b7 Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Tue, 26 Jan 2021 06:20:08 -0700 Subject: [PATCH] heojson title property parsing fix --- src/main/java/gov/usgs/earthquake/nshmp/calc/Site.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/gov/usgs/earthquake/nshmp/calc/Site.java b/src/main/java/gov/usgs/earthquake/nshmp/calc/Site.java index c316c8a3..7eccc417 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/calc/Site.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/calc/Site.java @@ -30,6 +30,7 @@ import gov.usgs.earthquake.nshmp.NamedLocation; import gov.usgs.earthquake.nshmp.geo.Location; import gov.usgs.earthquake.nshmp.geo.json.Feature; import gov.usgs.earthquake.nshmp.geo.json.Properties; +import gov.usgs.earthquake.nshmp.geo.json.Properties.Style; import gov.usgs.earthquake.nshmp.gmm.GroundMotionModel; /** @@ -287,7 +288,7 @@ public class Site { * parsers in Sites. */ Builder geoJsonProperties(Properties props) { - props.getString(Key.NAME).ifPresent(this::name); + props.getString(Style.TITLE.toString()).ifPresent(this::name); props.getDouble(Key.VS30).ifPresent(this::vs30); props.getBoolean(Key.VS_INF).ifPresent(this::vsInferred); props.getDouble(Key.Z1P0).ifPresent(this::z1p0); -- GitLab