org.deegree.cs
Interface CRSResource

All Superinterfaces:
Object, TypedObjectNode
All Known Subinterfaces:
IAxis, ICompoundCRS, IConicProjection, ICRS, IDatum, IEllipsoid, IGeocentricCRS, IGeodeticDatum, IGeographicCRS, ILambertAzimuthalEqualArea, ILambertConformalConic, IMercator, IPrimeMeridian, IProjectedCRS, IProjection, IStereographicAlternative, IStereographicAzimuthal, ITransverseMercator, IUnit, IVerticalCRS, IVerticalDatum
All Known Implementing Classes:
AbstractTransformation, AffineTransformation, Axis, AxisFlipTransformation, AxisRef, AzimuthalProjection, CompoundCRS, CompoundCRSRef, ConcatenatedTransform, ConicProjection, CRS, CRSIdentifiable, CRSRef, CRSResourceRef, CylindricalProjection, Datum, DatumRef, DirectTransform, Ellipsoid, EllipsoidRef, GeocentricCRS, GeocentricCRSRef, GeocentricTransform, GeodeticDatum, GeodeticDatumRef, GeographicCRS, GeographicCRSRef, Helmert, Helmert4Transform, IdentityTransform, LambertAzimuthalEqualArea, LambertAzimuthalEqualAreaRef, LambertConformalConic, LambertConformalConicRef, LeastSquareApproximation, MatrixTransform, Mercator, MercatorRef, NotSupportedTransformation, NTv2Transformation, Polynomial, PolynomialTransformation, PrimeMeridian, PrimeMeridianRef, ProjectedCRS, ProjectedCRSRef, Projection, ProjectionRef, ProjectionTransform, StereographicAlternative, StereographicAlternativeRef, StereographicAzimuthal, StereographicAzimuthalRef, Transformation, TransverseMercator, TransverseMercatorRef, Unit, UnitRef, VerticalCRS, VerticalCRSRef, VerticalDatum, VerticalDatumRef

public interface CRSResource
extends Object

Interface describing a CRS or an arbirary component of a CRS.

Version:
$Revision: $, $Date: $
Author:
Lyn Buesching, last edited by: $Author: lyn $

Method Summary
 void addAreaOfUse(String areaOfUse)
           
 void addName(String name)
           
 String getAreaOfUse()
           
 double[] getAreaOfUseBBox()
          Returns the area of use, i.e. the domain where this CRSIdentifiable is valid.
 String[] getAreasOfUse()
           
 CRSCodeType getCode()
           
 String getCodeAndName()
           
 CRSCodeType[] getCodes()
           
 String getDescription()
           
 String[] getDescriptions()
           
 String getName()
           
 String[] getNames()
           
 String[] getOrignalCodeStrings()
           
 String getVersion()
           
 String[] getVersions()
           
 boolean hasCode(CRSCodeType id)
           
 boolean hasId(String id, boolean caseSensitive, boolean exact)
           
 boolean hasIdOrName(String idOrName, boolean caseSensitive, boolean exact)
          Iterates over all Ids (code type originals) and Names and tests if either one matches the given string.
 void setDefaultAreaOfUse(double[] bbox)
           
 void setDefaultDescription(String newDescription, boolean override)
           
 void setDefaultId(CRSCodeType newCodeType, boolean override)
           
 void setDefaultName(String defaultName, boolean override)
           
 void setDefaultVersion(String newVersion, boolean override)
           
 
Methods inherited from interface org.deegree.commons.tom.Object
getId
 

Method Detail

getAreaOfUse

String getAreaOfUse()
Returns:
the first of all areasOfUse or null if no areasOfUse were given.

getDescription

String getDescription()
Returns:
the first of all descriptions or null if no descriptions were given.

getCode

CRSCodeType getCode()
Returns:
the first of all identifiers.

getName

String getName()
Returns:
the first of all names or null if no names were given.

getVersion

String getVersion()
Returns:
the first of all versions or null if no versions were given.

getCodeAndName

String getCodeAndName()
Returns:
the first id and the name (if given) as id: id, name: name.

getAreasOfUse

String[] getAreasOfUse()
Returns:
the areasOfUse or null if no areasOfUse were given.

getDescriptions

String[] getDescriptions()
Returns:
the descriptions or null if no descriptions were given.

getCodes

CRSCodeType[] getCodes()
Returns:
the identifiers, each identifiable object has atleast one id.

getOrignalCodeStrings

String[] getOrignalCodeStrings()
Returns:
the codetypes as the original strings, each identifiable object has atleast one id.

getNames

String[] getNames()
Returns:
the names or null if no names were given.

getVersions

String[] getVersions()
Returns:
the versions or null if no versions were given.

hasCode

boolean hasCode(CRSCodeType id)
Parameters:
id - a string which could match this identifiable.
Returns:
true if this identifiable can be identified with the given string, false otherwise.

hasIdOrName

boolean hasIdOrName(String idOrName,
                    boolean caseSensitive,
                    boolean exact)
Iterates over all Ids (code type originals) and Names and tests if either one matches the given string.

Parameters:
idOrName - a String which might be an id or a name.
caseSensitive - should the match me case sensitive
exact - should the names and ids contain the given string or match exact.
Returns:
true if any of the names or codes match without case the given string.

hasId

boolean hasId(String id,
              boolean caseSensitive,
              boolean exact)
Parameters:
id -
caseSensitive -
exact -
Returns:
true if the given id is present in this objects id's.

getAreaOfUseBBox

double[] getAreaOfUseBBox()
Returns the area of use, i.e. the domain where this CRSIdentifiable is valid.

Returns:
the domain of validity (EPSG:4326 coordinates), order: minX, minY, maxX, maxY, never null (-180,-90,180,90) if no such information is available

setDefaultId

void setDefaultId(CRSCodeType newCodeType,
                  boolean override)
Parameters:
newCodeType -
override -

setDefaultAreaOfUse

void setDefaultAreaOfUse(double[] bbox)
Parameters:
bbox - an envelope of validity in epsg:4326 coordinates, min(lon,lat) max(lon,lat);

addAreaOfUse

void addAreaOfUse(String areaOfUse)
Parameters:
areaOfUse -

addName

void addName(String name)
Parameters:
name -

setDefaultName

void setDefaultName(String defaultName,
                    boolean override)
Parameters:
defaultName - the new default name
override - true if the new name should override the name currently at position 0

setDefaultDescription

void setDefaultDescription(String newDescription,
                           boolean override)
Parameters:
newDescription - the new default description
override - true if the new description should override the description currently at position 0

setDefaultVersion

void setDefaultVersion(String newVersion,
                       boolean override)
Parameters:
newVersion - the new default version
override - true if the new version should override the version currently at position 0


Copyright © 2011. All Rights Reserved.