斯潘8
span4
上一步:选定特征距离内的多边形| Next:生成坡度和坡向
In this tutorial,you will learn how to find the nearest features using point and polygon datasets.此操作的目的是根据特征之间的直线距离(即从一个兴趣点开始,比如温哥华的一所学校,找到最近的公园多边形功能)。In order to accomplish this,你需要使用邻居探测器变压器。The NeighborFinder is typically used to identify nearest features,特定距离内的特征,或者在某个方向上找到最近的特征。
在这种情况下,you are interested in determining where the nearest park with washroom facilities is from the starting point,亚历山大学院。在这个练习中,您将学习如何基于属性值查询数据集,并使用点和多边形数据集执行简单的空间分析。有关查找最近邻点和计算多个特征的距离和方位的深入教程,见确定最近的邻居article.
测试仪将用于从数据集中“选择”一个学校。
这将显示两个按钮,省略号按钮和下拉列表。
To find out more about duplicated transformers,见Desktop Basic Course Manual.
注意:通过右键单击变压器并从菜单中选择“复制”,FME允许您复制画布上当前的变压器。或者,您可以选择变压器并使用快捷方式ctrl+d复制所选变压器。So far,您的工作区应类似下面提供的屏幕截图:
第二个测试仪将用于查询Parks数据集,因此只能返回具有指定属性的特性。您将设置两个使用“所有测试(和)”通过标准的测试条件-所有测试都必须通过才能将输入功能分类为“通过”。有关测试仪和通过标准的更多信息,见Tester Documentation.
左值 | 算符 | Right Value |
洗手间 | = | Y |
狗窝 | = | n |
确保测试仪参数对话框与下面的屏幕截图匹配,然后单击确定接受更改并关闭对话框。
在这种情况下,邻居查找程序的默认参数起作用,因为它只查找1个邻居。
Note: To correctly analyze spatial relationships,所有特征应在同一坐标系中。TheReprojector对于在工作区内重新投影功能可能很有用。然而,在这种情况下,both features are already in the same coordinate system.
通过按升序数字排序,the nearest features will be placed at the top of the list in the attribute table.
由于您对查找最近的特征感兴趣,因此将按数字升序根据距离属性进行排序。
Attribute | Alpha/Num | 秩序 |
γ距离 | 数字的 | 提升 |
在这种情况下,the Sampler transformer is used to select the first record in the attribute table (i.e.the nearest feature since we just sorted by ascending order on the _distance attribute).
After running the workspace,最近公园的输出将显示在FME数据检查员中,地图上有一个点供亚历山大学院参考。If you wish to save the output,you can either connect a writer to the Sampler:Sampled port or by using the Save Selected Data as in the FME Data Inspector and selecting the format that you want to save the data as (i.e.PostGIS,File Geodatabase,DWGetc.).有关在FME数据检查器中保存数据的更多信息,见文档.
本教程中使用的数据源于温哥华市,British Columbia.它包含根据开放政府许可证(温哥华)获得许可的信息。
© 2019 亚搏在线Safe Software Inc |合法的