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 * <BR>
031 * http://www.remotesensing.org/geotiff/spec/contents.html
032 */
033public final class GeoTiffTagConstants {
034
035    public static final TagInfoDoubles EXIF_TAG_MODEL_PIXEL_SCALE_TAG = new TagInfoDoubles(
036            "ModelPixelScaleTag", 0x830e, 3,
037            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
038
039    public static final TagInfoDoubles EXIF_TAG_INTERGRAPH_MATRIX_TAG = new TagInfoDoubles(
040            "IntergraphMatrixTag", 0x8480, -1,
041            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
042
043    public static final TagInfoDoubles EXIF_TAG_MODEL_TIEPOINT_TAG = new TagInfoDoubles(
044            "ModelTiepointTag", 0x8482, -1,
045            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
046
047    public static final TagInfoDoubles EXIF_TAG_MODEL_TRANSFORMATION_TAG = new TagInfoDoubles(
048            "ModelTransformationTag", 0x85d8, 16,
049            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
050
051    public static final TagInfoShorts EXIF_TAG_GEO_KEY_DIRECTORY_TAG = new TagInfoShorts(
052            "GeoKeyDirectoryTag", 0x87af, -1,
053            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
054
055    public static final TagInfoDoubles EXIF_TAG_GEO_DOUBLE_PARAMS_TAG = new TagInfoDoubles(
056            "GeoDoubleParamsTag", 0x87b0, -1,
057            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
058
059    public static final TagInfoAscii EXIF_TAG_GEO_ASCII_PARAMS_TAG = new TagInfoAscii(
060            "GeoAsciiParamsTag", 0x87b1, -1,
061            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
062
063    public static final List<TagInfo> ALL_GEO_TIFF_TAGS =
064            Collections.unmodifiableList(Arrays.asList(
065                    EXIF_TAG_MODEL_PIXEL_SCALE_TAG,
066                    EXIF_TAG_INTERGRAPH_MATRIX_TAG,
067                    EXIF_TAG_MODEL_TIEPOINT_TAG,
068                    EXIF_TAG_MODEL_TRANSFORMATION_TAG,
069                    EXIF_TAG_GEO_KEY_DIRECTORY_TAG,
070                    EXIF_TAG_GEO_DOUBLE_PARAMS_TAG,
071                    EXIF_TAG_GEO_ASCII_PARAMS_TAG));
072
073    private GeoTiffTagConstants() {
074    }
075
076}