Package org.esa.snap.core.datamodel
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Graticule.TextGlyph
static class
Graticule.TextLocation
-
Field Summary
Fields Modifier and Type Field Description static int
BOTTOM_LEFT_CORNER_INDEX
static int
BOTTOM_RIGHT_CORNER_INDEX
static int
TOP_LEFT_CORNER_INDEX
static int
TOP_RIGHT_CORNER_INDEX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Graticule
create(RasterDataNode raster, int desiredNumGridLines, double latMajorStep, double lonMajorStep, boolean formatCompass, boolean decimalFormat)
Creates a graticule for the given product.GeneralPath[]
getLinePaths()
Graticule.TextGlyph[]
getTextGlyphsEast()
Graticule.TextGlyph[]
getTextGlyphsLatCorners()
Graticule.TextGlyph[]
getTextGlyphsLonCorners()
Graticule.TextGlyph[]
getTextGlyphsNorth()
Graticule.TextGlyph[]
getTextGlyphsSouth()
Graticule.TextGlyph[]
getTextGlyphsWest()
PixelPos[]
getTickPointsEast()
PixelPos[]
getTickPointsNorth()
PixelPos[]
getTickPointsSouth()
PixelPos[]
getTickPointsWest()
-
-
-
Method Detail
-
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 productdesiredNumGridLines
- the grid cell size in pixelslatMajorStep
- the grid cell size in meridional directionlonMajorStep
- the grid cell size in parallel direction- Returns:
- the graticule or null, if it could not be created
-
-