Class CRS2GeoTiffMetadataAdapter
- Object
-
- CRS2GeoTiffMetadataAdapter
-
public final class CRS2GeoTiffMetadataAdapter extends Object
This class implements a simple reusable adapter to adapt aCoordinateReferenceSysteminto useful Geotiff metadata by mean ofGeoTiffIIOMetadataEncoder.Since
CoordinateReferenceSystemare essentially immutable this class implements a static pool ofCRS2GeoTiffMetadataAdapterobjects that would allow to avoid parsing the sameCoordinateReferenceSystemmore than once.- Since:
- 2.2
- Author:
- Simone Giannecchini
-
-
Constructor Summary
Constructors Constructor Description CRS2GeoTiffMetadataAdapter(CoordinateReferenceSystem crs)Constructs a parser using the default set of symbols and factories.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoTiffIIOMetadataEncoderparseCoordinateReferenceSystem()Parses a coordinate reference system.
-
-
-
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
-
-