Hoppa till huvudinnehållet

Get Geometry From JSON - TypeError: k.geometry is not iterable

Kommentarer

6 kommentarer

  • Berend Veldkamp

    Could you add the exact input of the GeometryFromJson activity?

    1
  • Niluka Munasinghe

    Thanks for the response, Berend.

    0
  • Berend Veldkamp

    Sorry, but that's hardly readable for my eyes, could you please copy/paste as text? This will also prevent me from having to copy this character by character

    0
  • Niluka Munasinghe

    ={"paths":[[$CEU.state.startE.value, $CEU.state.startN.value], [$CEU.state.endE.value,  $CEU.state.endN.value]], "spatialReference":{"wkid":7856}, "type":$inputFeature.result.geometryType}

    I pass the values from the different form elements to create the geometry object.

    0
  • Berend Veldkamp

    Maybe there's something wrong with the values. If I fill in some random numbers it works fine

    ={
        "paths": [
            [1, 2],
            [3, 4]
        ],
        "spatialReference": {
            "wkid": 7856
        },
        "type": "polyline"
    }

    Perhaps you could use the ConvertToJson activity just before GeometryFromJson so see what the actual values are?

     

    1
  • Niluka Munasinghe

    Thanks once again for your assistance, Berend. I mistakenly passed string values instead of decimals, so I had to use the parse number activities prior to using the geometry from JSON activity.

     

    1

Du måste logga in om du vill lämna en kommentar.