ucar.unidata.data.imagery
Class ImageInfo

java.lang.Object
  extended by ucar.unidata.data.imagery.ImageInfo

public class ImageInfo
extends Object

Holds information about images


Field Summary
static String ATTR_LLALT
          xml attribute name
static String ATTR_LLLAT
          xml attribute name
static String ATTR_LLLON
          xml attribute name
static String ATTR_LRALT
          Upper left lat
static String ATTR_LRLAT
          Lower right lat
static String ATTR_LRLON
          Lower right lon
static String ATTR_NAME
          xml attr name
static String ATTR_ULALT
          Upper left lat
static String ATTR_ULLAT
          Upper left lat
static String ATTR_ULLON
          Upper left lon
static String ATTR_URALT
          xml attribute name
static String ATTR_URLAT
          xml attribute name
static String ATTR_URLON
          xml attribute name
 
Constructor Summary
ImageInfo()
          ctor
ImageInfo(String url, boolean isShape)
          ctor
ImageInfo(String url, DateTime date, boolean isShape)
          ctor
ImageInfo(String url, DateTime date, double ulLat, double ulLon, double lrLat, double lrLon)
          ctor
ImageInfo(String url, double ulLat, double ulLon, double lrLat, double lrLon)
          ctor
ImageInfo(String url, Element node, Element parent, DateTime date)
          Ctor from xml
 
Method Summary
 DateTime getDate()
          Get the Date property.
 boolean getIsShape()
          Get the IsShape property.
 double getLlAlt()
          Get the LlAlt property.
 double getLlLat()
          Get the LlLat property.
 double getLlLon()
          Get the LlLon property.
 double getLrAlt()
          Get the LrAlt property.
 double getLrLat()
          Get the LrLat property.
 double getLrLon()
          Get the LrLon property.
 double getUlAlt()
          Get the UlAlt property.
 double getUlLat()
          Get the UlLat property.
 double getUlLon()
          Get the UlLon property.
 double getUrAlt()
          Get the UrAlt property.
 String getUrl()
          Get the Url property.
 double getUrLat()
          Get the UrLat property.
 double getUrLon()
          Get the UrLon property.
 boolean hasAltitude()
          Do we have any altitudes
 boolean isRectilinear()
          do the corners form a rectangle.
 void setDate(DateTime value)
          Set the Date property.
 void setIsShape(boolean value)
          Set the IsShape property.
 void setLlAlt(double value)
          Set the LlAlt property.
 void setLlLat(double value)
          Set the LlLat property.
 void setLlLon(double value)
          Set the LlLon property.
 void setLrAlt(double value)
          Set the LrAlt property.
 void setLrLat(double value)
          Set the LrLat property.
 void setLrLon(double value)
          Set the LrLon property.
 void setUlAlt(double value)
          Set the UlAlt property.
 void setUlLat(double value)
          Set the UlLat property.
 void setUlLon(double value)
          Set the UlLon property.
 void setUrAlt(double value)
          Set the UrAlt property.
 void setUrl(String value)
          Set the Url property.
 void setUrLat(double value)
          Set the UrLat property.
 void setUrLon(double value)
          Set the UrLon property.
 String toString()
          to string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTR_NAME

public static final String ATTR_NAME
xml attr name

See Also:
Constant Field Values

ATTR_ULLAT

public static final String ATTR_ULLAT
Upper left lat

See Also:
Constant Field Values

ATTR_ULLON

public static final String ATTR_ULLON
Upper left lon

See Also:
Constant Field Values

ATTR_ULALT

public static final String ATTR_ULALT
Upper left lat

See Also:
Constant Field Values

ATTR_LRLAT

public static final String ATTR_LRLAT
Lower right lat

See Also:
Constant Field Values

ATTR_LRLON

public static final String ATTR_LRLON
Lower right lon

See Also:
Constant Field Values

ATTR_LRALT

public static final String ATTR_LRALT
Upper left lat

See Also:
Constant Field Values

ATTR_URLAT

public static final String ATTR_URLAT
xml attribute name

See Also:
Constant Field Values

ATTR_URLON

public static final String ATTR_URLON
xml attribute name

See Also:
Constant Field Values

ATTR_URALT

public static final String ATTR_URALT
xml attribute name

See Also:
Constant Field Values

ATTR_LLLAT

public static final String ATTR_LLLAT
xml attribute name

See Also:
Constant Field Values

ATTR_LLLON

public static final String ATTR_LLLON
xml attribute name

See Also:
Constant Field Values

ATTR_LLALT

public static final String ATTR_LLALT
xml attribute name

See Also:
Constant Field Values
Constructor Detail

ImageInfo

public ImageInfo()
ctor


ImageInfo

public ImageInfo(String url,
                 Element node,
                 Element parent,
                 DateTime date)
          throws Exception
Ctor from xml

Parameters:
url - the url
node - The main node
parent - The parent node to get defaults from. May be null.
date - The date. May be null.
Throws:
Exception - On badness

ImageInfo

public ImageInfo(String url,
                 boolean isShape)
ctor

Parameters:
url - The image url
isShape - Is this a shapefile

ImageInfo

public ImageInfo(String url,
                 DateTime date,
                 boolean isShape)
ctor

Parameters:
url - The image url
date - Datetime of the image_
isShape - Is this a shapefile

ImageInfo

public ImageInfo(String url,
                 double ulLat,
                 double ulLon,
                 double lrLat,
                 double lrLon)
ctor

Parameters:
url - The image url
ulLat - ul lat
ulLon - ul lon
lrLat - lr lat
lrLon - lrlon

ImageInfo

public ImageInfo(String url,
                 DateTime date,
                 double ulLat,
                 double ulLon,
                 double lrLat,
                 double lrLon)
ctor

Parameters:
url - The image url
date - Datetime of the image
ulLat - ul lat
ulLon - ul lon
lrLat - lr lat
lrLon - lrlon
Method Detail

isRectilinear

public boolean isRectilinear()
do the corners form a rectangle. i.e., are the upper lat the same, are the left longs the same, etc.

Returns:
isRectilinear

hasAltitude

public boolean hasAltitude()
Do we have any altitudes

Returns:
has altitude defined

setUrl

public void setUrl(String value)
Set the Url property.

Parameters:
value - The new value for Url

getUrl

public String getUrl()
Get the Url property.

Returns:
The Url

setUrLat

public void setUrLat(double value)
Set the UrLat property.

Parameters:
value - The new value for UrLat

getUrLat

public double getUrLat()
Get the UrLat property.

Returns:
The UrLat

setUrLon

public void setUrLon(double value)
Set the UrLon property.

Parameters:
value - The new value for UrLon

getUrLon

public double getUrLon()
Get the UrLon property.

Returns:
The UrLon

setUrAlt

public void setUrAlt(double value)
Set the UrAlt property.

Parameters:
value - The new value for UrAlt

getUrAlt

public double getUrAlt()
Get the UrAlt property.

Returns:
The UrAlt

setLrLat

public void setLrLat(double value)
Set the LrLat property.

Parameters:
value - The new value for LrLat

getLrLat

public double getLrLat()
Get the LrLat property.

Returns:
The LrLat

setLrLon

public void setLrLon(double value)
Set the LrLon property.

Parameters:
value - The new value for LrLon

getLrLon

public double getLrLon()
Get the LrLon property.

Returns:
The LrLon

setLrAlt

public void setLrAlt(double value)
Set the LrAlt property.

Parameters:
value - The new value for LrAlt

getLrAlt

public double getLrAlt()
Get the LrAlt property.

Returns:
The LrAlt

setLlLat

public void setLlLat(double value)
Set the LlLat property.

Parameters:
value - The new value for LlLat

getLlLat

public double getLlLat()
Get the LlLat property.

Returns:
The LlLat

setLlLon

public void setLlLon(double value)
Set the LlLon property.

Parameters:
value - The new value for LlLon

getLlLon

public double getLlLon()
Get the LlLon property.

Returns:
The LlLon

setLlAlt

public void setLlAlt(double value)
Set the LlAlt property.

Parameters:
value - The new value for LlAlt

getLlAlt

public double getLlAlt()
Get the LlAlt property.

Returns:
The LlAlt

setUlLat

public void setUlLat(double value)
Set the UlLat property.

Parameters:
value - The new value for UlLat

getUlLat

public double getUlLat()
Get the UlLat property.

Returns:
The UlLat

setUlLon

public void setUlLon(double value)
Set the UlLon property.

Parameters:
value - The new value for UlLon

getUlLon

public double getUlLon()
Get the UlLon property.

Returns:
The UlLon

setUlAlt

public void setUlAlt(double value)
Set the UlAlt property.

Parameters:
value - The new value for UlAlt

getUlAlt

public double getUlAlt()
Get the UlAlt property.

Returns:
The UlAlt

setIsShape

public void setIsShape(boolean value)
Set the IsShape property.

Parameters:
value - The new value for IsShape

getIsShape

public boolean getIsShape()
Get the IsShape property.

Returns:
The IsShape

setDate

public void setDate(DateTime value)
Set the Date property.

Parameters:
value - The new value for Date

getDate

public DateTime getDate()
Get the Date property.

Returns:
The Date

toString

public String toString()
to string

Overrides:
toString in class Object
Returns:
to string