001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.commons.imaging.formats.tiff.constants;
018
019import java.util.Arrays;
020import java.util.Collections;
021import java.util.List;
022
023import org.apache.commons.imaging.formats.tiff.taginfos.TagInfo;
024import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoAscii;
025import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoDoubles;
026import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoShorts;
027
028/**
029 * Geo Tiff.
030 * <p>
031 * [BROKEN URL] http://www.remotesensing.org/geotiff/spec/contents.html
032 * </p>
033 */
034public final class GeoTiffTagConstants {
035
036    public static final TagInfoDoubles EXIF_TAG_MODEL_PIXEL_SCALE_TAG = new TagInfoDoubles("ModelPixelScaleTag", 0x830e, 3,
037            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
038
039    public static final TagInfoDoubles EXIF_TAG_INTERGRAPH_MATRIX_TAG = new TagInfoDoubles("IntergraphMatrixTag", 0x8480, -1,
040            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
041
042    public static final TagInfoDoubles EXIF_TAG_MODEL_TIEPOINT_TAG = new TagInfoDoubles("ModelTiepointTag", 0x8482, -1,
043            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
044
045    public static final TagInfoDoubles EXIF_TAG_MODEL_TRANSFORMATION_TAG = new TagInfoDoubles("ModelTransformationTag", 0x85d8, 16,
046            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
047
048    public static final TagInfoShorts EXIF_TAG_GEO_KEY_DIRECTORY_TAG = new TagInfoShorts("GeoKeyDirectoryTag", 0x87af, -1,
049            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
050
051    public static final TagInfoDoubles EXIF_TAG_GEO_DOUBLE_PARAMS_TAG = new TagInfoDoubles("GeoDoubleParamsTag", 0x87b0, -1,
052            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
053
054    public static final TagInfoAscii EXIF_TAG_GEO_ASCII_PARAMS_TAG = new TagInfoAscii("GeoAsciiParamsTag", 0x87b1, -1,
055            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
056
057    public static final List<TagInfo> ALL_GEO_TIFF_TAGS = Collections
058            .unmodifiableList(Arrays.asList(EXIF_TAG_MODEL_PIXEL_SCALE_TAG, EXIF_TAG_INTERGRAPH_MATRIX_TAG, EXIF_TAG_MODEL_TIEPOINT_TAG,
059                    EXIF_TAG_MODEL_TRANSFORMATION_TAG, EXIF_TAG_GEO_KEY_DIRECTORY_TAG, EXIF_TAG_GEO_DOUBLE_PARAMS_TAG, EXIF_TAG_GEO_ASCII_PARAMS_TAG));
060
061    private GeoTiffTagConstants() {
062    }
063
064}