public class DefaultProjectedCRS extends AbstractCRS implements ProjectedCRS
Used with coordinate system type: Cartesian.
Defined in the sis-referencing
module
DEPRECATED_KEY, LOCALE_KEY
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Modifier | Constructor and Description |
---|---|
|
DefaultProjectedCRS(Map<String,?> properties,
GeographicCRS baseCRS,
Conversion conversion,
CartesianCS derivedCS)
Creates a projected CRS from a defining conversion.
|
protected |
DefaultProjectedCRS(ProjectedCRS crs)
Constructs a new coordinate reference system with the same values than the specified one.
|
Modifier and Type | Method and Description |
---|---|
static DefaultProjectedCRS |
castOrCopy(ProjectedCRS object)
Returns a SIS coordinate reference system implementation with the same values than the given
arbitrary implementation.
|
protected long |
computeHashCode()
Invoked by
hashCode() for computing the hash code when first needed. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares this coordinate reference system with the specified object for equality.
|
DefaultProjectedCRS |
forConvention(AxesConvention convention)
Returns a coordinate reference system equivalent to this one but with axes rearranged according the given
convention.
|
protected String |
formatTo(Formatter formatter)
Formats the inner part of the Well Known Text (WKT) representation of this CRS.
|
GeographicCRS |
getBaseCRS()
Returns the geographic CRS on which the map projection is applied.
|
Projection |
getConversionFromBase()
Returns the map projection from the base CRS to this CRS.
|
CartesianCS |
getCoordinateSystem()
Returns the coordinate system.
|
GeodeticDatum |
getDatum()
Returns the datum of the base CRS.
|
Class<? extends ProjectedCRS> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
castOrCopy
getDomainOfValidity, getScope
castOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForName
print, toString, toString, toWKT
getDomainOfValidity, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public DefaultProjectedCRS(Map<String,?> properties, GeographicCRS baseCRS, Conversion conversion, CartesianCS derivedCS) throws MismatchedDimensionException
Property name | Value type | Returned by |
---|---|---|
"name" | Identifier or String |
AbstractIdentifiedObject.getName() |
"alias" | GenericName or CharSequence (optionally as array) |
AbstractIdentifiedObject.getAlias() |
"identifiers" | Identifier (optionally as array) |
AbstractIdentifiedObject.getIdentifiers() |
"remarks" | InternationalString or String |
AbstractIdentifiedObject.getRemarks() |
"domainOfValidity" | Extent |
AbstractReferenceSystem.getDomainOfValidity() |
"scope" | InternationalString or String |
AbstractReferenceSystem.getScope() |
conversion
argument shall not includes the operation steps
for performing unit
conversions and change of axis order since those operations will be inferred by this constructor.properties
- The properties to be given to the new derived CRS object.baseCRS
- Coordinate reference system to base the derived CRS on.conversion
- The defining conversion from a normalized base
to a normalized derived CRS.derivedCS
- The coordinate system for the derived CRS. The number of axes
must match the target dimension of the baseToDerived
transform.MismatchedDimensionException
- if the source and target dimensions of baseToDerived
do not match the dimensions of base
and derivedCS
respectively.protected DefaultProjectedCRS(ProjectedCRS crs)
This constructor performs a shallow copy, i.e. the properties are not cloned.
crs
- The coordinate reference system to copy.castOrCopy(ProjectedCRS)
public static DefaultProjectedCRS castOrCopy(ProjectedCRS object)
null
, then this method returns null
.
Otherwise if the given object is already a SIS implementation, then the given object is returned unchanged.
Otherwise a new SIS implementation is created and initialized to the attribute values of the given object.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public Class<? extends ProjectedCRS> getInterface()
ProjectedCRS.class
.
ProjectedCRS
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with
their own set of interfaces.ProjectedCRS.class
or a user-defined sub-interface.public GeodeticDatum getDatum()
getDatum
in interface ProjectedCRS
getDatum
in interface SingleCRS
public GeographicCRS getBaseCRS()
getBaseCRS
in interface GeneralDerivedCRS
getBaseCRS
in interface ProjectedCRS
public Projection getConversionFromBase()
this
CRS.this
CRS.
null
.getConversionFromBase
in interface GeneralDerivedCRS
getConversionFromBase
in interface ProjectedCRS
public final CartesianCS getCoordinateSystem()
getCoordinateSystem
in interface CoordinateReferenceSystem
getCoordinateSystem
in interface ProjectedCRS
getCoordinateSystem
in interface SingleCRS
getCoordinateSystem
in class AbstractCRS
public DefaultProjectedCRS forConvention(AxesConvention convention)
this
.forConvention
in class AbstractCRS
convention
- The axes convention for which a coordinate reference system is desired.this
).AbstractCS.forConvention(AxesConvention)
public boolean equals(Object object, ComparisonMode mode)
equals
in interface LenientComparable
object
- The object to compare to this
.mode
- STRICT
for performing a strict comparison, or
IGNORE_METADATA
for comparing only properties
relevant to coordinate transformations.true
if both objects are equal.AbstractIdentifiedObject.computeHashCode()
,
Utilities.deepEquals(Object, Object, ComparisonMode)
protected long computeHashCode()
hashCode()
for computing the hash code when first needed.
See AbstractIdentifiedObject.computeHashCode()
for more information.protected String formatTo(Formatter formatter)
ProjectedCRS[“NTF (Paris) / Lambert zone II”, BaseGeodCRS[“NTF (Paris)”, Datum[“Nouvelle Triangulation Francaise”, Ellipsoid[“NTF”, 6378249.2, 293.4660212936269, LengthUnit[“metre”, 1]]], PrimeMeridian[“Paris”, 2.5969213, AngleUnit[“grade”, 0.015707963267948967]]], Conversion[“Lambert zone II”, Method[“Lambert Conic Conformal (1SP)”, Id[“EPSG”, 9801, Citation[“IOGP”]]], Parameter[“Latitude of natural origin”, 52.0, AngleUnit[“grade”, 0.015707963267948967], Id[“EPSG”, 8801]], Parameter[“Longitude of natural origin”, 0.0, AngleUnit[“degree”, 0.017453292519943295], Id[“EPSG”, 8802]], Parameter[“Scale factor at natural origin”, 0.99987742, ScaleUnit[“unity”, 1], Id[“EPSG”, 8805]], Parameter[“False easting”, 600000.0, LengthUnit[“metre”, 1], Id[“EPSG”, 8806]], Parameter[“False northing”, 2200000.0, LengthUnit[“metre”, 1], Id[“EPSG”, 8807]]], CS[“Cartesian”, 2], Axis[“Easting (E)”, east, Order[1]], Axis[“Northing (N)”, north, Order[2]], LengthUnit[“metre”, 1], Id[“EPSG”, 27572, Citation[“IOGP”], URI[“urn:ogc:def:crs:EPSG::27572”]]]
Same coordinate reference system using WKT 1.
PROJCS[“NTF (Paris) / Lambert zone II”, GEOGCS[“NTF (Paris)”, DATUM[“Nouvelle Triangulation Francaise”, SPHEROID[“NTF”, 6378249.2, 293.4660212936269]], PRIMEM[“Paris”, 2.33722917], UNIT[“degree”, 0.017453292519943295], AXIS[“Longitude”, EAST], AXIS[“Latitude”, NORTH]], PROJECTION[“Lambert_Conformal_Conic_1SP”, AUTHORITY[“EPSG”, “9801”]], PARAMETER[“latitude_of_origin”, 46.8], PARAMETER[“central_meridian”, 0.0], PARAMETER[“scale_factor”, 0.99987742], PARAMETER[“false_easting”, 600000.0], PARAMETER[“false_northing”, 2200000.0], UNIT[“metre”, 1], AXIS[“Easting”, EAST], AXIS[“Northing”, NORTH], AUTHORITY[“EPSG”, “27572”]]
formatTo
in class AbstractCRS
formatter
- The formatter where to format the inner content of this WKT element."ProjectedCRS"
(WKT 2) or "ProjCS"
(WKT 1).Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.