Skip to content
Snippets Groups Projects
Commit cbcf6b36 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

nshm poly updates

parent 88a649a6
No related branches found
No related tags found
1 merge request!446Site file generator updates
......@@ -12,8 +12,8 @@ public enum NshmpPolygon {
CEUS_CLIP(Data.CEUS_CLIP, "Central & Eastern US Map Extents"),
WUS_CLIP(Data.WUS_CLIP, "Western US Map Extents"),
AK_CLIP(Data.AK_CLIP, "Alaska Map Extents"),
HI_CLIP(Data.HI_CLIP, "Hawaii Map Extents"),
ALASKA_CLIP(Data.ALASKA_CLIP, "Alaska Map Extents"),
HAWAII_CLIP(Data.HAWAII_CLIP, "Hawaii Map Extents"),
ALASKA(Data.ALASKA, "Alaska"),
HAWAII(Data.HAWAII, "Hawaii"),
......@@ -72,7 +72,7 @@ public enum NshmpPolygon {
{ -100.0, 50.0 }
};
private static final double[][] AK_CLIP = {
private static final double[][] ALASKA_CLIP = {
{ -200.0, 48.0 },
{ -125.0, 72.0 }
};
......@@ -105,7 +105,7 @@ public enum NshmpPolygon {
{ -137.5, 70.6 }
};
private static final double[][] HI_CLIP = {
private static final double[][] HAWAII_CLIP = {
{ -161.0, 18.0 },
{ -154.0, 23.0 }
};
......
......@@ -2,8 +2,10 @@ package gov.usgs.earthquake.nshmp.site;
import static com.google.common.base.Strings.padEnd;
import static com.google.common.base.Strings.padStart;
import static gov.usgs.earthquake.nshmp.site.NshmpPolygon.AK_CLIP;
import static gov.usgs.earthquake.nshmp.site.NshmpPolygon.ALASKA_CLIP;
import static gov.usgs.earthquake.nshmp.site.NshmpPolygon.ALASKA;
import static gov.usgs.earthquake.nshmp.site.NshmpPolygon.HAWAII_CLIP;
import static gov.usgs.earthquake.nshmp.site.NshmpPolygon.HAWAII;
import static gov.usgs.earthquake.nshmp.site.NshmpPolygon.CEUS_CLIP;
import static gov.usgs.earthquake.nshmp.site.NshmpPolygon.CONTERMINOUS_US;
import static gov.usgs.earthquake.nshmp.site.NshmpPolygon.CYBERSHAKE;
......@@ -52,6 +54,9 @@ import gov.usgs.earthquake.nshmp.NamedLocation;
* @author Peter Powers
*/
final class NshmpSiteFiles {
// TODO consider removing this to nshm-model-dev
// keeping the outputs in nshmp-haz
private static final Path EXPORT_DIR = Paths.get("etc", "nshm");
private static final String EXTENTS_COLOR = "#AA0078";
......@@ -92,7 +97,14 @@ final class NshmpSiteFiles {
ALASKA.toString(),
ALASKA.coordinates(),
0.1,
AK_CLIP.coordinates().bounds().toList());
ALASKA_CLIP.coordinates().bounds().toList());
writePolyJson(
EXPORT_DIR.resolve("map-hawaii.geojson"),
HAWAII.toString(),
HAWAII.coordinates(),
0.1,
HAWAII_CLIP.coordinates().bounds().toList());
writePolyJson(
EXPORT_DIR.resolve("map-la-basin.geojson"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment