|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.imageio.metadata.IIOMetadataFormatImpl
org.geotools.image.io.metadata.GeographicMetadataFormat
public class GeographicMetadataFormat
Describes the structure of geographic metadata. The following formatting rules apply:
Integer.toString(int)
or Double.toString(double)
."yyyy-MM-dd HH:mm:ss"
pattern in UTC timezone.This format tries to match approximatively the GML in JPEG 2000 standard. See the package javadoc for a list of departures from the standard.
Field Summary | |
---|---|
static java.lang.String |
CARTESIAN
The cartesian coordinate system type. |
static java.lang.String |
ELLIPSOIDAL
The ellipsoidal coordinate system type. |
static java.lang.String |
ENGINEERING
The engineering datum type. |
static java.lang.String |
FORMAT_NAME
The metadata format name. |
static java.lang.String |
GEODETIC
The geodetic datum type. |
static java.lang.String |
GEOGRAPHIC
The geographic coordinate reference system type. |
static java.lang.String |
GEOGRAPHIC_3D
The geographic coordinate reference system type with a vertical axis. |
static java.lang.String |
GEOPHYSICS
The geophysics sample dimension type. |
static java.lang.String |
IMAGE
The image datum type. |
static java.lang.String |
PACKED
The packed sample dimension type. |
static java.lang.String |
PROJECTED
The projected coordinate reference system type. |
static java.lang.String |
PROJECTED_3D
The projected coordinate reference system type with a vertical axis. |
static java.lang.String |
TEMPORAL
The temporal datum type. |
static java.lang.String |
VERTICAL
The vertical datum type. |
Fields inherited from class javax.imageio.metadata.IIOMetadataFormatImpl |
---|
standardMetadataFormatName |
Fields inherited from interface javax.imageio.metadata.IIOMetadataFormat |
---|
CHILD_POLICY_ALL, CHILD_POLICY_CHOICE, CHILD_POLICY_EMPTY, CHILD_POLICY_MAX, CHILD_POLICY_REPEAT, CHILD_POLICY_SEQUENCE, CHILD_POLICY_SOME, DATATYPE_BOOLEAN, DATATYPE_DOUBLE, DATATYPE_FLOAT, DATATYPE_INTEGER, DATATYPE_STRING, VALUE_ARBITRARY, VALUE_ENUMERATION, VALUE_LIST, VALUE_NONE, VALUE_RANGE, VALUE_RANGE_MAX_INCLUSIVE, VALUE_RANGE_MAX_INCLUSIVE_MASK, VALUE_RANGE_MIN_INCLUSIVE, VALUE_RANGE_MIN_INCLUSIVE_MASK, VALUE_RANGE_MIN_MAX_INCLUSIVE |
Constructor Summary | |
---|---|
protected |
GeographicMetadataFormat(java.lang.String rootName,
int maximumDimensions,
int maximumBands)
Creates a metadata format of the given name. |
Method Summary | |
---|---|
boolean |
canNodeAppear(java.lang.String elementName,
javax.imageio.ImageTypeSpecifier imageType)
Returns true if the element (and the subtree below it) is allowed to appear
in a metadata document for an image of the given type. |
static GeographicMetadataFormat |
getInstance()
Returns the default geographic metadata format instance. |
Methods inherited from class javax.imageio.metadata.IIOMetadataFormatImpl |
---|
addAttribute, addAttribute, addAttribute, addAttribute, addBooleanAttribute, addChildElement, addElement, addElement, addObjectValue, addObjectValue, addObjectValue, addObjectValue, getAttributeDataType, getAttributeDefaultValue, getAttributeDescription, getAttributeEnumerations, getAttributeListMaxLength, getAttributeListMinLength, getAttributeMaxValue, getAttributeMinValue, getAttributeNames, getAttributeValueType, getChildNames, getChildPolicy, getElementDescription, getElementMaxChildren, getElementMinChildren, getObjectArrayMaxLength, getObjectArrayMinLength, getObjectClass, getObjectDefaultValue, getObjectEnumerations, getObjectMaxValue, getObjectMinValue, getObjectValueType, getResourceBaseName, getRootName, getStandardFormatInstance, isAttributeRequired, removeAttribute, removeElement, removeObjectValue, setResourceBaseName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FORMAT_NAME
public static final java.lang.String GEOGRAPHIC
public static final java.lang.String GEOGRAPHIC_3D
If the coordinate reference system has no vertical axis, or has additional axis of other kind than vertical (for example only a temporal axis), then the type should be the plain "geographic". This is because such CRS are usually constructed as compound CRS rather than a CRS with a three-dimensional coordinate system.
To be strict, a 3D CRS should be allowed only if the vertical axis is of the kind "height above the ellipsoid" (as opposed to "height above the geoid" for example), otherwise we have a compound CRS. But many datafile don't make this distinction.
public static final java.lang.String PROJECTED
public static final java.lang.String PROJECTED_3D
If the coordinate reference system has no vertical axis, or has additional axis of other kind than vertical (for example only a temporal axis), then the type should be the plain "projected". This is because such CRS are usually constructed as compound CRS rather than a CRS with a three-dimensional coordinate system.
To be strict, a 3D CRS should be allowed only if the vertical axis is of the kind "height above the ellipsoid" (as opposed to "height above the geoid" for example), otherwise we have a compound CRS. But many datafile don't make this distinction.
public static final java.lang.String ELLIPSOIDAL
public static final java.lang.String CARTESIAN
public static final java.lang.String GEOPHYSICS
float
or double
and missing value, if
any, must be one of NaN values.
public static final java.lang.String PACKED
byte
or short
integer type. Conversions to geophysics values are performed by the application
of a scale and offset. Some special values are typically used for missing values.
public static final java.lang.String ENGINEERING
public static final java.lang.String GEODETIC
public static final java.lang.String IMAGE
public static final java.lang.String TEMPORAL
public static final java.lang.String VERTICAL
Constructor Detail |
---|
protected GeographicMetadataFormat(java.lang.String rootName, int maximumDimensions, int maximumBands)
addElement
or addAttribute
methods for adding new elements compared to the default instance.
rootName
- the name of the root element.maximumDimensions
- The maximum number of dimensions allowed for coordinate
systems.maximumBands
- The maximum number of sample dimensions allowed for images.Method Detail |
---|
public boolean canNodeAppear(java.lang.String elementName, javax.imageio.ImageTypeSpecifier imageType)
true
if the element (and the subtree below it) is allowed to appear
in a metadata document for an image of the given type. The default implementation
always returns true
.
canNodeAppear
in interface javax.imageio.metadata.IIOMetadataFormat
canNodeAppear
in class javax.imageio.metadata.IIOMetadataFormatImpl
public static GeographicMetadataFormat getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |