org.geotools.coverage.grid.io.imageio.geotiff
Class CRS2GeoTiffMetadataAdapter

Object
  extended by CRS2GeoTiffMetadataAdapter

public final class CRS2GeoTiffMetadataAdapter
extends Object

This class implements a simple reusable adapter to adapt a CoordinateReferenceSystem into useful Geotiff metadata by mean of GeoTiffIIOMetadataEncoder.

Since CoordinateReferenceSystem are essentially immutable this class implements a static pool of CRS2GeoTiffMetadataAdapter objects that would allow to avoid parsing the same CoordinateReferenceSystem more than once.

Since:
2.2
Author:
Simone Giannecchini

Constructor Summary
CRS2GeoTiffMetadataAdapter(CoordinateReferenceSystem crs)
          Constructs a parser using the default set of symbols and factories.
 
Method Summary
 GeoTiffIIOMetadataEncoder parseCoordinateReferenceSystem()
          Parses a coordinate reference system.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRS2GeoTiffMetadataAdapter

public CRS2GeoTiffMetadataAdapter(CoordinateReferenceSystem crs)
Constructs a parser using the default set of symbols and factories.

Method Detail

parseCoordinateReferenceSystem

public GeoTiffIIOMetadataEncoder parseCoordinateReferenceSystem()
                                                         throws GeoTiffException
Parses a coordinate reference system.

For the moment we can only encode geographic and projected coordinate reference systems, we cannot encode the other types like vertical coordinate reference systems.

Throws:
GeoTiffException


Copyright © 1996-2014 Geotools. All Rights Reserved.