mapwingis 动态加载与渲染

1、在mapwingis中进行渲染主要是利用

Shapefile Class  中的  Categories属性,设置相应的实例进行不同的渲染。

该属性,获取或设置与shapefile关联的shapefileCategories类的实例。

属性不能设置为空(始终有一个与shapefile关联的实例shapefilecategories类)。

2、使用该属性做相应的渲染和分类时,有一个枚举必须注意。

ctNaturalBreaks   //自然断裂

The position of breaks are chosen to minimize the sum of square deviations within categories. The algorithm is heuristic, therefore gives only approximation of the real position of natural breaks. Nevertheless it's recommended as a default classification suitable in most cases.//选择断裂位置是为了最小化类别内的平方偏差之和。该算法是启发式的,因此只给出自然断裂的实际位置的近似值。不过,建议将其作为适用于大多数情况的默认分类。(但不适用于动态渲染)

ctUniqueValues //唯一值

A category will be created for each unique value of the field.//将为字段的每个唯一值创建一个类别

ctEqualIntervals //等间隔

To define the upper bound of a category the expression will be used: (IndexOfCategory + 1) * (MaxValue - MinValue) / NumberOfClasses.//要定义类别的上限,将使用表达式(IndexOfCategory + 1) * (MaxValue - MinValue) / NumberOfClasses

ctEqualCount //数量相等

The bounds of categories will be chosen in such a manner that each of them will have equal number of objects which belongs to it. In practice this condition is rarely achieved because of the rounding problems, objects with the same values, etc.//类别边界的选择方式应确保每个类别所属对象的数量相等。实际上,由于舍入问题、具有相同值的对象等,很少实现这种情况。

ctStandardDeviation //标准偏差

Six categories will be created, the range of each of them will be equal to the standard deviation of the field data. Three categories will hold values greater then mean and three - lower than it.//将创建六个类别,每个类别的范围将等于现场数据的标准偏差。三个类别的值比平均值大,比平均值低三个。

ctEqualSumOfValues //相等值

The sum values of the classification field will be roughly the same for all categories.//分类字段的总和对于所有类别都大致相同

3、最终的效果。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ipqchase85

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值