斯潘8
斯潘4
下载
public art.xlsx文件列出了温哥华市的公共艺术场所。
介绍
在本教程中,we will perform a very common transformation: taking non-spatial data in an Excel file (*.xlsx) and converting it to an ESRI Shape file (*.shp).Excel文件包含每行的x轴坐标值和y轴坐标值,这些值将在读取数据时转换为点。我们还将合并来自多个工作表的数据,或功能类型,到输出ESRI形状文件中。
逐步说明
要完成视频中描述的过程,you will need to carry out the following steps.
1) Start FME Workbench
在Windows中,可以在“开始>所有程序>FME桌面>FME工作台”下找到此选项。
2) Select New Workspace
在“创建工作区”窗口中选择新工作区。
3) Drag and Drop the source (Reader) dataset
Navigate to the publicart.xlsx file in Windows Explorer,然后将其拖放到画布上。
4)验证输入参数
在添加读卡器对话框窗口中,点击参数查看FME工作台如何读取这些数据;注意,默认情况下,它读取Excel文件中的所有工作表。
The attribute section confirms that FME has picked the correct column names and properly identified the longitude as type "x_coordinate" and latitude as type "y_coordinate";这意味着当读取数据时,将自动创建点。单击OK关闭参数,以及添加读卡器对话框窗口。源功能类型中的六张工作表现在已放置在画布上。
5)将输出(编写器)格式设置为ESRI形状文件
选择ESRI形状作为格式;为此,请在字段中键入名称,直到它出现在下拉列表中。
6)设置输出(编写器)数据集位置
In the video,设置为C:\fmedata2016\output。However,you can set your output location to whatever best suits your directory structure.Click OK to add the new writer to the canvas.
7)设置输出(编写器)形状文件定义
默认情况下,将从读卡器功能类型之一复制形状文件定义。对于形状文件定义,请使用默认的“从读卡器复制”。
8)确认“选择要素类型”对话框窗口
“选择要素类型”对话框窗口询问我们从哪个源要素类型检索属性定义以复制到编写器。我们选择哪一个并不重要,因为它们都有相同的定义。
9) Modify output (Writer) Feature Type Properties
打开目标功能类型属性:
10) 连接输入(读卡器)和输出(写卡器)功能类型
11)更改输出(写入)特征类型的坐标系
使用导航窗格(左上角),展开形状编写器参数。出现的第一个参数是坐标系,我们会在这里做出改变。Set the coordinate system to latitude / longitude by inputting "LL84"
12)单击工具栏上的“运行”按钮
单击绿色播放按钮运行工作区。这就实现了翻译。
13) View the shape file in FME Data Inspector
一旦完成,我们可以使用FME数据检查器查看数据,并查看是否已将多个工作表中的数据合并到输出ESRI形状文件中。
数据属性
The data used here originates from open data made available by theCity of Vancouver,不列颠哥伦比亚省。它包含根据开放政府许可证(温哥华)获得许可的信息。
?2019安全亚搏在线软件公司|合法的