org.geotoolkit.referencing.adapters
Class NetcdfProjection

Object
  extended by NetcdfIdentifiedObject
      extended by NetcdfProjection
All Implemented Interfaces:
Identifier, IdentifiedObject, Conversion, CoordinateOperation, Projection, SingleOperation, ReferenceIdentifier

public class NetcdfProjection
extends NetcdfIdentifiedObject
implements Projection

Wraps a NetCDF Projection object as an implementation of GeoAPI interfaces.

Since:
3.20
Version:
3.20
Author:
Martin Desruisseaux (Geomatys)
Module:
coverage/geotk-coverageio-netcdf (download)    View source code for this class

Field Summary
 
Fields inherited from interface CoordinateOperation
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEY
 
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Fields inherited from interface ReferenceIdentifier
CODESPACE_KEY, VERSION_KEY
 
Fields inherited from interface Identifier
AUTHORITY_KEY, CODE_KEY
 
Constructor Summary
NetcdfProjection(Projection projection, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS)
          Creates a new wrapper for the given NetCDF projection.
 
Method Summary
 Projection delegate()
          Returns the NetCDF projection wrapped by this adapter.
 String getCode()
          Returns the projection name.
 Collection<PositionalAccuracy> getCoordinateOperationAccuracy()
          Returns an empty set, since this adapter have no information about the operation accuracy.
 Extent getDomainOfValidity()
          Returns the domain of validity declared by the NetCDF projection, or null if none.
 MathTransform getMathTransform()
          Returns a wrapper around the NetCDF projection for performing coordinate operations.
 OperationMethod getMethod()
          Returns the operation method.
 String getOperationVersion()
          Always null for a projection.
 ParameterValueGroup getParameterValues()
          Wraps the NetCDF parameters in a GeoAPI parameter object.
 InternationalString getScope()
          Returns null, since this adapter does not have information about the projection scope.
 CoordinateReferenceSystem getSourceCRS()
          Returns the source coordinate reference system, which is usually geographic.
 CoordinateReferenceSystem getTargetCRS()
          Returns the target coordinate reference system, which is usually projected.
 
Methods inherited from class NetcdfIdentifiedObject
equals, getAlias, getAuthority, getCodeSpace, getIdentifiers, getName, getRemarks, getVersion, hashCode, toString, toWKT
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Constructor Detail

NetcdfProjection

public NetcdfProjection(Projection projection,
                        CoordinateReferenceSystem sourceCRS,
                        CoordinateReferenceSystem targetCRS)
Creates a new wrapper for the given NetCDF projection.

Parameters:
projection - The NetCDF projection object to wrap.
sourceCRS - The source CRS to be returned by getSourceCRS(), or null.
targetCRS - The target CRS to be returned by getTargetCRS(), or null.
Method Detail

delegate

public Projection delegate()
Returns the NetCDF projection wrapped by this adapter.

Specified by:
delegate in class NetcdfIdentifiedObject
Returns:
The NetCDF projection object.

getCode

public String getCode()
Returns the projection name. The default implementation delegates to Projection.getName().

Specified by:
getCode in interface Identifier
Specified by:
getCode in class NetcdfIdentifiedObject
Returns:
The projection name.
See Also:
Projection.getName()

getSourceCRS

public CoordinateReferenceSystem getSourceCRS()
Returns the source coordinate reference system, which is usually geographic.

Specified by:
getSourceCRS in interface Conversion
Specified by:
getSourceCRS in interface CoordinateOperation
Returns:
The source CRS, or null if not available.

getTargetCRS

public CoordinateReferenceSystem getTargetCRS()
Returns the target coordinate reference system, which is usually projected.

Specified by:
getTargetCRS in interface Conversion
Specified by:
getTargetCRS in interface CoordinateOperation
Returns:
The target CRS, or null if not available.

getOperationVersion

public String getOperationVersion()
Always null for a projection.

Specified by:
getOperationVersion in interface Conversion
Specified by:
getOperationVersion in interface CoordinateOperation

getMethod

public OperationMethod getMethod()
Returns the operation method. The name of the returned method is the NetCDF projection class name.

Specified by:
getMethod in interface SingleOperation
Returns:
The operation method.
See Also:
Projection.getClassName()

getParameterValues

public ParameterValueGroup getParameterValues()
Wraps the NetCDF parameters in a GeoAPI parameter object. This method returns a wrapper around the NetCDF Parameter objects.

Specified by:
getParameterValues in interface SingleOperation
See Also:
Projection.getProjectionParameters()

getCoordinateOperationAccuracy

public Collection<PositionalAccuracy> getCoordinateOperationAccuracy()
Returns an empty set, since this adapter have no information about the operation accuracy.

Specified by:
getCoordinateOperationAccuracy in interface CoordinateOperation

getDomainOfValidity

public Extent getDomainOfValidity()
Returns the domain of validity declared by the NetCDF projection, or null if none.

Specified by:
getDomainOfValidity in interface CoordinateOperation
See Also:
ProjectionImpl.getDefaultMapAreaLL()

getScope

public InternationalString getScope()
Returns null, since this adapter does not have information about the projection scope.

Specified by:
getScope in interface CoordinateOperation

getMathTransform

public MathTransform getMathTransform()
Returns a wrapper around the NetCDF projection for performing coordinate operations.

Specified by:
getMathTransform in interface CoordinateOperation


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.