Class GeoTiffWriter

    • Constructor Detail

      • GeoTiffWriter

        public GeoTiffWriter​(Object destination)
                      throws IOException
        Constructor for a GeoTiffWriter.
        Throws:
        IOException
      • GeoTiffWriter

        public GeoTiffWriter​(Object destination,
                             Hints hints)
                      throws IOException
        Constructor for a GeoTiffWriter.
        Throws:
        IOException
    • Method Detail

      • setMetadataValue

        public void setMetadataValue​(String name,
                                     String value)
                              throws IOException
        Allows to setup metadata by leveraging on Ascii TIFF Tags.
        Specified by:
        setMetadataValue in interface GridCoverageWriter
        Overrides:
        setMetadataValue in class AbstractGridCoverageWriter
        Parameters:
        name - is the Ascii TIFF Tag identifier. It can be a String representing: 1) a simple Integer (referring to a tag ID) (in that case it will refer to the BaselineTIFFTagSet 2) OR an identifier in the form: TIFFTagSet:TIFFTagID. As an instance: "BaselineTIFFTagSet:305" in order to add the Copyright info.
        value - is the value to be assigned to that tag.
        Throws:
        IOException - if an error occurs during writing.
        See Also:
        GeoTiffIIOMetadataEncoder.TagSet
      • createGeoTiffIIOMetadata

        public static final IIOMetadata createGeoTiffIIOMetadata​(ImageWriter writer,
                                                                 ImageTypeSpecifier type,
                                                                 GeoTiffIIOMetadataEncoder geoTIFFMetadata,
                                                                 ImageWriteParam params)
                                                          throws IIOException
        Creates image metadata which complies to the GeoTIFFWritingUtilities specification for the given image writer, image type and GeoTIFFWritingUtilities metadata.
        Parameters:
        writer - the image writer, must not be null
        type - the image type, must not be null
        geoTIFFMetadata - the GeoTIFFWritingUtilities metadata, must not be null
        Returns:
        the image metadata, never null
        Throws:
        IIOException - if the metadata cannot be created