Class CRS2GeoTiffMetadataAdapter

Object
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 Details

    • CRS2GeoTiffMetadataAdapter

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

    • 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