001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2005-2006, GeoTools Project Managment Committee (PMC)
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation;
009: * version 2.1 of the License.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: */
016: package org.geotools.gce.geotiff.IIOMetadataAdpaters.utils;
017:
018: /**
019: * @author simone
020: *
021: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/plugin/geotiff/src/main/java/org/geotools/gce/geotiff/IIOMetadataAdpaters/utils/GeoTiffConstants.java $
022: */
023: public final class GeoTiffConstants {
024: public static final short GTUserDefinedGeoKey = 32767;
025:
026: static public final String GTUserDefinedGeoKey_String = "32767"
027: .intern();
028:
029: public static final short ARRAY_ELEM_INCREMENT = 5;
030:
031: public static final String GEOTIFF_IIO_METADATA_FORMAT_NAME = "com_sun_media_imageio_plugins_tiff_image_1.0"
032: .intern();
033:
034: public static final String GEOTIFF_IIO_ROOT_ELEMENT_NAME = GEOTIFF_IIO_METADATA_FORMAT_NAME;
035:
036: public static final int USHORT_MAX = (1 << 16) - 1;
037:
038: public static final int USHORT_MIN = 0;
039:
040: /**
041: * GTModelTypeGeoKey Key ID = 1024 Type: SHORT (code) Values: Section
042: * 6.3.1.1 Codes This GeoKey defines the general type of model Coordinate
043: * system used, and to which the raster space will be transformed: unknown,
044: * Geocentric (rarely used), Geographic, Projected Coordinate System, or
045: * user-defined. If the coordinate system is a PCS, then only the PCS code
046: * need be specified. If the coordinate system does not fit into one of the
047: * standard registered PCS'S, but it uses one of the standard projections
048: * and datums, then its should be documented as a PCS model with
049: * "user-defined" type, requiring the specification of projection
050: * parameters, etc. GeoKey requirements for User-Defined Model Type (not
051: * advisable): GTCitationGeoKey
052: */
053: public static final int GTModelTypeGeoKey = 1024;
054:
055: /**
056: * GTRasterTypeGeoKey Key ID = 1025 Type = Section 6.3.1.2 codes This
057: * establishes the Raster Space coordinate system used; there are currently
058: * only two, namely RasterPixelIsPoint and RasterPixelIsArea.
059: */
060: public static final int GTRasterTypeGeoKey = 1025;
061:
062: /**
063: * 6.3.1.2 Raster Type Codes Ranges: 0 = undefined [ 1, 1023] = Raster Type
064: * Codes (GeoTIFFWritingUtilities Defined) [1024, 32766] = Reserved 32767 =
065: * user-defined [32768, 65535]= Private User
066: */
067: public static final int RasterPixelIsArea = 1;
068:
069: public static final int RasterPixelIsPoint = 2;
070:
071: /**
072: * The DOM element ID (tag) for a single TIFF Ascii value
073: */
074: public static final String GEOTIFF_ASCII_TAG = "TIFFAscii".intern();
075:
076: /**
077: * The DOM element ID (tag) for a set of TIFF Ascii values
078: */
079: public static final String GEOTIFF_ASCIIS_TAG = "TIFFAsciis"
080: .intern();
081:
082: /**
083: * The DOM element ID (tag) for a single TIFF double. The value is stored in
084: * an attribute named "value"
085: */
086: public static final String GEOTIFF_DOUBLE_TAG = "TIFFDouble"
087: .intern();
088:
089: /**
090: * The DOM element ID (tag) for a set of TIFF Double values
091: */
092: public static final String GEOTIFF_DOUBLES_TAG = "TIFFDoubles"
093: .intern();
094:
095: /**
096: * The DOM element ID (tag) for a TIFF Field
097: */
098: public static final String GEOTIFF_FIELD_TAG = "TIFFField".intern();
099:
100: /**
101: * The DOM element ID (tag) for a TIFF Image File Directory
102: */
103: public static final String GEOTIFF_IFD_TAG = "TIFFIFD".intern();
104:
105: /**
106: * The DOM element ID (tag) for a single TIFF Short value. The value is
107: * stored in an attribute named "value"
108: */
109: public static final String GEOTIFF_SHORT_TAG = "TIFFShort".intern();
110:
111: /**
112: * The DOM element ID (tag) for a set of TIFF Short values
113: */
114: public static final String GEOTIFF_SHORTS_TAG = "TIFFShorts"
115: .intern();
116:
117: /**
118: * The DOM attribute name for a TIFF Entry value (whether Short, Double, or
119: * Ascii)
120: */
121: public static final String VALUE_ATTR = "value".intern();
122:
123: /**
124: * The DOM attribute name for a TIFF Field Tag (number)
125: */
126: public static final String NUMBER_ATTR = "number".intern();
127:
128: /**
129: * The DOM attribute name for a TIFF Field Tag (name)
130: */
131: public static final String NAME_ATTR = "name";
132:
133: public static final String GEOTIFF_TAGSETS_ATT_NAME = "tagSets"
134: .intern();
135:
136: public static final int DEFAULT_GEOTIFF_VERSION = 1;
137:
138: public static final int DEFAULT_KEY_REVISION_MAJOR = 1;
139:
140: public static final int DEFAULT_KEY_REVISION_MINOR = 2;
141:
142: public static final int UNDEFINED = 0;
143:
144: }
|