Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TracingService<TLayer, TLayerOptions>

等值线色斑图追踪服务

export

Type Parameters

  • TLayer

    生成的图层类型

  • TLayerOptions

    生成的图层构建参数

Hierarchy

Index

Constructors

  • 构建 TracingService

    memberof

    TracingService

    Type Parameters

    • TLayer

    • TLayerOptions

    Parameters

    Returns TracingService<TLayer, TLayerOptions>

Properties

DefaultColorStopOptions: { field: string; stops: { stop: string; value: number }[] } = ...

默认的颜色分级配置

static
memberof

TracingService

Type declaration

  • field: string
  • stops: { stop: string; value: number }[]
DefaultContourShadedStyle: IFeatureStyleOptions = ...

等值线色斑图样式的默认配置参数

polyline: { color: "rgba(255,255,255,0.5)", label: [ { text: { data: "$value", backColor: "#edf2ba", backPadding: [1, 1], backRoundRect: true, backHeight: 12, color: "black", font: "12px Arial", backShadowColor: "gray", backShadowOffset: [2, 2] } } ] }, polygon: {

}

static
memberof

TracingService

Methods

  • 使用等值线追踪的结果继续追踪色斑图

    deprecated

    请使用tracingContourShadedWASM进行格点数据的等值线色斑图追踪

    memberof

    TracingService

    Parameters

    Returns TLayer

    追踪生成的图层

  • 使用格点数据追踪等值线色斑图

    deprecated

    请使用tracingContourShadedWASM替代,速度更快

    memberof

    TracingService

    Parameters

    Returns IWContourlineResult<TLayer>

    {IWContourlineResult}

  • 使用站点数据追踪等值线色斑图

    deprecated

    建议使用tracingContourShadedFromPointsWASM

    memberof

    TracingService

    Parameters

    Returns IWContourlineResult<TLayer>

  • tracingStreamLinesAsync(options: ITracingStreamlineOptions, completeOne?: ((data: { allFC: FeatureCollection<LineString, {}>; fc: FeatureCollection<LineString, {}>; streamlines: number[][][] }) => void)): Promise<{ provider: GeoJSONFeatureProvider; streamlines: number[][][] }>
  • 对格点数据进行风流场追踪,分析的结果是矢量provider 对于显示静态风流场,可以添加一个箭头来表示风的方向,矢量样式需要一个箭头方向朝右的图片来作为贴图 参考配置如下(贴图为32x32,显示为16x16,以便在Retina屏下获得较好的效果): { polyline: { color: "black", label: [ { image: { data: "arrow#res", //arrow为贴图的资源id,关于资源的使用请参考文档 size: [16, 16], offset: [-8, -8] } } ], labelAutoFlip: false //务必设置为false,避免系统自动翻转箭头的方向 } }

    Parameters

    • options: ITracingStreamlineOptions

      追踪选项

    • Optional completeOne: ((data: { allFC: FeatureCollection<LineString, {}>; fc: FeatureCollection<LineString, {}>; streamlines: number[][][] }) => void)

      当一个批次追踪结束时的回调,一般用于大量数据时分批渐进显示,可以提供较好的用户体验。也可以直接等最终全部分析完成再显示

        • (data: { allFC: FeatureCollection<LineString, {}>; fc: FeatureCollection<LineString, {}>; streamlines: number[][][] }): void
        • Parameters

          • data: { allFC: FeatureCollection<LineString, {}>; fc: FeatureCollection<LineString, {}>; streamlines: number[][][] }
            • allFC: FeatureCollection<LineString, {}>

              到当前为止所有已经分析出来的结果

            • fc: FeatureCollection<LineString, {}>

              当前批次分析出来的结果

            • streamlines: number[][][]

              当前批次的原始点结果

          Returns void

    Returns Promise<{ provider: GeoJSONFeatureProvider; streamlines: number[][][] }>

    分析出来的矢量provider

  • createDefaultColorStops(analysisValues: number[], fieldName?: string, undef?: number): IStopRulesOptions
  • 构建默认的渐变规则配置

    static
    memberof

    TracingService

    Parameters

    • analysisValues: number[]

      分析值列表

    • Optional fieldName: string
    • Optional undef: number

    Returns IStopRulesOptions

  • 使用wasm中的算法进行插值,实际测试表明,该算法编译后在chrome上执行速度不理想。

    deprecated

    请使用interpToGridProvider获得更快的插值速度

    Parameters

    Returns Promise<IGridDataProvider>

Generated using TypeDoc