Select to view content in your preferred language

Data from SOE

560
1
Jump to solution
01-03-2014 05:21 AM
ShaningYu
Honored Contributor
I created a SOE application.  Through URL w/ parameters (e.g. like that:
http://localhost:6080/arcgis/rest/services/Test/RailLRSDef/MapServer/exts/SOE_LRSSegment/Segment_Ope...), I got the returned results like that (marked as Scenario A):
{ "Geometry": [  {  "paths": [  [
     [201394.01178484457, 173661.08635829584 ],
     ...
    ]  ] }  ]  }
if I load this data as
  var polylineJson = <above>;
  var polyline = new esri.geometry.Polyline(polylineJson);
The polyline.paths contains nothing.  If the data above is changed to (marked as Scenario B)
  {  "paths": [  [
     [201394.01178484457, 173661.08635829584 ],
     ...
    ]  ] }
The polyline.paths will be loaded with all of the point values.
How can change the data format from Scenario A to Scenario B programally?  Thanks.
0 Kudos
1 Solution

Accepted Solutions
ShaningYu
Honored Contributor
I have verified the returned data from SOE through JSon validator at http://jsonlint.com/.  The returned values are valid.  So, I will close this thread.

View solution in original post

0 Kudos
1 Reply
ShaningYu
Honored Contributor
I have verified the returned data from SOE through JSon validator at http://jsonlint.com/.  The returned values are valid.  So, I will close this thread.
0 Kudos