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
-
Method Summary
Modifier and TypeMethodDescriptionall
(ALcdMeasureProvider.Parameters aParameters) Sets all parameters on the builder based on the givenParameter
object.build()
Builds a newParameter
object.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 onlyNONE
andLINEAR
are currently supported.- Parameters:
aInterpolationType
- the interpolation type.- Returns:
this
-
all
Sets all parameters on the builder based on the givenParameter
object.- Parameters:
aParameters
- a parameter object.- Returns:
this
-
build
Builds a newParameter
object.- Returns:
- a new
Parameter
object.
-