|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.image.io.metadata.MetadataAccessor
org.geotools.image.io.metadata.ImageReferencing
public class ImageReferencing
A <CoordinateReferenceSystem>
element in
geographic metadata format, together with its
<CoordinateSystem>
and <Datum>
child elements.
Constructor Summary | |
---|---|
protected |
ImageReferencing(GeographicMetadata metadata)
Creates a parser for a coordinate system. |
Method Summary | |
---|---|
Axis |
addAxis(java.lang.String name,
java.lang.String direction,
java.lang.String units)
Adds an axis to the coordinate system. |
Parameter |
addParameter(java.lang.String name,
double value)
Adds an parameter to the projection. |
Axis |
getAxis(int index)
Returns the axis at the specified index. |
Identification |
getCoordinateReferenceSystem()
Returns the name and type of the coordinate reference system. |
Identification |
getCoordinateSystem()
Returns the name and type of the coordinate system, or null if it is
not defined. |
Identification |
getDatum()
Returns the name and type of the datum, or null if it is not defined. |
int |
getDimension()
Returns the number of dimensions, which is the number of axes of the coordinate system. |
java.lang.String |
getEllipsoidName()
Returns the name of the ellipsoid, or null if
not defined. |
java.lang.String |
getEllipsoidUnit()
Returns the unit of the ellipsoid, or null
if it is not defined. |
double |
getInverseFlattening()
Returns the inverseFlattening value for this ellipsoid, or null if not defined. |
Parameter |
getParameter(int index)
Returns the parameter at the index for the projection, or null if not defined. |
Parameter[] |
getParameters()
Returns all parameters found for the projection in an array, or an empty array if no parameters have been defined, but never null . |
double |
getPrimeMeridianGreenwichLongitude()
Returns the prime meridian greenwich longitude, or Double.NaN if this
value is not defined. |
java.lang.String |
getPrimeMeridianName()
Returns the prime meridian name, or null if not defined. |
java.lang.String |
getProjectionName()
Returns the name of the Projection projection , or null if not
defined. |
double |
getSemiMajorAxis()
Returns the semi-major axis value for this ellipsoid. |
double |
getSemiMinorAxis()
Returns the semi-minor axis value for this ellipsoid, or Double.NaN if not defined. |
java.lang.String |
getWKT()
Deprecated. |
void |
setCoordinateReferenceSystem(java.lang.String name,
java.lang.String type)
Sets the name and type of the coordinate reference system. |
void |
setCoordinateSystem(java.lang.String name,
java.lang.String type)
Sets the name and type of the coordinate system. |
void |
setDatum(java.lang.String name,
java.lang.String type)
Sets the name and type of the datum. |
void |
setEllipsoidName(java.lang.String name)
Sets the name of the ellipsoid. |
void |
setEllipsoidUnit(java.lang.String unit)
Sets the unit of the ellipsoid. |
void |
setInverseFlattening(double value)
Sets the inverseFlattening value of the ellipsoid. |
void |
setPrimeMeridianGreenwichLongitude(double greenwichLongitude)
Sets the greenwich longitude for the prime meridian. |
void |
setPrimeMeridianName(java.lang.String name)
Sets the name of the prime meridian. |
void |
setProjectionName(java.lang.String name)
Sets the name of the projection. |
void |
setSemiMajorAxis(double value)
Sets the semi-major axis value of the ellipsoid. |
void |
setSemiMinorAxis(double value)
Sets the semi-minor axis value of the ellipsoid. |
void |
setWKT(java.lang.String wkt)
Deprecated. |
Methods inherited from class org.geotools.image.io.metadata.MetadataAccessor |
---|
appendChild, childCount, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubles, getAttributeAsInteger, getAttributeAsIntegers, getAttributeAsString, getUserObject, getUserObject, selectChild, selectParent, setAttributeAsDate, setAttributeAsDouble, setAttributeAsDoubles, setAttributeAsInteger, setAttributeAsIntegers, setAttributeAsString, setUserObject, setWarningsEnabled, toString, trimFractionalPart, warningOccurred |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ImageReferencing(GeographicMetadata metadata)
GeographicMetadata.getReferencing()
instead.
metadata
- The metadata node.Method Detail |
---|
public int getDimension()
public Identification getCoordinateReferenceSystem()
CoordinateReferenceSystem
public void setCoordinateReferenceSystem(java.lang.String name, java.lang.String type)
name
- The coordinate reference system name, or null
if unknown.type
- The coordinate reference system type (usually
or
), or null
if unknown.CoordinateReferenceSystem
public Identification getCoordinateSystem()
null
if it is
not defined.
CoordinateSystem
public void setCoordinateSystem(java.lang.String name, java.lang.String type)
name
- The coordinate system name, or null
if unknown.type
- The coordinate system type (usually
or
), or null
if unknown.CoordinateSystem
public Identification getDatum()
null
if it is not defined.
Datum
public void setDatum(java.lang.String name, java.lang.String type)
name
- The datum name, or null
if unknown.type
- The datum type (usually ), or
null
if unknown.Datum
public java.lang.String getEllipsoidName()
null
if
not defined.
Ellipsoid
public void setEllipsoidName(java.lang.String name)
name
- The ellipsoid name, or null
if unknown.Ellipsoid
public java.lang.String getEllipsoidUnit()
null
if it is not defined.
Ellipsoid
public void setEllipsoidUnit(java.lang.String unit)
unit
- The ellipsoid unit, or null
if unknown.Ellipsoid
public double getSemiMajorAxis()
Double.NaN
if not defined.
Ellipsoid
public void setSemiMajorAxis(double value)
value
- The semi-major axis value, or null
if unknown.Ellipsoid
public double getSemiMinorAxis()
Double.NaN
if not defined.
Ellipsoid
public void setSemiMinorAxis(double value)
setInverseFlattening(double)
method
has not already been called.
value
- The semi-minor axis value, or null
if unknown.Ellipsoid
public double getInverseFlattening()
null
if not defined.
Ellipsoid
public void setInverseFlattening(double value)
setSemiMinorAxis(double)
method
has not already been called.
value
- The inverseFlattening value, or null
if unknown.Ellipsoid
public Axis getAxis(int index) throws java.lang.IndexOutOfBoundsException
index
- the axis index, ranging from 0 inclusive to getDimension()
exclusive.
java.lang.IndexOutOfBoundsException
- if the index is out of bounds.public Axis addAxis(java.lang.String name, java.lang.String direction, java.lang.String units)
name
- The axis name, or null
if unknown.direction
- The axis direction
(usually "east"
, "weast"
, "north"
, "south"
,
"up"
or "down"
), or null
if unknown.units
- The axis units symbol, or null
if unknown.CoordinateSystemAxis
,
AxisDirection
public Parameter getParameter(int index) throws java.lang.IndexOutOfBoundsException
null
if not defined.
index
- the parameter index.
java.lang.IndexOutOfBoundsException
- if the index is out of bounds.public Parameter[] getParameters()
null
.
public Parameter addParameter(java.lang.String name, double value)
name
- The parameter name, or null
if unknown.value
- The value for this parameter, or Double.NaN
if unknown.ParameterValue
public java.lang.String getPrimeMeridianName()
null
if not defined.
public void setPrimeMeridianName(java.lang.String name)
name
- The name of the prime meridian, or null
if not known.public double getPrimeMeridianGreenwichLongitude()
Double.NaN
if this
value is not defined.
public void setPrimeMeridianGreenwichLongitude(double greenwichLongitude)
greenwichLongitude
- The greenwich longitude for the prime meridian, or
null
if not known.public java.lang.String getProjectionName()
Projection projection
, or null
if not
defined.
public void setProjectionName(java.lang.String name)
name
- The projection name, or null
if unknown.Projection
@Deprecated public java.lang.String getWKT()
null
if none.
@Deprecated public void setWKT(java.lang.String wkt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |