"curveResample"

The attribute "curveResample" enables the curve downsampling.

Synopsis

setValue(string shape, "curveResample", string curve, int which);

shape.curveResample(string curve, int which);

Parameters

Parameter Description
shape Name of the object
curve Name of the curve
which Type of downsampling. Can be one of the following:
  • which = TREND_NO_RESAMPLE (= 0): works like the old dpGetPeriod
  • which = TREND_RESAMPLE (= 1): dpQuery with LAST
  • which = TREND_RESAMPLE_WITH_AVG (= 2): dpQuery with AVG

Description

The "curveResample" function can only be used in an NGA-project. In other projects the downsampling setting is ignored.

The attribute "curveResample" enables the downsampling of the specified curve. If you zoom in, a new dpQuery request is made with more details.

After a short time the requested data is shown. There might be differences in the graphical presentation, if you are using TREND_RESAMPLE_WITH_AVG. This happens if only 1 value (= 1 database row) is retrieved instead of 2 because of a small available pixel space. With TREND_RESAMPLE there are no graphical differences.

The downsampling can be selected by selecting the type of downsampling in the corresponding combobox in the curve tab. The combobox will not be shown in any projects not using NGA.

Note: Debugging can be enabled, but this will cause a significant decrease in performance:
WCCOAui -dbg trend ...
Note: The event curve does not support the downsampling and is ignored for it.
Note: The bar trend does not support the downsampling, and it cannot be set for it.

Assignment

Trend