|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.cs.Info org.geotools.cs.CoordinateSystem org.geotools.cs.FittedCoordinateSystem
org.opengis.referencing.crs.DefaultDerivedCRS
.
A coordinate system which sits inside another coordinate system. The fitted coordinate system can be rotated and shifted, or use any other math transform to inject itself into the base coordinate system.
CS_FittedCoordinateSystem
,
Serialized FormField Summary |
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 | |
FittedCoordinateSystem(java.lang.CharSequence name,
CoordinateSystem base,
MathTransform toBase,
AxisInfo[] axes)
Deprecated. Creates a fitted coordinate system. |
Method Summary | |
boolean |
equals(Info object,
boolean compareNames)
Deprecated. Compare this coordinate system with the specified object for equality. |
AxisInfo |
getAxis(int dimension)
Deprecated. Gets axis details for dimension within coordinate system. |
CoordinateSystem |
getBaseCoordinateSystem()
Deprecated. Replaced by AbstractDerivedCRS.getBaseCRS() . |
int |
getDimension()
Deprecated. Returns the dimension of the coordinate system. |
MathTransform |
getToBase()
Deprecated. Replaced by AbstractDerivedCRS.getConversionFromBase() ,
except that the transform needs to be inverted. |
Unit |
getUnits(int dimension)
Deprecated. Gets units for dimension within coordinate system. |
int |
hashCode()
Deprecated. Returns a hash value for this coordinate system. |
Methods inherited from class org.geotools.cs.CoordinateSystem |
fromGeoAPI, getCoordinateSystem, getDatum, getDefaultEnvelope, getScope, getValidArea |
Methods inherited from class org.geotools.cs.Info |
ensureNonNull, equals, getAbbreviation, getAlias, getAlias, getAuthority, getAuthorityCode, getIdentifiers, getName, getRemarks, toString, toWKT |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.IdentifiedObject |
getAlias, getIdentifiers, getName, getRemarks, toWKT |
Constructor Detail |
public FittedCoordinateSystem(java.lang.CharSequence name, CoordinateSystem base, MathTransform toBase, AxisInfo[] axes)
name
- Name to give new object.base
- Coordinate system to base the fitted CS on.toBase
- The transform from created CS to base CS.axes
- Axes for fitted coordinate system. The number of axes must match
the source dimension of the transform toBase
. If this
argument is null
, then axes will be infered from the
base coordinate system.
org.opengis.spatialschema.geometry.MismatchedDimensionException
- if source and target dimensions of toBase
don't match the number to axes and the base coordinate system dimensions.CS_CoordinateSystemFactory.createFittedCoordinateSystem(java.lang.String, org.opengis.cs.CS_CoordinateSystem, java.lang.String, org.opengis.cs.CS_AxisInfo[])
Method Detail |
public CoordinateSystem getBaseCoordinateSystem()
AbstractDerivedCRS.getBaseCRS()
.
getToBase()
.getDimTarget()
.
CS_FittedCoordinateSystem.getBaseCoordinateSystem()
public MathTransform getToBase()
AbstractDerivedCRS.getConversionFromBase()
,
except that the transform needs to be inverted.
CS_FittedCoordinateSystem.getToBase()
public int getDimension()
getToBase()
.getDimSource()
.
getDimension
in interface Dimensioned
getDimension
in class CoordinateSystem
CS_CoordinateSystem.getDimension()
public AxisInfo getAxis(int dimension)
getAxis
in class CoordinateSystem
dimension
- Zero based index of axis.CS_CoordinateSystem.getAxis(int)
public Unit getUnits(int dimension)
getUnits
in class CoordinateSystem
dimension
- Zero based index of axis.CS_CoordinateSystem.getUnits(int)
public boolean equals(Info object, boolean compareNames)
equals
in class Info
object
- The object to compare to this
.compareNames
- true
to comparare the name,
alias, authority
code, etc. as well, or false
to compare only properties
relevant to transformations.
true
if both objects are equal.public int hashCode()
equals
(Info, false)
.
hashCode
in class Info
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |