Esempio n. 1
0
  protected void setUp() throws Exception {
    super.setUp();
    ns = new Netcdf2sos100();

    URL file = getURL("oostethys.xml");
    URL url = file;

    ns.setUrlOostethys(url);
  }
Esempio n. 2
0
  public void testGetObservation_noTime() throws Exception {
    // 42.20551 -70.7238
    //			String minLon = "-140";
    //			String minLat = "36";
    //			String maxLon = "-68";
    //			String maxlat = "45";
    //			String bbox = minLon + "," + minLat + "," + maxLon + "," + maxlat;
    Map<String, String[]> map = new HashMap<String, String[]>();
    map.put("Request", createArray("getObservation"));
    //			map.put("bbox", createArray(bbox));
    map.put("Service", createArray("SOS"));
    map.put("version", createArray("1.0.0"));
    map.put("offering", createArray("observationOffering_1455"));

    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

    // ns.setValue_BBOX(bbox);
    ns.process(map, outputStream);

    String s = outputStream.toString();

    assertTrue(s.contains("<swe:values>"));
  }