Package org.geotools.coverage.grid
Class LookupTableFactory
Object
LookupTableFactory
A factory for
LookupTableImageN objects built from an array of MathTransform1D. This factory is used
internally by GridCoverageViews#create.- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD)
-
Method Summary
Modifier and TypeMethodDescriptionstatic LookupTableImageNcreate(int sourceType, int targetType, MathTransform1D[] transforms) Gets a lookup factorybooleanCompares the specified object with this key for equality.inthashCode()Returns a hash code value for this key.
-
Method Details
-
create
public static LookupTableImageN create(int sourceType, int targetType, MathTransform1D[] transforms) throws TransformException Gets a lookup factory- Parameters:
sourceType- The source data type. Should be one ofDataBufferconstants.targetType- The target data type. Should be one ofDataBufferconstants.transforms- The math transforms to apply.- Returns:
- The lookup table, or
nullif this method can't build a lookup table for the supplied parameters. - Throws:
TransformException- if a transformation failed.
-
hashCode
public int hashCode()Returns a hash code value for this key. This is for internal use byLookupTableFactoryand is public only as an implementation side effect. -
equals
Compares the specified object with this key for equality. This is for internal use byLookupTableFactoryand is public only as an implementation side effect.
-