Package mil.nga.mgrs.gzd
Class GridZone
- java.lang.Object
-
- mil.nga.mgrs.gzd.GridZone
-
public class GridZone extends Object
Grid Zone- Author:
- wnewman, osbornb
-
-
Constructor Summary
Constructors Constructor Description GridZone(LongitudinalStrip strip, LatitudeBand band)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LatitudeBandgetBand()Get the latitude bandBoundsgetBounds()Get the boundsBoundsgetDrawBounds(Bounds tileBounds, GridType gridType)Get the draw bounds of easting and northing in metersHemispheregetHemisphere()Get the hemispherechargetLetter()Get the band letterList<GridLine>getLines(Bounds tileBounds, GridType gridType)Get the grid zone linesList<GridLine>getLines(GridType gridType)Get the grid zone linesStringgetName()Get the label nameintgetNumber()Get the zone numberLongitudinalStripgetStrip()Get the longitudinal stripintgetStripExpand()Get the longitudinal strip expansion, number of additional neighbors to iterate over in combination with this stripbooleanisWithin(Bounds bounds)Is the provided bounds within the zone bounds
-
-
-
Constructor Detail
-
GridZone
public GridZone(LongitudinalStrip strip, LatitudeBand band)
Constructor- Parameters:
strip- longitudinal stripband- latitude band
-
-
Method Detail
-
getStrip
public LongitudinalStrip getStrip()
Get the longitudinal strip- Returns:
- longitudinal strip
-
getBand
public LatitudeBand getBand()
Get the latitude band- Returns:
- latitude band
-
getNumber
public int getNumber()
Get the zone number- Returns:
- zone number
-
getLetter
public char getLetter()
Get the band letter- Returns:
- band letter
-
getHemisphere
public Hemisphere getHemisphere()
Get the hemisphere- Returns:
- hemisphere
-
getBounds
public Bounds getBounds()
Get the bounds- Returns:
- bounds
-
getName
public String getName()
Get the label name- Returns:
- name
-
isWithin
public boolean isWithin(Bounds bounds)
Is the provided bounds within the zone bounds- Parameters:
bounds- bounds- Returns:
- true if within bounds
-
getStripExpand
public int getStripExpand()
Get the longitudinal strip expansion, number of additional neighbors to iterate over in combination with this strip- Returns:
- longitudinal strip neighbor iteration expansion
-
getLines
public List<GridLine> getLines(GridType gridType)
Get the grid zone lines- Parameters:
gridType- grid type- Returns:
- lines
-
getLines
public List<GridLine> getLines(Bounds tileBounds, GridType gridType)
Get the grid zone lines- Parameters:
tileBounds- tile boundsgridType- grid type- Returns:
- lines
-
-