span8
span4
测量距离是 - 如测量领域 - 在FME非常简单。它要求只使用一个变压器;该LengthCalculator。这里,例如,用户是测量动脉道路特征长度:
兰的gth of each road feature is measured and added to the feature as an attribute called RoadLength.
长度在所使用的坐标系的单位测量。例如,如果源数据是基于米(米)的坐标系则在米LengthCalculator返回值。
There are some simple variations and issues to be aware of.
遵循这些步骤的如何计算的线性特征的长度的示例。
1.启动FME工作台和产生一个工作区从ESRI的shapefile格式返回给ESRI的shapefile格式的附加源数据翻译。选择输出不同的文件夹。
2.添加读写器功能类型之间的LengthCalculator变压器
3. Open the parameters dialog for the LengthCalculator transformer. Ensure the Length Attribute parameter is set to write an attribute called RoadLength
4.打开参数对话框作家特征类型。单击属性选项卡,添加一个名为float类型的RoadLength新属性
5.任选地,LengthCalculator后添加AttributeRounder变压器。打开它的参数对话框,然后将其设置为RoadLength属性四舍五入至小数点后3位。
6.保存并运行工作区。检查输出。通知与价值观的新RoadLength属性四舍五入至小数点后3位
为什么不通过计算道路的平均长度借此例子一步?您可以使用StatisticsCalculator计算平均值所有RoadLength值。
©2019安全亚搏在线软件公司|法律