org.esa.beam.framework.datamodel
Class Graticule

java.lang.Object
  extended by org.esa.beam.framework.datamodel.Graticule

public class Graticule
extends Object

A geometric representation of a geographical grid measured in longitudes and latitudes.


Nested Class Summary
static class Graticule.TextGlyph
           
 
Method Summary
static Graticule create(Product product, boolean autoDeterminingSteps, int gridCellSize, float latMajorStep, float lonMajorStep)
          Creates a graticule for the given product.
static Graticule create(RasterDataNode raster, boolean autoDeterminingSteps, int gridCellSize, float latMajorStep, float lonMajorStep)
          Creates a graticule for the given product.
 GeneralPath[] getLinePaths()
           
 Graticule.TextGlyph[] getTextGlyphs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLinePaths

public GeneralPath[] getLinePaths()

getTextGlyphs

public Graticule.TextGlyph[] getTextGlyphs()

create

public static Graticule create(Product product,
                               boolean autoDeterminingSteps,
                               int gridCellSize,
                               float latMajorStep,
                               float lonMajorStep)
Creates a graticule for the given product.

Parameters:
product - the product
autoDeterminingSteps - if true, gridCellSize is used to compute latMajorStep, lonMajorStep for the given product
gridCellSize - the grid cell size in pixels, ignored if autoDeterminingSteps if false
latMajorStep - the grid cell size in meridional direction, ignored if autoDeterminingSteps if true
lonMajorStep - the grid cell size in parallel direction, ignored if autoDeterminingSteps if true
Returns:
the graticule or null, if it could not be created

create

public static Graticule create(RasterDataNode raster,
                               boolean autoDeterminingSteps,
                               int gridCellSize,
                               float latMajorStep,
                               float lonMajorStep)
Creates a graticule for the given product.

Parameters:
raster - the product
autoDeterminingSteps - if true, gridCellSize is used to compute latMajorStep, lonMajorStep for the given product
gridCellSize - the grid cell size in pixels, ignored if autoDeterminingSteps if false
latMajorStep - the grid cell size in meridional direction, ignored if autoDeterminingSteps if true
lonMajorStep - the grid cell size in parallel direction, ignored if autoDeterminingSteps if true
Returns:
the graticule or null, if it could not be created


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.