<?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 Re: How to render a military symbol on the map using SIDC Code in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600127#M1833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay so after trying some codes from the incomplete documentations and trying to pass the symbol id attribute using different key names i achieved what i was trying to do. goes like:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a&amp;nbsp;&lt;STRONG&gt;DictionarySymbolStyle&lt;/STRONG&gt; by passing the mil2525d.stylx file path.&lt;/LI&gt;&lt;LI&gt;load the dictionary using&amp;nbsp;&lt;STRONG&gt;DictionarySymbolStyle.loadAsync()&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Create a&amp;nbsp;&lt;STRONG&gt;HashMap&lt;/STRONG&gt; and add a key "sidc" with the value as the 20 digit Symbol Identification Code (SIDC) to the map.&lt;/LI&gt;&lt;LI&gt;Use the&amp;nbsp;&lt;STRONG&gt;getSymbolAsync()&lt;/STRONG&gt; method of the&amp;nbsp;&lt;STRONG&gt;DictionarySymbolStyle&lt;/STRONG&gt; class and pass in the map of attributes. This will search and create a symbol from the .stylx file using the code you pass.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;File stylxFile = new File(System.getProperty("user.dir") + "\\mil2525d.stylx");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;DictionarySymbolStyle symbolDictionary = DictionarySymbolStyle.createFromFile(stylxFile.getAbsolutePath());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;symbolDictionary.loadAsync();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Map&amp;lt;String, Object&amp;gt; attributes = new HashMap&amp;lt;&amp;gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;attributes.put("sidc", 10000000000000000000); // pass here a unique 20 digit Symbol ID Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; Symbol s = symbolDictionary.getSymbolAsync(attributes).get();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; } catch (InterruptedException e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; e.printStackTrace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; System.out.println("InterruptedException - failed to symbolize SIDC: "+ sidc);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; } catch (ExecutionException e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; e.printStackTrace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; System.out.println("ExecutionException - failed to symbolize SIDC: "+ sidc);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is how we can create a&amp;nbsp;&lt;STRONG&gt;Symbol&lt;/STRONG&gt; using the MIL STD 2525D .stylx file. Now we can create a&amp;nbsp;&lt;STRONG&gt;Graphic&lt;/STRONG&gt; object by passing in the symbol and display it on the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 May 2020 12:10:04 GMT</pubDate>
    <dc:creator>FuzailSiddiqui</dc:creator>
    <dc:date>2020-05-30T12:10:04Z</dc:date>
    <item>
      <title>How to render a military symbol on the map using SIDC Code</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600124#M1830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello GeoNet community. I'm working on an application with ECDIS related functionality. I'm getting AIS and radar latitude longitude positions of targets (ships/water crafts etc) and i want to display them in the military symbolic standard MIL STD 2525D. Going through the documentation, i found that we are supposed to use a .stylx file to obtain a symbol however i cannot understand the code to do so. Its also mentioned here (&lt;A href="https://developers.arcgis.com/java/latest/guide/display-military-symbols-with-a-dictionary-renderer.htm"&gt;display-military-symbols-with-a-dictionary-renderer&lt;/A&gt;) that:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Military symbol dictionary styles allow you to choose whether to assemble and render the symbol based on a single attribute with a unique Symbol ID Code (SIC or SIDC) or based on a series of predefined attributes. For example, in MIL-STD-2525BC2, a SIC of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px 1px 1px; border-style: solid none solid solid; border-color: #efefef initial #efefef #efefef; padding: 0px 0px 0px 0.15rem;"&gt;SFSPCL---------&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;represents this symbol&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;IMG alt="A military symbol based on a symbol ID code." height="21" src="https://developers.arcgis.com/java/latest/guide/GUID-3876F864-1A9C-4655-A3CA-CE201F30DE3D-web.png" style="color: #4c4c4c; background-color: #ffffff; border: none;" title="A military symbol based on a symbol ID code." width="20" /&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I cannot find any sample code where i can understand the use of SIDC to obtain a symbol from the .stylx file and display it on the map. Please tell me how do i display a specific symbol using a specific SID Code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 06:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600124#M1830</guid>
      <dc:creator>FuzailSiddiqui</dc:creator>
      <dc:date>2020-05-28T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to render a military symbol on the map using SIDC Code</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600125#M1831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fuzail,&lt;/P&gt;&lt;P&gt;we have the document &lt;A class="link-titled" href="https://developers.arcgis.com/java/latest/guide/symbolize-data.htm#ESRI_SECTION2_65D51D79E3D64E6AB5FAE7CDA8C7760D" title="https://developers.arcgis.com/java/latest/guide/symbolize-data.htm#ESRI_SECTION2_65D51D79E3D64E6AB5FAE7CDA8C7760D"&gt;Symbolize data—ArcGIS Runtime SDK for Java | ArcGIS for Developers&lt;/A&gt; and the sample &lt;A class="link-titled" href="https://developers.arcgis.com/java/latest/java/sample-code/read-symbols-from-mobile-style-file/" title="https://developers.arcgis.com/java/latest/java/sample-code/read-symbols-from-mobile-style-file/"&gt;Read Symbols from Mobile Style File | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; to help with that.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gayle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 12:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600125#M1831</guid>
      <dc:creator>GayleYoung</dc:creator>
      <dc:date>2020-05-28T12:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to render a military symbol on the map using SIDC Code</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600126#M1832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, it's still not clear, how we pass the SIDC (Symbol Identification Code) or how do we passing some parameters (like modifier, graphic amplifier, text amplifier, frame, icon, fill etc)&amp;nbsp;to the dictionary and get a symbol using this code? There is no code available for that or any reference what are the possible parameters and values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 12:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600126#M1832</guid>
      <dc:creator>FuzailSiddiqui</dc:creator>
      <dc:date>2020-05-29T12:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to render a military symbol on the map using SIDC Code</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600127#M1833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay so after trying some codes from the incomplete documentations and trying to pass the symbol id attribute using different key names i achieved what i was trying to do. goes like:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a&amp;nbsp;&lt;STRONG&gt;DictionarySymbolStyle&lt;/STRONG&gt; by passing the mil2525d.stylx file path.&lt;/LI&gt;&lt;LI&gt;load the dictionary using&amp;nbsp;&lt;STRONG&gt;DictionarySymbolStyle.loadAsync()&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Create a&amp;nbsp;&lt;STRONG&gt;HashMap&lt;/STRONG&gt; and add a key "sidc" with the value as the 20 digit Symbol Identification Code (SIDC) to the map.&lt;/LI&gt;&lt;LI&gt;Use the&amp;nbsp;&lt;STRONG&gt;getSymbolAsync()&lt;/STRONG&gt; method of the&amp;nbsp;&lt;STRONG&gt;DictionarySymbolStyle&lt;/STRONG&gt; class and pass in the map of attributes. This will search and create a symbol from the .stylx file using the code you pass.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;File stylxFile = new File(System.getProperty("user.dir") + "\\mil2525d.stylx");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;DictionarySymbolStyle symbolDictionary = DictionarySymbolStyle.createFromFile(stylxFile.getAbsolutePath());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;symbolDictionary.loadAsync();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Map&amp;lt;String, Object&amp;gt; attributes = new HashMap&amp;lt;&amp;gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;attributes.put("sidc", 10000000000000000000); // pass here a unique 20 digit Symbol ID Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; Symbol s = symbolDictionary.getSymbolAsync(attributes).get();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; } catch (InterruptedException e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; e.printStackTrace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; System.out.println("InterruptedException - failed to symbolize SIDC: "+ sidc);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; } catch (ExecutionException e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; e.printStackTrace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; System.out.println("ExecutionException - failed to symbolize SIDC: "+ sidc);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is how we can create a&amp;nbsp;&lt;STRONG&gt;Symbol&lt;/STRONG&gt; using the MIL STD 2525D .stylx file. Now we can create a&amp;nbsp;&lt;STRONG&gt;Graphic&lt;/STRONG&gt; object by passing in the symbol and display it on the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2020 12:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600127#M1833</guid>
      <dc:creator>FuzailSiddiqui</dc:creator>
      <dc:date>2020-05-30T12:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to render a military symbol on the map using SIDC Code</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600128#M1834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for investigating Fuzail. &lt;/P&gt;&lt;P&gt;Perhaps the Api reference &lt;A class="link-titled" href="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/symbology/DictionarySymbolStyle.html" title="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/symbology/DictionarySymbolStyle.html"&gt;DictionarySymbolStyle (ArcGIS Runtime SDK for Java 100.8.0)&lt;/A&gt; was what was missing; it links to the &lt;A class="link-titled" href="http://solutions.arcgis.com/defense/help/military-symbology-styles/" title="http://solutions.arcgis.com/defense/help/military-symbology-styles/"&gt;Military Symbology Styles | ArcGIS Solutions for Defense&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gayle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 12:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-render-a-military-symbol-on-the-map-using/m-p/600128#M1834</guid>
      <dc:creator>GayleYoung</dc:creator>
      <dc:date>2020-06-01T12:01:33Z</dc:date>
    </item>
  </channel>
</rss>

