From 34e3e05db02350e4d6944bccd26a0404ffb46beb Mon Sep 17 00:00:00 2001 From: Marko Nedzbala <98484370+marko-nedzbala@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:13:52 -0400 Subject: [PATCH] Update hsip-api_test.go changed file format from Parquet to GPKG, and updated Bounding Box --- criticalinfrastructure/hsip-api_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/criticalinfrastructure/hsip-api_test.go b/criticalinfrastructure/hsip-api_test.go index 453dd04..a5e608b 100644 --- a/criticalinfrastructure/hsip-api_test.go +++ b/criticalinfrastructure/hsip-api_test.go @@ -13,9 +13,10 @@ func TestHSIP(t *testing.T) { list := []Layer{Hospitals, PowerPlants, FireStations, WasteWater, LawEnforcement, EmergencyMedicalServices, BRSandEBSTransmitters, CellularTowers, DialysisCenters, EPAandFRSPowerPlants, FacilityInterests, GeneratingUnits, HurricaneEvacuationRoutes, LandMobileBroadcastTowers, LandMobileCommercialTransmissionTowers, LocalEmergencyOperationsCenterEOC, LocalLawEnforcementLocations, MicrowaveServiceTowers, NursingHomes, PagingTransmissionTowers, Pharmacies, PublicHealthDepartments, PublicRefrigeratedWarehouses, UrgentCareFacilities, VeteransHealthAdministrationFacilities} provider := InitHsipProvider(list) bbox := geography.BBox{ - Bbox: []float64{-80, 36, -79.5, 35.5}, + // {top-left longitude, top-left latitude, bottom-right longitude, bottom-right latitude} + Bbox: []float64{-106.6456, 47.4567, -66.9499, 24.5231}, } - rw, _ := resultswriters.InitSpatialResultsWriter_EPSG_Projected("/workspaces/Go_Consequences/data/test6.parquet", "criticalInfrastructure", string(resultswriters.PARQUET), 4326) + rw, _ := resultswriters.InitSpatialResultsWriter_EPSG_Projected("/workspaces/Go_Consequences/data/test6.GPKG", "criticalInfrastructure", string(resultswriters.GPKG), 4326) defer rw.Close() provider.ByBbox(bbox, func(ci consequences.Receptor) { result, _ := ci.Compute(hazards.DepthEvent{})