コード例 #1
0
  @Override
  protected void tearDownInternal() throws Exception {

    // clean up disk
    if (!ImageMosaicReaderTest.INTERACTIVE) {
      FileUtils.deleteDirectory(TestData.file(this, "watertemp4"));
    }

    // delete tables
    Class.forName("org.postgresql.Driver");
    Connection connection =
        DriverManager.getConnection(
            "jdbc:postgresql://"
                + fixture.getProperty("host")
                + ":"
                + fixture.getProperty("port")
                + "/"
                + fixture.getProperty("database"),
            fixture.getProperty("user"),
            fixture.getProperty("passwd"));
    Statement st = connection.createStatement();
    st.execute("DROP TABLE IF EXISTS watertemp4");
    st.close();
    connection.close();

    System.clearProperty("org.geotools.referencing.forceXY");

    super.tearDownInternal();
  }
コード例 #2
0
  @Override
  protected void setUpInternal() throws Exception {
    super.setUpInternal();

    // make sure CRS ordering is correct
    System.setProperty("org.geotools.referencing.forceXY", "true");
    System.setProperty("user.timezone", "GMT");
  }