PointCloudStretchRenderer defines the color of each point in a PointCloudLayer based on the value of a numeric attribute. They allow you to easily map continuous color ramps to minimum and maximum data values of one of the layer's numeric attribute fields.

See https://developers.arcgis.com/web-scene-specification/objects/pointCloudStretchRenderer/.

interface PointCloudStretchRendererJson {
    authoringInfo?: AuthoringInfoJson;
    colorModulation?: {
        field?: string;
        maxValue?: number;
        minValue?: number;
    };
    field?: string;
    fieldTransformType?:
        | "none"
        | "lowFourBit"
        | "highFourBit"
        | "absoluteValue"
        | "moduloTen";
    pointSizeAlgorithm?: PointCloudSplatAlgorithmJson | PointCloudFixedSizeAlgorithmJson;
    pointsPerInch?: number;
    rotationExpression?: string;
    rotationType?: RotationJsonType;
    type: "pointCloudStretchRenderer";
    visualVariables?: VisualVariableJson[];
}

Hierarchy (view full)

Properties

authoringInfo?: AuthoringInfoJson

An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients should ignore it.

colorModulation?: {
    field?: string;
    maxValue?: number;
    minValue?: number;
}

Indicates whether modulation should be used to render the point.

See https://developers.arcgis.com/web-scene-specification/objects/colorModulationInfo/.

Type declaration

  • Optionalfield?: string

    The attribute to use as a source for the modulation amplitude.

  • OptionalmaxValue?: number

    Maximum value to compute modulation linear mapping.

  • OptionalminValue?: number

    Minimum value to compute modulation linear mapping.

field?: string

The name of the field that is used for the renderer.

fieldTransformType?:
    | "none"
    | "lowFourBit"
    | "highFourBit"
    | "absoluteValue"
    | "moduloTen"

A transform that is applied to the field value before evaluating the renderer.

Size algorithms for point cloud performance.

pointsPerInch?: number

Number of point to draw per display inch.

rotationExpression?: string

A constant value or an expression that derives the angle of rotation based on a feature attribute value. When an attribute name is specified, it's enclosed in square brackets.

rotationType?: RotationJsonType

String value (either geographic or arithmetic) which controls the origin and direction of rotation on point features. If the rotationType is defined as 'arithmetic', the symbol is rotated from East in a counter-clockwise direction where East is the 0� axis. If the rotationType is defined as 'geographic', the symbol is rotated from North in a clockwise direction where North is the 0� axis.

type

The type of renderer. See RendererJsonType.

visualVariables?: VisualVariableJson[]

An array of visualVariable objects used for continuous color or size, simple, and unique values with feature opacity.