Class PrintUtilities


  • public class PrintUtilities
    extends Object
    Utility class to print data out.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Constructor Detail

      • PrintUtilities

        public PrintUtilities()
    • Method Detail

      • printCoverageData

        public static void printCoverageData​(org.geotools.coverage.grid.GridCoverage2D coverage)
        Print data of a GridCoverage2D.
        Parameters:
        coverage - the coverage.
      • printCoverageDataAsMatrix

        public static void printCoverageDataAsMatrix​(org.geotools.coverage.grid.GridCoverage2D coverage)
        Print data of a GridCoverage2D as java matrix definition.
        Parameters:
        coverage - the coverage.
      • printRenderedImageData

        public static void printRenderedImageData​(RenderedImage renderedImage)
        Print data from a RenderedImage.
        Parameters:
        renderedImage - the image.
      • printWritableRasterData

        public static void printWritableRasterData​(Raster raster)
        Print data from a Raster.
        Parameters:
        raster - the image.
      • printMatrixData

        public static void printMatrixData​(double[][] matrix)
        Print data from a matrix.
        Parameters:
        matrix - the matrix.
      • envelope2WKT

        public static String envelope2WKT​(org.locationtech.jts.geom.Envelope env)
        Print the envelope as WKT.
        Parameters:
        env - the Envelope.
        Returns:
        the WKT string.
      • envelope2D2Envelope

        public static org.locationtech.jts.geom.Envelope envelope2D2Envelope​(org.geotools.geometry.Envelope2D envelope2d)
      • toString

        public static String toString​(org.geotools.coverage.grid.GridCoverage2D coverage)
      • getRegionPrint

        public static String getRegionPrint​(org.geotools.coverage.grid.GridCoverage2D coverage)