Consuming Server Observation Service in ArcGIS API for JavaScript

635
0
06-18-2014 03:12 AM
FilipKrál
Occasional Contributor III
Hello,
Sensor Observation Service (SOS) is an OGC Standard that is becoming popular for sharing time series data. It is related to Water Markup Language 2 (WML2), which I need to work with too.
See demos from 52 North to get an idea what it's all about.

Can you help me consume SOS in ArcGIS API for JavaScript applications? At least the important parts of it.

It seems to me that we could subclass the Graphics Layer, or maybe even the FeatureLayer and get the data from SOS as something like an array of features where attributes of each feature would contain a an array with the time series.
I know attributes are not meant to be array but hey, it's a start.
[
{ geometry: {"x" : -118.15, "y" : 33.80, "spatialReference" : {"wkid" : 4326}},
   attributes: {'kvp': [['2014-06-17', 1.1], ['2014-06-18', 1.4]]}
},
{ geometry: {"x" : -117.15, "y" : 34.80, "spatialReference" : {"wkid" : 4326}},
   attributes: {'kvp': [['2014-06-17', 1.0], ['2014-06-18', 1.2]]}
},
...
]


I did something like with OGS WMS by subclassing esri.layers.DynamicMapServiceLayer and overriding the getImageUrl method but I don't know how to go about feature layer.

There has been some effort to get this working with OpenLayers.js (and SOS.js that uses open layers) but I am not sure if that is a point so start from.

Any ideas and examples(!) would really help.
Filip.
0 Kudos
0 Replies