org.deegree.protocol.wcs
Enum WCSConstants.InterpolationMethod

java.lang.Object
  extended by java.lang.Enum<WCSConstants.InterpolationMethod>
      extended by org.deegree.protocol.wcs.WCSConstants.InterpolationMethod
All Implemented Interfaces:
Serializable, Comparable<WCSConstants.InterpolationMethod>
Enclosing class:
WCSConstants

public static enum WCSConstants.InterpolationMethod
extends Enum<WCSConstants.InterpolationMethod>

The InterpolationMethod class maps Interpolations to the wcs 1.0.0 protocol name.

Version:
$Revision: $, $Date: $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Enum Constant Summary
Barycentric
          Interpolating barycentric.
Bicubic
          Interpolating bicubic.
Bilinear
          Interpolating bilinear.
LostArea
          Interpolating lost area.
Nearest_Neighbor
          Interpolating nearest neighbor.
None
          Not Interpolating.
 
Method Summary
 InterpolationType asRasterAPIType()
           
 String getProtocolName(Version version)
           
static WCSConstants.InterpolationMethod map(InterpolationType type)
           
static WCSConstants.InterpolationMethod map(String ip)
           
static WCSConstants.InterpolationMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WCSConstants.InterpolationMethod[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Nearest_Neighbor

public static final WCSConstants.InterpolationMethod Nearest_Neighbor
Interpolating nearest neighbor.


Bilinear

public static final WCSConstants.InterpolationMethod Bilinear
Interpolating bilinear.


Bicubic

public static final WCSConstants.InterpolationMethod Bicubic
Interpolating bicubic.


LostArea

public static final WCSConstants.InterpolationMethod LostArea
Interpolating lost area.


Barycentric

public static final WCSConstants.InterpolationMethod Barycentric
Interpolating barycentric.


None

public static final WCSConstants.InterpolationMethod None
Not Interpolating.

Method Detail

values

public static WCSConstants.InterpolationMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WCSConstants.InterpolationMethod c : WCSConstants.InterpolationMethod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WCSConstants.InterpolationMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getProtocolName

public String getProtocolName(Version version)
Parameters:
version - of the suspected protocol.
Returns:
the name as it is define in the spec for given protocol version.

map

public static WCSConstants.InterpolationMethod map(String ip)
Parameters:
ip -
Returns:
an heuristically determined Interpolation type

map

public static WCSConstants.InterpolationMethod map(InterpolationType type)
Parameters:
type -
Returns:
maps the Raster-API InterpolationType to the WCS WCSConstants.InterpolationMethod.

asRasterAPIType

public InterpolationType asRasterAPIType()
Returns:
this WCS interpolation type as a raster api type, or null if it the interpolation method is not supported by the raster api.


Copyright © 2011. All Rights Reserved.