<?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 SampleServer6 - Feature Server Generate Renderer operation in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sampleserver6-feature-server-generate-renderer/m-p/1227848#M4314</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;For a school project I need to make use of the Arcgis REST API. At this moment I am struggling with the generate renderer operation. From the documentation I know that you have to pass a classification definition that can look like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "type": "classBreaksDef",
  "classificationField": "&amp;lt;field name&amp;gt;",
  "classificationMethod": "&amp;lt;esriClassifyNaturalBreaks | esriClassifyEqualInterval | esriClassifyQuantile | 
				esriClassifyStandardDeviation | esriClassifyGeometricalInterval&amp;gt;",
  "breakCount": &amp;lt;count&amp;gt;,
  "standardDeviationInterval": &amp;lt; 1 | 0.5 | 0.33 | 0.25 &amp;gt;, //use when classificationMethod is esriClassifyStandardDeviation.
  
  //optional. use to normalize class breaks
  "normalizationType": "&amp;lt;esriNormalizeByField | esriNormalizeByLog | esriNormalizeByPercentOfTotal&amp;gt;",
  "normalizationField": "&amp;lt;field name&amp;gt;", //use when normalizationType is esriNormalizeByField
  
  //optional. use to define symbol for classes
  "baseSymbol": &amp;lt;symbol&amp;gt;,
  "colorRamp": &amp;lt;colorRamp&amp;gt;
}

{
  "type": "uniqueValueDef",
  "uniqueValueFields": ["&amp;lt;field name 1 &amp;gt;","&amp;lt;field name 2&amp;gt;","&amp;lt;field name 3&amp;gt;"],
  "fieldDelimiter": "field_delimiter_character",
  
  //optional. use to define symbol for unique values
  "baseSymbol": &amp;lt;symbol&amp;gt;,
  "colorRamp": &amp;lt;colorRamp&amp;gt;
}

//uniqueValue classification definition with symbology
{
  "type": "uniqueValueDef",
  "uniqueValueFields": ["Type", "AdminClass"],
  "fieldDelimiter": ",",
  "baseSymbol":
  {
    "type": "esriSLS",
    "style": "esriSLSSolid",
    "width": 2
  }
  "colorRamp":
  {
    "type": "algorithmic",
    "fromColor": [115,76,0,255],
    "toColor": [255,25,86,255],
    "algorithm": "esriHSVAlgorithm"
  }
}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I am not sure what the &amp;lt;fieldName&amp;gt; value should be. Everytime I try to pass in a value I get an error saying it could not find one or more unique value fields.&lt;/P&gt;&lt;P&gt;for reference see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0/generateRenderer?classificationDef=%7B%0D%0A++%22type%22%3A+%22uniqueValueDef%22%2C%0D%0A++%22uniqueValueFields%22%3A+%5B%22id%22%5D%2C%0D%0A++%22fieldDelimiter%22%3A+%22%2C%22%2C%0D%0A++%22baseSymbol%22%3A%0D%0A++%7B%0D%0A++++%22type%22%3A+%22esriSLS%22%2C%0D%0A++++%22style%22%3A+%22esriSLSSolid%22%2C%0D%0A++++%22width%22%3A+2%0D%0A++%7D%0D%0A%7D&amp;amp;where=&amp;amp;gdbVersion=&amp;amp;async=true&amp;amp;f=html" target="_self"&gt;sampleserver6&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/generate-renderer.htm" target="_self"&gt;Generate Renderer documentation page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/common-data-types/classification-objects.htm" target="_self"&gt;Classification definition documentation page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 12:27:52 GMT</pubDate>
    <dc:creator>Ahmed_S</dc:creator>
    <dc:date>2022-11-02T12:27:52Z</dc:date>
    <item>
      <title>SampleServer6 - Feature Server Generate Renderer operation</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sampleserver6-feature-server-generate-renderer/m-p/1227848#M4314</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;For a school project I need to make use of the Arcgis REST API. At this moment I am struggling with the generate renderer operation. From the documentation I know that you have to pass a classification definition that can look like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "type": "classBreaksDef",
  "classificationField": "&amp;lt;field name&amp;gt;",
  "classificationMethod": "&amp;lt;esriClassifyNaturalBreaks | esriClassifyEqualInterval | esriClassifyQuantile | 
				esriClassifyStandardDeviation | esriClassifyGeometricalInterval&amp;gt;",
  "breakCount": &amp;lt;count&amp;gt;,
  "standardDeviationInterval": &amp;lt; 1 | 0.5 | 0.33 | 0.25 &amp;gt;, //use when classificationMethod is esriClassifyStandardDeviation.
  
  //optional. use to normalize class breaks
  "normalizationType": "&amp;lt;esriNormalizeByField | esriNormalizeByLog | esriNormalizeByPercentOfTotal&amp;gt;",
  "normalizationField": "&amp;lt;field name&amp;gt;", //use when normalizationType is esriNormalizeByField
  
  //optional. use to define symbol for classes
  "baseSymbol": &amp;lt;symbol&amp;gt;,
  "colorRamp": &amp;lt;colorRamp&amp;gt;
}

{
  "type": "uniqueValueDef",
  "uniqueValueFields": ["&amp;lt;field name 1 &amp;gt;","&amp;lt;field name 2&amp;gt;","&amp;lt;field name 3&amp;gt;"],
  "fieldDelimiter": "field_delimiter_character",
  
  //optional. use to define symbol for unique values
  "baseSymbol": &amp;lt;symbol&amp;gt;,
  "colorRamp": &amp;lt;colorRamp&amp;gt;
}

//uniqueValue classification definition with symbology
{
  "type": "uniqueValueDef",
  "uniqueValueFields": ["Type", "AdminClass"],
  "fieldDelimiter": ",",
  "baseSymbol":
  {
    "type": "esriSLS",
    "style": "esriSLSSolid",
    "width": 2
  }
  "colorRamp":
  {
    "type": "algorithmic",
    "fromColor": [115,76,0,255],
    "toColor": [255,25,86,255],
    "algorithm": "esriHSVAlgorithm"
  }
}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I am not sure what the &amp;lt;fieldName&amp;gt; value should be. Everytime I try to pass in a value I get an error saying it could not find one or more unique value fields.&lt;/P&gt;&lt;P&gt;for reference see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0/generateRenderer?classificationDef=%7B%0D%0A++%22type%22%3A+%22uniqueValueDef%22%2C%0D%0A++%22uniqueValueFields%22%3A+%5B%22id%22%5D%2C%0D%0A++%22fieldDelimiter%22%3A+%22%2C%22%2C%0D%0A++%22baseSymbol%22%3A%0D%0A++%7B%0D%0A++++%22type%22%3A+%22esriSLS%22%2C%0D%0A++++%22style%22%3A+%22esriSLSSolid%22%2C%0D%0A++++%22width%22%3A+2%0D%0A++%7D%0D%0A%7D&amp;amp;where=&amp;amp;gdbVersion=&amp;amp;async=true&amp;amp;f=html" target="_self"&gt;sampleserver6&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/generate-renderer.htm" target="_self"&gt;Generate Renderer documentation page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/common-data-types/classification-objects.htm" target="_self"&gt;Classification definition documentation page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 12:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sampleserver6-feature-server-generate-renderer/m-p/1227848#M4314</guid>
      <dc:creator>Ahmed_S</dc:creator>
      <dc:date>2022-11-02T12:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: SampleServer6 - Feature Server Generate Renderer operation</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sampleserver6-feature-server-generate-renderer/m-p/1229098#M4316</link>
      <description>&lt;P&gt;The unique value filed should be one of these:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ahmed_S_0-1667817851228.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55382i8CDB0DB72DAACF68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ahmed_S_0-1667817851228.png" alt="Ahmed_S_0-1667817851228.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I got it to work putting one of the fields above.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 10:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sampleserver6-feature-server-generate-renderer/m-p/1229098#M4316</guid>
      <dc:creator>Ahmed_S</dc:creator>
      <dc:date>2022-11-07T10:44:51Z</dc:date>
    </item>
  </channel>
</rss>

