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…

事前にロードされたデータが無い場合、ルートとなる JSON Object を新規作成し、配列を追加します。

その場合、JSON Pointer はルート直下を指定すること。具体例として以下記述は可能ですが、

"/NewArray"

以下記述例はエラーになります。

"/test/NewArray"

/NewArray は配列型であることが分かっていますが、/test はデータ構造型ではあるが配列かオブジェクトか推測はできません。


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:

パス指定先に他のデータがあった場合、既存データは上書きによって配列に置き換えられます。