ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

ArcGIS Server&ArcGIS API for JS之GenerateRenderer

2021-03-25 10:06:21  阅读:271  来源: 互联网

标签:definition classificationDef 渲染器 classification JS ArcGIS API table operation


http://localhost:6080/arcgis/sdk/rest/index.html#//02ss0000001v000000

Generate Renderer (Map Service\Layer)

  • URL:http:// <layer-url>/generateRenderer
  • Required Capability:Map
  • Version Introduced:10.1

Description

generateRenderer operation is performed on a layer / table resource. This operation groups data using the supplied classificationDef (classification definition) and an optional where clause. The result is a renderer object. Use baseSymbol and colorRamp to define the symbols assigned to each class. If the operation is performned on a table, the result is a renderer object containing the data classes and no symbols.

生成渲染器是执行在layer图层/表table资源上。该操作会对数据进行分组,使用classificationDef(分类定义)和一个可选的where子句。其结果是一个渲染器对象。使用baseSymbol和colorRamp定义分配给每个类的符号。如果该操作是执行在table上,结果是一个渲染器对象,只有数据类别而没有符号。

You can provide arguments to the generateRenderer operation as query parameters defined in the parameters table below.

您可以将参数作为在下面的参数表中定义的查询参数提供给generateRenderer操作。

Note:

When generating a class breaks renderer map server uses maxSampleSize configuration property set on the map service to determine the number of records to sample. In rare cases these classes might not include the minimum or maximum value in the data.

生成类中断渲染器映射服务器时,使用映射服务上设置的maxSampleSize配置属性来确定要采样的记录数。在少数情况下,这些类可能不包括数据中的最小或最大值。

f

Description: The response format. The default response format is html.

Values: html | json

classificationDef

Description: The definition using which the parameter is generated.

 

Note:

Use either one of ClassBreaks or UniqueValue classification definition.

Syntax: classificationDef = classification definition

 

Example:

//classBreaks classification definition
classificationDef = {
  "type": "classBreaksDef",
  "classificationField": "POP2010",
  "classificationMethod": "esriClassifyNaturalBreaks",
  "breakCount": 5,
  "normalizationType": "esriNormalizeByField",
  "normalizationField": "Area"
}

//uniqueValue classification definition with symbology
classificationDef = {
  "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"
  }
}

标签:definition,classificationDef,渲染器,classification,JS,ArcGIS,API,table,operation
来源: https://blog.csdn.net/nmj2008/article/details/115197446

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有