Skip to main content
Question

Generating Features for Each Vertex from JSON Line

  • June 17, 2026
  • 2 replies
  • 44 views

arash_hokm
Contributor
Forum|alt.badge.img+8

Hi everyone,

I have a JSON file that represents a line geometry containing 5 vertices (points). I would like to create a separate feature (record) for each vertex so that I can then generate vertices and rebuild the line geometry from them.

I tried using the ListExplorer to extract the X and Y coordinates as attributes. However, the issue is that X and Y are only extracted for a single feature, and the other vertices are not created as separate records.

Could you please take a look at the attached image for better understanding of my workflow?

Any suggestions on how to correctly create a feature for each vertex would be greatly appreciated.

Thank you

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+66

Can you share a sample of the JSON file, the how to depends on the file structure and can be anything.

The transformers I use when parsing JSON are usually JSONFragmenter and JSONExtractor. I never used a reader to do that.


arash_hokm
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • June 17, 2026

@nielsgerrits I am sharing the data content here because uploading the file was not possible.

!--scriptorstartfragment-->

{

  "helpObjects": {

    "helpLines": [],

    "helpCircles": []

  },

  "codiObjects": {

    "codiPolygons": [],

    "codiMultilines": [

      {

        "x": [

          678035.0995884774,

          677952.375308642,

          677901.8699588478,

          677834.8197530864,

          677748.612345679

        ],

        "y": [

          5404052.655967078,

          5404039.594238683,

          5404036.981893004,

          5404043.077366254,

          5404045.689711934

        ],

        "layer": "created",

        "displayNormalConfiguration": {

          "borderColor": "rgb(255,150,0)",

          "borderWidth": "1",

          "borderOpacity": 1,

          "borderType": "solid"

        }

      }

    ],

    "codiSymbols": [],

    "codiTextSymbols": [],

    "codiTexts": [],

    "codiCircles": [],

    "codiImages": [],

    "codiBackgroundImages": [],

    "codiDimension": []

  }

}

!--scriptorendfragment-->