CityEngine具备强大的实时数据统计与分析功能,数据运算与统计可以对规则文件当中的场景模型要素进行实时统计,比如建筑类型的面积统计、绿化率、建筑密度甚至是精细化规则当中每个建筑的窗户数量、停车场停车位数量统计等,这些数量统计基本通过函数就可以完成计算,有了数据我们便可以对数据进行数据可视化表达完成分析。
CityEngine的数据统计分析与数据可视化是通过一个函数“report”和一个窗口工具–dashboards功能来实现,下面我们分别看下他们的功能用法。
report函数
Synopsis
report(key, value)
Parameters
- key (string)
A string which defines a key for a report collection. Keys can be grouped with the name sparator ‘‘.‘‘ - value (float | bool | string)
Value (or variable / shape attribute) to add to the collection.
The report operation permits collection of arbitrary data during model generation. The operation takes two parameters: a key of type string and a value of any type. The key and value type define a collection to which the value is added on every invocation. After generation, the collections are assessed statistically and displayed in the Reports shelf in the Inspector.
翻译
概要
报告(键,值)
参量
◾键(字符串)
一个字符串,它定义报告集合的键。密钥可以与名称分隔符``。‘‘分组
◾value(浮点数| bool |字符串)
要添加到集合中的值(或变量/形状属性)。
report函数允许在模型生成期间收集任意数据。 该操作采用两个参数:字符串类型的键和任何类型的值。 键和值类型定义一个集合,该集合将在每次调用时将值添加到该集合。 生成后,对集合进行统计评估,并显示在检查器的“报告”架子中。