public class SurfaceAnalystParametersSetting
extends java.lang.Object
implements java.io.Serializable
表面分析参数设置类。
表面分析是指通过对数据集或几何对象进行分析,从中挖掘原始数据所包含的隐藏信息——等值线、等值面。 通过该类可以设置表面分析的一些参数,包括提取等值线/面的基准值、等值距、光滑度、光滑方法等。
限定符和类型 | 字段和说明 |
---|---|
Geometry |
clipRegion
获取或设置裁剪面对象,如果不需要对操作结果进行裁剪,可以使用 null 值取代该参数。
|
double |
datumValue
获取或设置等值线/面的基准值,默认值为 0。
|
double[] |
expectedZValues
获取或设置期望分析结果的 Z 值列表。
|
double |
interval
获取或设置等值距,默认为0。
|
double |
resampleTolerance
获取或设置重采样容限,默认值为 0。
|
SmoothMethod |
smoothMethod
获取或设置光滑处理所使用的方法,由 SmoothMethod 类定义。
|
double |
smoothness
获取或设置等值线或等值面的边界线的光滑度,默认为0。
|
构造器和说明 |
---|
SurfaceAnalystParametersSetting() |
public Geometry clipRegion
获取或设置裁剪面对象,如果不需要对操作结果进行裁剪,可以使用 null 值取代该参数。
public double datumValue
获取或设置等值线/面的基准值,默认值为 0。 基准值是作为一个生成等值线/面的初始起算值,并不一定是最小等值线的值。设置基准值时,要参照用于提取操作的字段的最大和最小值,不可以超过最大值。 例如,高程范围为 220 ~1550 的 DEM 栅格数据,如果设基准值为 0, 等值距为 50,则提取等值线时,以基准值 0 为起点,等值距 50 为间隔提取等值线, 因为给定高程的最小值是 220,所以,在给定范围内提取等值线的最小高程是 250。提取等值线的结果是:最小等值线值为250,最大等值线值为 1550。
public double[] expectedZValues
获取或设置期望分析结果的 Z 值列表。
public double interval
获取或设置等值距,默认为0。 等值距是两条等值线之间的间隔值。设置等值距时,要参照用于提取操作的字段的最大和最小值,不可以超过两者之差。
public double resampleTolerance
获取或设置重采样容限,默认值为 0。 容限值越大,采样结果数据越简化。当分析结果出现交叉时,可通过调整重采样容限为较小的值来处理。
public SmoothMethod smoothMethod
获取或设置光滑处理所使用的方法,由 SmoothMethod 类定义。默认为 SmoothMethod.BSPLINE B 样条法。
public double smoothness
获取或设置等值线或等值面的边界线的光滑度,默认为0。 以0-5为例,光滑度为 0 表示不进行光滑操作,值越大表示光滑度越高。随着光滑度的增加,提取的等值线越光滑。当然光滑度越大,计算所需的时间和占用的内存也就越大。而且,当等值距较小时,光滑度太高会出现等值线相交的问题。