
org.opengis.cite.geotiff11.tiffTests.GeoKeyDirectoryTests Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ets-geotiff11 Show documentation
Show all versions of ets-geotiff11 Show documentation
Describe purpose of test suite.
The newest version!
package org.opengis.cite.geotiff11.tiffTests;
import static org.opengis.cite.geotiff11.util.GeoKeyID.GEOKEYDIRECTORYTAG;
import java.util.List;
import org.opengis.cite.geotiff11.util.TiffDump;
import org.testng.Assert;
import org.testng.annotations.Test;
// https://github.com/opengeospatial/geotiff/blob/5d6ab0ba54f1ed0174901dd84240817dc9dbe011/GeoTIFF_Standard/standard/abstract_tests/TIFF_Tests/TEST_GeoKeyDirectory.adoc
/**
*
* GeoKeyDirectoryTests class.
*
*
*/
public class GeoKeyDirectoryTests extends CommonTiffMeta {
// TODO: execute tests [...]
/*
* GeoKey Directory Test Test
* id: http://www.opengis.net/spec/GeoTIFF/1.1/conf/GeoKeyDirectory Requirements:
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.keyDirectoryVersion
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.
* keyDirectoryVersionValue
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.keyRevision
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.keyRevisionValue
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.minorRevision
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.minorRevisionValue
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.numberOfKeys
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.keyEntrySetCount
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.KeyEntry
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.KeyEntryKeyID
* http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeyDirectoryTag.
* KeyEntryTIFFTagLocation http://www.opengis.net/spec/GeoTIFF/1.1/req/GeoKeySort
* Purpose: Verify the TIFF header and prepare for processing the GeoTIFF tags.
* Pre-conditions: None Test Variables: Variable Scope Description IFD_Offset Local
* Location within the TIFF file of an IFD GeoKeyDirectory Global Location of the
* GeoTIFF GeoKey directory ASCIIValues Global Location of the ASCII values for
* GeoTIFF ASCII GeoKeys DoubleValues Global Location of the Double values for GeoTIFF
* Double GeoKeys GeoKeyOffset Parameter Location of this GeoKey in the GeoKey
* directory KeySetCount Local The number of entries in the GeoKey directory
*/
/**
*
* verifyGeoKeyDirectory.
*
* @throws java.lang.Exception if any.
*/
@Test(description = "GeoKey Directory Test", groups = { "verifyGeoKeyDirectory" })
public void verifyGeoKeyDirectory() throws Exception {
for (TiffDump.Directory directory : tiffDump.getDirectories()) {
TiffDump.Tag geoKeyDirectory = directory.getTag(GEOKEYDIRECTORYTAG);
// verify specific tag values
if (directory.getOffset() != 0 && geoKeyDirectory != null) {
// the GeoKeyDirectoryTag SHALL have ID = 34735
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy