<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Consuming Server Observation Service in ArcGIS API for JavaScript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/consuming-server-observation-service-in-arcgis-api/m-p/617299#M57702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.opengeospatial.org/standards/sos" rel="nofollow noopener noreferrer" target="_blank"&gt;Sensor Observation Service (SOS) is an OGC Standard&lt;/A&gt;&lt;SPAN&gt; that is becoming popular for sharing time series data. It is related to &lt;/SPAN&gt;&lt;A href="http://www.waterml2.org/" rel="nofollow noopener noreferrer" target="_blank"&gt;Water Markup Language 2 (WML2)&lt;/A&gt;&lt;SPAN&gt;, which I need to work with too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://sensorweb.demo.52north.org/52n-sos-webapp/client" rel="nofollow noopener noreferrer" target="_blank"&gt;demos from 52 North&lt;/A&gt;&lt;SPAN&gt; to get an idea what it's all about.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me consume SOS in ArcGIS API for JavaScript applications? At least the important parts of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know attributes are not meant to be array but hey, it's a start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[
{ geometry: {"x" : -118.15, "y" : 33.80, "spatialReference" : {"wkid" : 4326}},
&amp;nbsp;&amp;nbsp; attributes: {'kvp': [['2014-06-17', 1.1], ['2014-06-18', 1.4]]}
},
{ geometry: {"x" : -117.15, "y" : 34.80, "spatialReference" : {"wkid" : 4326}},
&amp;nbsp;&amp;nbsp; attributes: {'kvp': [['2014-06-17', 1.0], ['2014-06-18', 1.2]]}
},
...
]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There has been some effort to get this working with OpenLayers.js (and &lt;/SPAN&gt;&lt;A href="https://github.com/52North/sos-js" rel="nofollow noopener noreferrer" target="_blank"&gt;SOS.js&lt;/A&gt;&lt;SPAN&gt; that uses open layers) but I am not sure if that is a point so start from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas and examples(!) would really help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Filip.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:23:07 GMT</pubDate>
    <dc:creator>FilipKrál</dc:creator>
    <dc:date>2021-12-12T02:23:07Z</dc:date>
    <item>
      <title>Consuming Server Observation Service in ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/consuming-server-observation-service-in-arcgis-api/m-p/617299#M57702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.opengeospatial.org/standards/sos" rel="nofollow noopener noreferrer" target="_blank"&gt;Sensor Observation Service (SOS) is an OGC Standard&lt;/A&gt;&lt;SPAN&gt; that is becoming popular for sharing time series data. It is related to &lt;/SPAN&gt;&lt;A href="http://www.waterml2.org/" rel="nofollow noopener noreferrer" target="_blank"&gt;Water Markup Language 2 (WML2)&lt;/A&gt;&lt;SPAN&gt;, which I need to work with too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://sensorweb.demo.52north.org/52n-sos-webapp/client" rel="nofollow noopener noreferrer" target="_blank"&gt;demos from 52 North&lt;/A&gt;&lt;SPAN&gt; to get an idea what it's all about.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me consume SOS in ArcGIS API for JavaScript applications? At least the important parts of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know attributes are not meant to be array but hey, it's a start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[
{ geometry: {"x" : -118.15, "y" : 33.80, "spatialReference" : {"wkid" : 4326}},
&amp;nbsp;&amp;nbsp; attributes: {'kvp': [['2014-06-17', 1.1], ['2014-06-18', 1.4]]}
},
{ geometry: {"x" : -117.15, "y" : 34.80, "spatialReference" : {"wkid" : 4326}},
&amp;nbsp;&amp;nbsp; attributes: {'kvp': [['2014-06-17', 1.0], ['2014-06-18', 1.2]]}
},
...
]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There has been some effort to get this working with OpenLayers.js (and &lt;/SPAN&gt;&lt;A href="https://github.com/52North/sos-js" rel="nofollow noopener noreferrer" target="_blank"&gt;SOS.js&lt;/A&gt;&lt;SPAN&gt; that uses open layers) but I am not sure if that is a point so start from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas and examples(!) would really help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Filip.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/consuming-server-observation-service-in-arcgis-api/m-p/617299#M57702</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2021-12-12T02:23:07Z</dc:date>
    </item>
  </channel>
</rss>

