JSTimeSeriesObject
API for creating and modifying time series objects.
Create a API with Module.createTimeSeriesObject.
After creation, initialize time series data by passing parameters to the create() or createbyJson() API.
When data updates are needed, call the insert(), then merge() functions to update the data.
let object = Module.createTimeSeriesObject("ID");
// For detailed parameters, refer to the API documentation
object.create(/*parameter*/);
// ... or ...
object.createJSON(/*parameter*/);
// ... or ...
object.insert(/*parameter*/);
// ... or ...
object.merge(/*parameter*/);
Function
create(parameter) → object
Creates a time series object.
Passes the entire data (image, latitude and longitude reference points, object size, object shape) via the parameter variable.
Return
.result: API success status (1: Success, 0: Failure).
.name: Operating API name.
.return: Includes Error message if item exists
createbyJson(parameter) → object
Creates a time series object.
Passes the entire data (image, latitude and longitude reference points, object size, object shape) via the parameter variable.
Return
.result: API success status (1: Success, 0: Failure).
.name: Operating API name.
.return: Includes Error message if item exists
insert(parameter) → object
Inputs additional object information.
Afterwards, calling merge() is necessary to add the input data to the existing object.
Passes the entire data (image, latitude and longitude reference points, object size, object shape) via the parameter variable.
Return
.result: API success status (1: Success, 0: Failure).
.name: Operating API name.
.return: Includes Error message if item exists
merge() → object
Function to add data inputted by insert() to the existing object.
Return
.result: API success status (1: Success, 0: Failure).
.name: Operating API name.
.return: Includes Error message if item exists
Type Definitions
JSTimeSeriesObject.ObjectData
segment
number
optional
4
Polygon shape (2 for plane, 3 for triangle, 4 for square, 5 for pentagon)
rotate
number
optional
0
Object rotation direction (0,360: north, 90: east, 180: south, 270: west)
horizontal
number
optional
5.0
Object size setting during create API operation (horizontal)
vertical
number
optional
5.0
Object size setting during create API operation (vertical)
shape
number
optional
0
Object shape (0: polygon, 1: plane)
JSTimeSeriesObject.AreaData
JSTimeSeriesObject.ImageData
width
number
Image width.
height
number
Image height.
image
array
Image pixel data (pixel data obtained from CanvasRenderingContext2D.getImageData() on a canvas).
JSTimeSeriesObject.Legend
Legend data. Store multiple data and color items grouped together in an array.
data
number
Size of the legend.
Last updated