Class Graticule

java.lang.Object
org.esa.snap.core.datamodel.Graticule

public class Graticule extends Object
A geometric representation of a geographical grid measured in longitudes and latitudes.
  • Field Details

    • TOP_LEFT_CORNER_INDEX

      public static int TOP_LEFT_CORNER_INDEX
    • TOP_RIGHT_CORNER_INDEX

      public static int TOP_RIGHT_CORNER_INDEX
    • BOTTOM_RIGHT_CORNER_INDEX

      public static int BOTTOM_RIGHT_CORNER_INDEX
    • BOTTOM_LEFT_CORNER_INDEX

      public static int BOTTOM_LEFT_CORNER_INDEX
  • Method Details

    • getLinePaths

      public GeneralPath[] getLinePaths()
    • getTextGlyphsNorth

      public Graticule.TextGlyph[] getTextGlyphsNorth()
    • getTextGlyphsSouth

      public Graticule.TextGlyph[] getTextGlyphsSouth()
    • getTextGlyphsWest

      public Graticule.TextGlyph[] getTextGlyphsWest()
    • getTextGlyphsEast

      public Graticule.TextGlyph[] getTextGlyphsEast()
    • getTextGlyphsLatCorners

      public Graticule.TextGlyph[] getTextGlyphsLatCorners()
    • getTextGlyphsLonCorners

      public Graticule.TextGlyph[] getTextGlyphsLonCorners()
    • getTickPointsNorth

      public PixelPos[] getTickPointsNorth()
    • getTickPointsSouth

      public PixelPos[] getTickPointsSouth()
    • getTickPointsWest

      public PixelPos[] getTickPointsWest()
    • getTickPointsEast

      public PixelPos[] getTickPointsEast()
    • create

      public static Graticule create(RasterDataNode raster, int desiredNumGridLines, double latMajorStep, double lonMajorStep, boolean formatCompass, boolean decimalFormat)
      Creates a graticule for the given product.
      Parameters:
      raster - the product
      desiredNumGridLines - the grid cell size in pixels
      latMajorStep - the grid cell size in meridional direction
      lonMajorStep - the grid cell size in parallel direction
      Returns:
      the graticule or null, if it could not be created