Package org.hortonmachine.gears.utils
Class PrintUtilities
- java.lang.Object
-
- org.hortonmachine.gears.utils.PrintUtilities
-
public class PrintUtilities extends Object
Utility class to print data out.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description PrintUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.Envelopeenvelope2D2Envelope(org.geotools.geometry.Envelope2D envelope2d)static Stringenvelope2WKT(org.locationtech.jts.geom.Envelope env)Print the envelope as WKT.static StringgetRegionPrint(org.geotools.coverage.grid.GridCoverage2D coverage)static voidprintCoverageData(org.geotools.coverage.grid.GridCoverage2D coverage)Print data of aGridCoverage2D.static voidprintCoverageDataAsMatrix(org.geotools.coverage.grid.GridCoverage2D coverage)Print data of aGridCoverage2Das java matrix definition.static voidprintMatrixData(double[][] matrix)Print data from a matrix.static voidprintRenderedImageData(RenderedImage renderedImage)Print data from aRenderedImage.static voidprintWritableRasterData(Raster raster)Print data from aRaster.static StringtoString(org.geotools.coverage.grid.GridCoverage2D coverage)
-
-
-
Method Detail
-
printCoverageData
public static void printCoverageData(org.geotools.coverage.grid.GridCoverage2D coverage)
Print data of aGridCoverage2D.- Parameters:
coverage- the coverage.
-
printCoverageDataAsMatrix
public static void printCoverageDataAsMatrix(org.geotools.coverage.grid.GridCoverage2D coverage)
Print data of aGridCoverage2Das java matrix definition.- Parameters:
coverage- the coverage.
-
printRenderedImageData
public static void printRenderedImageData(RenderedImage renderedImage)
Print data from aRenderedImage.- Parameters:
renderedImage- the image.
-
printWritableRasterData
public static void printWritableRasterData(Raster raster)
Print data from aRaster.- 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- theEnvelope.- 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)
-
-