Class CRS2GeoTiffMetadataAdapter
- Object
-
- CRS2GeoTiffMetadataAdapter
-
public final class CRS2GeoTiffMetadataAdapter extends Object
This class implements a simple reusable adapter to adapt aCoordinateReferenceSystem
into useful Geotiff metadata by mean ofGeoTiffIIOMetadataEncoder
.Since
CoordinateReferenceSystem
are essentially immutable this class implements a static pool ofCRS2GeoTiffMetadataAdapter
objects that would allow to avoid parsing the sameCoordinateReferenceSystem
more 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 GeoTiffIIOMetadataEncoder
parseCoordinateReferenceSystem()
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
-
-