diff --git a/src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/ReaderHazardCurves.java b/src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/ReaderHazardCurves.java index f8531d56ae5533bae0695d3d657f2569f8305b8a..9c465d295d94499f02fdd130f7350dab5fb0e513 100644 --- a/src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/ReaderHazardCurves.java +++ b/src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/ReaderHazardCurves.java @@ -7,6 +7,7 @@ import java.util.EnumMap; import java.util.List; import java.util.Map; +import gov.usgs.earthquake.nshmp.geo.json.GeoJson; import gov.usgs.earthquake.nshmp.gmm.Imt; import gov.usgs.earthquake.nshmp.netcdf.data.NetcdfData; import gov.usgs.earthquake.nshmp.netcdf.data.NetcdfDataHazardCurves; @@ -43,7 +44,15 @@ public class ReaderHazardCurves extends Reader { // get map of IMLs var imls = mapImls(vImls, netcdfData.imts()); - return new NetcdfDataHazardCurves(netcdfData, imls); + // get map boundary geojson + var map = + GeoJson.from(targetGroup.findAttribute(Key.MAP).getStringValue()).toFeatureCollection(); + + // get test sites geojson + var sites = + GeoJson.from(targetGroup.findAttribute(Key.SITES).getStringValue()).toFeatureCollection(); + + return new NetcdfDataHazardCurves(netcdfData, imls, map, sites); } @Override