Class TilesStructureTests
java.lang.Object
org.opengis.cite.cdb10.CommonFixture
org.opengis.cite.cdb10.cdbStructure.Capability1Tests
org.opengis.cite.cdb10.cdbStructure.TilesStructureTests
File/directory structure tests for the Tiles directory of the CDB
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.cite.cdb10.cdbStructure.Capability1Tests
Capability1Tests.validateFile
-
Field Summary
Fields inherited from class org.opengis.cite.cdb10.CommonFixture
path, ROOT_PKG_PATH, SAMPLE_CDB_PATH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsliceWidthForLatitude
(Integer latitude) Return the number of degrees of Longitude a Geocell encompasses, given a latitude.void
Validates that dataset directories prefix code and name match and are valid values.void
Validates that tiled dataset files have valid names.void
Validates that dataset directories begin with a 3-digit prefix.void
Validates that latitude geocell directories start with "S" or "N".void
Validates that latitude geocell directories end with a valid slice latitude.void
Validates that longitude geocell directories start with "E" or "W".void
Validates that longitude geocell directories end with a valid slice longitude.void
Validates that LOD directories have valid names.void
Validates that UREF directories have valid names and are in a valid range for the LOD.Methods inherited from class org.opengis.cite.cdb10.cdbStructure.Capability1Tests
getDatasetPaths, iterateDatasets, iterateEntries, obtainTestSubject, parseLOD, validateComponentSelector1, validateComponentSelector2, validateComponentSelectorFormat, validateDISCategory, validateDISCountry, validateDISDomain, validateDISEntity, validateDISEntityKind, validateFeatureCode, validateFeatureSubCode, validateLatitude, validateLod, validateLOD, validateLongitude, validateModelName, validateRref, validateTextureNameCode, validateUref
-
Constructor Details
-
TilesStructureTests
public TilesStructureTests()
-
-
Method Details
-
sliceWidthForLatitude
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
Validates that latitude geocell directories start with "S" or "N".- Throws:
IOException
- Error reading from CDB
-
verifyGeocellLatitudeDirNameSlice
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
Validates that longitude geocell directories start with "E" or "W".- Throws:
IOException
- Error reading from CDB
-
verifyGeocellLongitudeDirNameSlice
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
Validates that dataset directories begin with a 3-digit prefix.- Throws:
IOException
- Error reading from CDB
-
verifyDatasetCodeName
Validates that dataset directories prefix code and name match and are valid values.- Throws:
IOException
- Error reading from CDB
-
verifyLODName
Validates that LOD directories have valid names.- Throws:
IOException
- Error reading from CDB
-
verifyUREFName
Validates that UREF directories have valid names and are in a valid range for the LOD.- Throws:
IOException
- Error reading from CDB
-
verifyDatasetFileName
Validates that tiled dataset files have valid names.- Throws:
IOException
- Error reading from CDB
-