|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.cs.Info
AbstractIdentifiedObject
and
NamedIdentifier
.
A base class for metadata applicable to coordinate system objects. The metadata items "Abbreviation", "Alias", "Authority", "AuthorityCode", "Name" and "Remarks" were specified in the Simple Features interfaces, so they have been kept here. This specification does not dictate what the contents of these items should be. However, the following guidelines are suggested:
CoordinateSystemAuthorityFactory
is used to create an object, the "Authority" and "AuthorityCode"
values should be set to the authority name of the factory object,
and the authority code supplied by the client, respectively. The
other values may or may not be set. (If the authority is EPSG,
the implementer may consider using the corresponding metadata values
in the EPSG tables.)CoordinateSystemFactory
creates an
object, the "Name" should be set to the value supplied by the client.
All of the other metadata items should be left empty.
CS_Info
,
Serialized FormField Summary |
Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
Info(java.lang.CharSequence name)
Deprecated. Creates an object with the specified name. |
Method Summary | |
protected static void |
ensureNonNull(java.lang.String name,
java.lang.Object object)
Deprecated. Makes sure an argument is non-null. |
boolean |
equals(Info object,
boolean compareNames)
Deprecated. Compare this object with the specified object for equality. |
boolean |
equals(java.lang.Object object)
Deprecated. Compares the specified object with this info for equality. |
java.lang.String |
getAbbreviation(java.util.Locale locale)
Deprecated. No replacement. |
java.util.Collection |
getAlias()
Deprecated. For compatibility with GeoAPI interfaces. |
java.lang.String |
getAlias(java.util.Locale locale)
Deprecated. Replaced by AbstractIdentifiedObject.getIdentifiers() . |
java.lang.String |
getAuthority(java.util.Locale locale)
Deprecated. Gets the authority name, or null if unspecified.
|
java.lang.String |
getAuthorityCode(java.util.Locale locale)
Deprecated. Replaced by NamedIdentifier#getCode . |
java.util.Set |
getIdentifiers()
Deprecated. For compatibility with GeoAPI interfaces. |
org.opengis.metadata.Identifier |
getName()
Deprecated. Gets the name of this object. |
org.opengis.util.InternationalString |
getRemarks()
Deprecated. Gets the provider-supplied remarks, or null if there is none. |
int |
hashCode()
Deprecated. Returns a hash value for this info. |
java.lang.String |
toString()
Deprecated. Returns a Well Known Text (WKT) for this info. |
java.lang.String |
toWKT()
Deprecated. For compatibility with GeoAPI interfaces. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Info(java.lang.CharSequence name)
name
implements the Map
interface, then its values
will be copied for the following keys:
name
- This object name.Method Detail |
public org.opengis.metadata.Identifier getName()
getName
in interface org.opengis.referencing.IdentifiedObject
CS_Info.getName()
public java.lang.String getAuthority(java.util.Locale locale)
null
if unspecified.
An Authority is an organization that maintains definitions of Authority
Codes. For example the European Petroleum Survey Group (EPSG) maintains
a database of coordinate systems, and other spatial referencing objects,
where each object has a code number ID. For example, the EPSG code for
a WGS84 Lat/Lon coordinate system is '4326'.
locale
- The desired locale, or null
for the default
locale.
If no string is available for the specified locale, an arbitrary
locale is used.CS_Info.getAuthority()
public java.lang.String getAuthorityCode(java.util.Locale locale)
NamedIdentifier#getCode
.
null
if unspecified. The AuthorityCode is a compact string defined by an
Authority to reference a particular spatial reference object.
For example, the European Survey Group (EPSG) authority uses 32 bit
integers to reference coordinate systems, so all their code strings
will consist of a few digits. The EPSG code for WGS84 Lat/Lon is '4326'
locale
- The desired locale, or null
for the default
locale.
If no string is available for the specified locale, an arbitrary
locale is used.CS_Info.getAuthorityCode()
public java.lang.String getAlias(java.util.Locale locale)
AbstractIdentifiedObject.getIdentifiers()
.
null
if there is none.
locale
- The desired locale, or null
for the default
locale.
If no string is available for the specified locale, an arbitrary
locale is used.CS_Info.getAlias()
public java.util.Collection getAlias()
getAlias
in interface org.opengis.referencing.IdentifiedObject
public java.lang.String getAbbreviation(java.util.Locale locale)
null
if there is none.
locale
- The desired locale, or null
for the default
locale.
If no string is available for the specified locale, an arbitrary
locale is used.CS_Info.getAbbreviation()
public org.opengis.util.InternationalString getRemarks()
null
if there is none.
getRemarks
in interface org.opengis.referencing.IdentifiedObject
CS_Info.getRemarks()
public boolean equals(Info object, boolean compareNames)
compareNames
is true
, then all available properties
are compared including name, alias,
authority code, etc.
If compareNames
is false
, then this method compare
only the properties needed for computing transformations. In other words,
sourceCS.equals(targetCS, false)
returns true
if
the transformation from sourceCS
to targetCS
is
the identity transform, no matter what getName()
saids.
object
- The object to compare to this
.compareNames
- true
for performing a strict comparaison, or
false
for comparing only properties relevant to transformations.
true
if both objects are equal.public final boolean equals(java.lang.Object object)
equals(Info, boolean)
.
object
- The other object (may be null
).
true
if both objects are equal.public int hashCode()
equals
(Info, false)
.
public java.lang.String toString()
CS_Info.getWKT()
protected static void ensureNonNull(java.lang.String name, java.lang.Object object) throws java.lang.IllegalArgumentException
name
- Argument name.object
- User argument.
IllegalArgumentException
- if object
is null.public java.util.Set getIdentifiers()
getIdentifiers
in interface org.opengis.referencing.IdentifiedObject
public java.lang.String toWKT()
toWKT
in interface org.opengis.referencing.IdentifiedObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |