Class Graticule


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

      • 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 Detail

      • 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