<?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 Showing a FlowRenderer for a COG image in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-a-flowrenderer-for-a-cog-image/m-p/1684259#M88133</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I’ve been experimenting&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;ImageryTileLayer&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;+ COG data in the JavaScript Maps&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;SDK in order to hopefully encode and show flow.&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN&gt;My COG here (derived from NOAA GFS WAVE data): &lt;A href="https://jonnydawe.github.io/.well-known/wave_uv_cog.tif" target="_blank" rel="noopener"&gt;https://jonnydawe.github.io/.well-known/wave_uv_cog.tif&lt;/A&gt; encodes U/V components&amp;nbsp;(Band 1 = U, Band 2 = V).&amp;nbsp;The data&amp;nbsp;itself works fine, but&amp;nbsp;&lt;SPAN class=""&gt;out of the box it is not possible to get a flow renderer to work without some tweaks. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;The issue is highlighed in the flowRenderer docs: "the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/imagery/raster-dataset-properties.htm" target="_blank" rel="noopener"&gt;source type of your raster dataset&lt;/A&gt;&amp;nbsp;must be&amp;nbsp;Vector-UV&amp;nbsp;or&amp;nbsp;Vector-MagDir"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN class=""&gt;I notice that my COG&amp;nbsp;is treated as&amp;nbsp;&lt;SPAN class=""&gt;generic&lt;/SPAN&gt;&amp;nbsp;data type&lt;/SPAN&gt;, not&amp;nbsp;&lt;SPAN class=""&gt;vector-uv&lt;/SPAN&gt;, so the renderer does not work....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However...&amp;nbsp;&lt;/STRONG&gt;I notice that I can just override the datatype by setting its keyProperties (albeit on an internal private property...)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;imageryLayer.load().then(() =&amp;gt; {
  const rasterInfo = imageryLayer.raster.rasterInfo;
  const existingKeyProperties = rasterInfo.keyProperties ?? {};

  rasterInfo.keyProperties = {
    ...existingKeyProperties,
    DataType: "Vector-UV",
  };

  console.log("RasterInfo dataType:", rasterInfo.dataType);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result is a flow renderer working with a COG:&amp;nbsp;&lt;A href="https://codepen.io/Jonathan-Dawe/pen/XJKGmmg?editors=1000" target="_blank"&gt;https://codepen.io/Jonathan-Dawe/pen/myEoboQ?editors=1000&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the layer to internally identify the COG as a Vector-UV layer without having to override the internal property like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Feb 2026 12:32:04 GMT</pubDate>
    <dc:creator>JonathanDawe_BAS</dc:creator>
    <dc:date>2026-02-13T12:32:04Z</dc:date>
    <item>
      <title>Showing a FlowRenderer for a COG image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-a-flowrenderer-for-a-cog-image/m-p/1684259#M88133</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I’ve been experimenting&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;ImageryTileLayer&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;+ COG data in the JavaScript Maps&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;SDK in order to hopefully encode and show flow.&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN&gt;My COG here (derived from NOAA GFS WAVE data): &lt;A href="https://jonnydawe.github.io/.well-known/wave_uv_cog.tif" target="_blank" rel="noopener"&gt;https://jonnydawe.github.io/.well-known/wave_uv_cog.tif&lt;/A&gt; encodes U/V components&amp;nbsp;(Band 1 = U, Band 2 = V).&amp;nbsp;The data&amp;nbsp;itself works fine, but&amp;nbsp;&lt;SPAN class=""&gt;out of the box it is not possible to get a flow renderer to work without some tweaks. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;The issue is highlighed in the flowRenderer docs: "the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/imagery/raster-dataset-properties.htm" target="_blank" rel="noopener"&gt;source type of your raster dataset&lt;/A&gt;&amp;nbsp;must be&amp;nbsp;Vector-UV&amp;nbsp;or&amp;nbsp;Vector-MagDir"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN class=""&gt;I notice that my COG&amp;nbsp;is treated as&amp;nbsp;&lt;SPAN class=""&gt;generic&lt;/SPAN&gt;&amp;nbsp;data type&lt;/SPAN&gt;, not&amp;nbsp;&lt;SPAN class=""&gt;vector-uv&lt;/SPAN&gt;, so the renderer does not work....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However...&amp;nbsp;&lt;/STRONG&gt;I notice that I can just override the datatype by setting its keyProperties (albeit on an internal private property...)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;imageryLayer.load().then(() =&amp;gt; {
  const rasterInfo = imageryLayer.raster.rasterInfo;
  const existingKeyProperties = rasterInfo.keyProperties ?? {};

  rasterInfo.keyProperties = {
    ...existingKeyProperties,
    DataType: "Vector-UV",
  };

  console.log("RasterInfo dataType:", rasterInfo.dataType);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result is a flow renderer working with a COG:&amp;nbsp;&lt;A href="https://codepen.io/Jonathan-Dawe/pen/XJKGmmg?editors=1000" target="_blank"&gt;https://codepen.io/Jonathan-Dawe/pen/myEoboQ?editors=1000&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the layer to internally identify the COG as a Vector-UV layer without having to override the internal property like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 12:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-a-flowrenderer-for-a-cog-image/m-p/1684259#M88133</guid>
      <dc:creator>JonathanDawe_BAS</dc:creator>
      <dc:date>2026-02-13T12:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Showing a FlowRenderer for a COG image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-a-flowrenderer-for-a-cog-image/m-p/1684337#M88138</link>
      <description>&lt;P&gt;I've discovered that if I set it in the metadata of the COG,&amp;nbsp;&lt;SPAN&gt;"DataType"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Vector-UV", then it it also works! However I still get an error about it not matching the required type because I have more than two bands!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 15:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-a-flowrenderer-for-a-cog-image/m-p/1684337#M88138</guid>
      <dc:creator>JonathanDawe_BAS</dc:creator>
      <dc:date>2026-02-13T15:37:50Z</dc:date>
    </item>
  </channel>
</rss>

