Class TilesStructureTests


public class TilesStructureTests extends Capability1Tests
File/directory structure tests for the Tiles directory of the CDB
  • Constructor Details

    • TilesStructureTests

      public TilesStructureTests()
  • Method Details

    • sliceWidthForLatitude

      public Integer sliceWidthForLatitude(Integer latitude)
      Return the number of degrees of Longitude a Geocell encompasses, given a latitude. (Geocells have variable sizes.)
      Parameters:
      latitude - The latitude in integer degrees
      Returns:
      An integer amount of degrees of longitude
    • verifyGeocellLatitudeDirNamePrefix

      public void verifyGeocellLatitudeDirNamePrefix() throws IOException
      Validates that latitude geocell directories start with "S" or "N".
      Throws:
      IOException - Error reading from CDB
    • verifyGeocellLatitudeDirNameSlice

      public void verifyGeocellLatitudeDirNameSlice() throws IOException
      Validates that latitude geocell directories end with a valid slice latitude. latitudes should be zero-padded to 2 width.
      Throws:
      IOException - Error reading from CDB
    • verifyGeocellLongitudeDirNamePrefix

      public void verifyGeocellLongitudeDirNamePrefix() throws IOException
      Validates that longitude geocell directories start with "E" or "W".
      Throws:
      IOException - Error reading from CDB
    • verifyGeocellLongitudeDirNameSlice

      public void verifyGeocellLongitudeDirNameSlice() throws IOException
      Validates that longitude geocell directories end with a valid slice longitude. longitudes should be zero-padded to 3 width.
      Throws:
      IOException - Error reading from CDB
    • verifyDatasetPrefix

      public void verifyDatasetPrefix() throws IOException
      Validates that dataset directories begin with a 3-digit prefix.
      Throws:
      IOException - Error reading from CDB
    • verifyDatasetCodeName

      public void verifyDatasetCodeName() throws IOException
      Validates that dataset directories prefix code and name match and are valid values.
      Throws:
      IOException - Error reading from CDB
    • verifyLODName

      public void verifyLODName() throws IOException
      Validates that LOD directories have valid names.
      Throws:
      IOException - Error reading from CDB
    • verifyUREFName

      public void verifyUREFName() throws IOException
      Validates that UREF directories have valid names and are in a valid range for the LOD.
      Throws:
      IOException - Error reading from CDB
    • verifyDatasetFileName

      public void verifyDatasetFileName() throws IOException
      Validates that tiled dataset files have valid names.
      Throws:
      IOException - Error reading from CDB