MvtUtil: Create New JSON Array, Export XY Coords from RefVec.


using JSON Pointer..

ASTER::ACTION::JSON::MvtUtil: Create a new 2D JSON array & export the XY coordinates from the Reference Vector

Specify a path and export the XY coordinates from the Reference Vector into a two-dimensional JSON array.

Create a new JSON array (two-dimensional array) for existing JSON data loaded into memory.

In the absence of preloaded JSON data, read more…

If there is no pre-loaded data, create a new JSON Object at the root and add an array.

In that case, specify the JSON Pointer directly under the root. The following description is possible:

"/NewArray"

The following description will result in an error:

"/test/NewArray"

/NewArray is known to be an array, but /test is a data structure, so it cannot be inferred whether it is an array or an object.


Parameter

Specify the path for creating a new JSON array using a JSON Pointer.

"/expFrmRefVec"

Example result when there are Four XY coordinate pairs:

{
    "expFrmRefVec":
    [
        [100, 100],
        [100, 200],
        [200, 100],
        [200, 200]
    ]
}
◆◆ <!-- Imagine this kind of arrangement -->
◆◆

Caution:

If other data exists at the specified path, the existing data will be replaced by the array through overwriting.