|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.referencing.wkt.Formattable org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.AbstractReferenceSystem org.geotools.referencing.crs.AbstractCRS
Abstract coordinate reference system, usually defined by a coordinate system and a datum.
AbstractCS
,
AbstractDatum
,
Serialized FormField Summary | |
protected org.opengis.referencing.cs.CoordinateSystem |
coordinateSystem
The coordinate system. |
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject |
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
Fields inherited from interface org.opengis.referencing.ReferenceSystem |
SCOPE_KEY, VALID_AREA_KEY |
Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
AbstractCRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Constructs a new coordinate reference system with the same values than the specified one. |
|
AbstractCRS(java.util.Map properties,
org.opengis.referencing.cs.CoordinateSystem cs)
Constructs a coordinate reference system from a set of properties. |
Method Summary | |
Measure |
distance(double[] coord1,
double[] coord2)
Computes the distance between two points. |
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this coordinate reference system with the specified object for equality. |
protected java.lang.String |
formatWKT(Formatter formatter)
Format the inner part of a Well Known Text (WKT) element. |
org.opengis.referencing.cs.CoordinateSystem |
getCoordinateSystem()
Returns the coordinate system. |
int |
hashCode()
Returns a hash value for this CRS. |
Methods inherited from class org.geotools.referencing.AbstractReferenceSystem |
getScope, getValidArea |
Methods inherited from class org.geotools.referencing.AbstractIdentifiedObject |
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches |
Methods inherited from class org.geotools.referencing.wkt.Formattable |
toString, toWKT, toWKT, toWKT |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.ReferenceSystem |
getScope, getValidArea |
Methods inherited from interface org.opengis.referencing.IdentifiedObject |
getAlias, getIdentifiers, getName, getRemarks, toWKT |
Field Detail |
protected final org.opengis.referencing.cs.CoordinateSystem coordinateSystem
Constructor Detail |
public AbstractCRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
public AbstractCRS(java.util.Map properties, org.opengis.referencing.cs.CoordinateSystem cs)
properties
- Set of properties. Should contains at least "name"
.cs
- The coordinate system.Method Detail |
public org.opengis.referencing.cs.CoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface org.opengis.referencing.crs.CoordinateReferenceSystem
public Measure distance(double[] coord1, double[] coord2) throws java.lang.UnsupportedOperationException, org.opengis.spatialschema.geometry.MismatchedDimensionException
coord1
- Coordinates of the first point.coord2
- Coordinates of the second point.
java.lang.UnsupportedOperationException
- if this coordinate reference system can't compute
distances.
org.opengis.spatialschema.geometry.MismatchedDimensionException
- if a coordinate doesn't have the expected dimension.public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
equals
in class AbstractReferenceSystem
object
- The object to compare to .compareMetadata
- for performing a strict comparaison, or
for comparing only properties relevant to transformations.
public int hashCode()
equals
(AbstractIdentifiedObject,
false)
.
hashCode
in class AbstractIdentifiedObject
protected java.lang.String formatWKT(Formatter formatter)
formatWKT
in class Formattable
formatter
- The formatter to use.
Formattable.toWKT()
,
Formattable.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |