Class DefaultProjection
- All Implemented Interfaces:
Serializable,IdentifiedObject,Conversion,CoordinateOperation,Operation,Projection,SingleOperation
- Direct Known Subclasses:
DefaultConicProjection,DefaultCylindricalProjection,DefaultPlanarProjection
A conversion transforming (longitude,latitude) coordinates to
cartesian coordinates (x,y).
An unofficial list of projections and their parameters can be found there. Most projections expect the following parameters:
"central_meridian" (default to 0), "latitude_of_origin"
(default to 0), "scale_factor" (default to 1), "false_easting" (default to 0) and
"false_northing" (default to 0).
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Field Summary
Fields inherited from class DefaultOperation
methodFields inherited from class AbstractCoordinateOperation
domainOfValidity, EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transformFields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATORFields inherited from class Formattable
SINGLE_LINEFields inherited from interface CoordinateOperation
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEYFields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultProjection(Map<String, ?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, OperationMethod method) Constructs a projection from a set of properties.DefaultProjection(Conversion conversion, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform) Constructs a new projection with the same values than the specified one, together with the specified source and target CRS. -
Method Summary
Methods inherited from class DefaultConversion
createMethods inherited from class DefaultOperation
create, equals, formatWKT, getMethod, getParameterValues, hashCodeMethods inherited from class AbstractCoordinateOperation
getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRS, getTypeMethods inherited from class AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatchesMethods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTMethods inherited from interface Conversion
getOperationVersion, getSourceCRS, getTargetCRSMethods inherited from interface CoordinateOperation
getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getScopeMethods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKTMethods inherited from interface Operation
getMethod, getParameterValues
-
Constructor Details
-
DefaultProjection
public DefaultProjection(Conversion conversion, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform) Constructs a new projection with the same values than the specified one, together with the specified source and target CRS. While the source conversion can be an arbitrary one, it is typically a defining conversion.- Parameters:
conversion- The defining conversion.sourceCRS- The source CRS.targetCRS- The target CRS.transform- Transform from positions in the source CRS to positions in the target CRS.
-
DefaultProjection
public DefaultProjection(Map<String, ?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, OperationMethod method) Constructs a projection from a set of properties. The properties given in argument follow the same rules than for theAbstractCoordinateOperationconstructor.- Parameters:
properties- Set of properties. Should contains at least"name".sourceCRS- The source CRS, ornullif not available.targetCRS- The target CRS, ornullif not available.transform- Transform from positions in the source coordinate reference system to positions in the target coordinate reference system.method- The operation method.
-