org.geotools.gce.geotiff
Class GeoTiffCoordinateSystemAdapter

java.lang.Object
  extended byorg.geotools.gce.geotiff.GeoTiffCoordinateSystemAdapter

public class GeoTiffCoordinateSystemAdapter
extends java.lang.Object

The GeoTiffCoordinateSystemAdapter is responsible for interpreting the metadata provided by the GeoTiffIIOMetadataAdapter for the purposes of constructing a CoordinateSystem object representative of the information found in the tags.

This class implements the flow indicated by the following diagram:

To use this class, the GeoTiffReader should create an instance with the CoordinateSystemAuthorityFactory specified by the GeoTiffFormat instance which created the reader. The image specific metadata should then be set with the appropriate accessor methods. Finally, the createCoordinateSystem() method is called to produce the CoordinateReferenceSystem object specified by the metadata.

Author:
Bryce Nordgren / USDA Forest Service

Field Summary
static short CT_AlbersEqualArea
           
static short CT_AzimuthalEquidistant
           
static short CT_CassiniSoldner
           
static short CT_EquidistantConic
           
static short CT_Equirectangular
           
static short CT_Gnomonic
           
static short CT_LambertAzimEqualArea
           
static short CT_LambertConfConic_2SP
           
static short CT_LambertConfConic_Helmert
           
static short CT_Mercator
           
static short CT_MillerCylindrical
           
static short CT_NewZealandMapGrid
           
static short CT_ObliqueMercator
           
static short CT_ObliqueMercator_Laborde
           
static short CT_ObliqueMercator_Rosenmund
           
static short CT_ObliqueMercator_Spherical
           
static short CT_ObliqueStereographic
           
static short CT_Orthographic
           
static short CT_PolarStereographic
           
static short CT_Polyconic
           
static short CT_Robinson
           
static short CT_Sinusoidal
           
static short CT_Stereographic
           
static short CT_TransverseMercator
           
static short CT_TransverseMercator_Modified_Alaska
           
static short CT_TransvMercator_SouthOriented
           
static short CT_VanDerGrinten
           
 
Constructor Summary
GeoTiffCoordinateSystemAdapter(Hints hints)
          Creates a new instance of GeoTiffCoordinateSystemAdapter
 
Method Summary
 org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateSystem()
          This method creates a CoordinateReferenceSystem object from the metadata which has been set earlier.
 org.opengis.referencing.crs.CRSAuthorityFactory getCRSFactory()
          Returns the CRSAuthorityFactory instance used by this object.
 org.opengis.referencing.cs.CSAuthorityFactory getCSFactory()
          Returns the CSAuthorityFactory instance used by this object.
 org.opengis.referencing.datum.DatumAuthorityFactory getDatumFactory()
          Returns the DatumAuthorityFactory instance used by this object.
 GeoTiffIIOMetadataAdapter getMetadata()
          Getter for property metadata.
 void setMetadata(GeoTiffIIOMetadataAdapter metadata)
          Setter for property metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CT_TransverseMercator

public static final short CT_TransverseMercator
See Also:
Constant Field Values

CT_TransverseMercator_Modified_Alaska

public static final short CT_TransverseMercator_Modified_Alaska
See Also:
Constant Field Values

CT_ObliqueMercator

public static final short CT_ObliqueMercator
See Also:
Constant Field Values

CT_ObliqueMercator_Laborde

public static final short CT_ObliqueMercator_Laborde
See Also:
Constant Field Values

CT_ObliqueMercator_Rosenmund

public static final short CT_ObliqueMercator_Rosenmund
See Also:
Constant Field Values

CT_ObliqueMercator_Spherical

public static final short CT_ObliqueMercator_Spherical
See Also:
Constant Field Values

CT_Mercator

public static final short CT_Mercator
See Also:
Constant Field Values

CT_LambertConfConic_2SP

public static final short CT_LambertConfConic_2SP
See Also:
Constant Field Values

CT_LambertConfConic_Helmert

public static final short CT_LambertConfConic_Helmert
See Also:
Constant Field Values

CT_LambertAzimEqualArea

public static final short CT_LambertAzimEqualArea
See Also:
Constant Field Values

CT_AlbersEqualArea

public static final short CT_AlbersEqualArea
See Also:
Constant Field Values

CT_AzimuthalEquidistant

public static final short CT_AzimuthalEquidistant
See Also:
Constant Field Values

CT_EquidistantConic

public static final short CT_EquidistantConic
See Also:
Constant Field Values

CT_Stereographic

public static final short CT_Stereographic
See Also:
Constant Field Values

CT_PolarStereographic

public static final short CT_PolarStereographic
See Also:
Constant Field Values

CT_ObliqueStereographic

public static final short CT_ObliqueStereographic
See Also:
Constant Field Values

CT_Equirectangular

public static final short CT_Equirectangular
See Also:
Constant Field Values

CT_CassiniSoldner

public static final short CT_CassiniSoldner
See Also:
Constant Field Values

CT_Gnomonic

public static final short CT_Gnomonic
See Also:
Constant Field Values

CT_MillerCylindrical

public static final short CT_MillerCylindrical
See Also:
Constant Field Values

CT_Orthographic

public static final short CT_Orthographic
See Also:
Constant Field Values

CT_Polyconic

public static final short CT_Polyconic
See Also:
Constant Field Values

CT_Robinson

public static final short CT_Robinson
See Also:
Constant Field Values

CT_Sinusoidal

public static final short CT_Sinusoidal
See Also:
Constant Field Values

CT_VanDerGrinten

public static final short CT_VanDerGrinten
See Also:
Constant Field Values

CT_NewZealandMapGrid

public static final short CT_NewZealandMapGrid
See Also:
Constant Field Values

CT_TransvMercator_SouthOriented

public static final short CT_TransvMercator_SouthOriented
See Also:
Constant Field Values
Constructor Detail

GeoTiffCoordinateSystemAdapter

public GeoTiffCoordinateSystemAdapter(Hints hints)
Creates a new instance of GeoTiffCoordinateSystemAdapter

Parameters:
hints - a map of hints to locate the authority and object factories. (can be null)
Method Detail

getCSFactory

public org.opengis.referencing.cs.CSAuthorityFactory getCSFactory()
Returns the CSAuthorityFactory instance used by this object.

Returns:
CSAuthorityFactory in use.

getCRSFactory

public org.opengis.referencing.crs.CRSAuthorityFactory getCRSFactory()
Returns the CRSAuthorityFactory instance used by this object.

Returns:
CRSAuthorityFactory in use.

getDatumFactory

public org.opengis.referencing.datum.DatumAuthorityFactory getDatumFactory()
Returns the DatumAuthorityFactory instance used by this object.

Returns:
DatumAuthorityFactory in use.

createCoordinateSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateSystem()
                                                                             throws java.io.IOException
This method creates a CoordinateReferenceSystem object from the metadata which has been set earlier. If it cannot create the CoordinateReferenceSystem, then one of three exceptions is thrown to indicate the error.

Returns:
the CoordinateReferenceSystem object representing the file data
Throws:
java.io.IOException - if there is unexpected data in the GeoKey tags.
java.lang.NullPointerException - if the crsFactory or metadata are uninitialized
java.lang.UnsupportedOperationException - if the coordinate system specified by the GeoTiff file is not supported.

getMetadata

public GeoTiffIIOMetadataAdapter getMetadata()
Getter for property metadata.

Returns:
Value of property metadata.

setMetadata

public void setMetadata(GeoTiffIIOMetadataAdapter metadata)
Setter for property metadata.

Parameters:
metadata - New value of property metadata.


Copyright © GeoTools. All Rights Reserved.