Package com.luciad.util.measure
Class ALcdMeasureProvider.Parameters.Builder
java.lang.Object
com.luciad.util.measure.ALcdMeasureProvider.Parameters.Builder
- Enclosing class:
ALcdMeasureProvider.Parameters
Builder to create
Parameter objects.- Since:
- 2013.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall(ALcdMeasureProvider.Parameters aParameters) Sets all parameters on the builder based on the givenParameterobject.build()Builds a newParameterobject.interpolationType(ELcdInterpolationType aInterpolationType) Sets the interpolation type.sampleDensity(double aSampleDensity) Sets the sample density for which a measure is queried.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sampleDensity
Sets the sample density for which a measure is queried. This value can be
Double.NaN, in order to not specify a sample density. In that case, the most detailed measure can be returned.The sample density is an indication of the spacing (in units of the point reference) between sample points for which measures are being retrieved. It indicates the number of samples per unit of area in the given point reference.
- Parameters:
aSampleDensity- the sample density for which measures should be retrieved.- Returns:
this
-
interpolationType
public ALcdMeasureProvider.Parameters.Builder interpolationType(ELcdInterpolationType aInterpolationType) Sets the interpolation type. This is useful when retrieving measures from rasters. By default, this parameter isELcdInterpolationType.NONE. Note that onlyNONEandLINEARare currently supported.- Parameters:
aInterpolationType- the interpolation type.- Returns:
this
-
all
Sets all parameters on the builder based on the givenParameterobject.- Parameters:
aParameters- a parameter object.- Returns:
this
-
build
Builds a newParameterobject.- Returns:
- a new
Parameterobject.
-