斯潘8
span4
在这个练习中,您将学习如何将数据导入数据库,以及如何使用FME从数据库中导出数据。这是一个简单的拖放过程,支持400多种数据类型;然而,本教程仅提供从3个类别导入/导出数据的示例:数据库表,栅格数据and vector data.
注:既然你是使用面向公众的数据库,tables can occasionally be overwritten and/or modified.If your translation produces unexpected results,见重置PostGIS培训数据库文章.或者,you can download the provided file(s) and replace the PostGIS reader with a reader of the appropriate format.
在这种情况下,you will learn how to make a copy of an existing database table.
或者,如果要将表导出为csv,将Postgis编写器换成CSV编写器。这将导致您的postgis表被导出为csv格式。Similarly,如果您有一个要在PostGIS数据库中创建为表的csv文件,用csv阅读器替换Postgis阅读器。这将导致您的csv文件作为新表导入Postgis。
在这种情况下,you will be exporting a Raster image and the attribute data from your database to a GeoTIFF.
FME允许您在写入geotiff格式时生成world和tab文件。World files (.tfw) are important because they store georeferencing information about the raster image (i.e.起源,间距,以及光栅图像的旋转)。此外,选项卡文件(.tab)非常重要,因为它们允许您导出光栅图像的用户定义属性,meaning all of the attributes in the associated database table will be exported along with the GeoTIFF.For more technical information on using the GeoTIFF reader,见文档.
您已成功从数据库中导出光栅数据。您可以通过选择编写器功能类型并单击其上方快捷菜单中的“FME数据检查器”徽标来查看输出。
在这种情况下,您将导入光栅图像及其属性到数据库中。
您已成功将geotiff导入数据库。通过选择编写器并单击出现的快捷菜单中的“FME数据检查器”徽标,可以查看输出。
在这种情况下,you want to export a copy of some vector data that is currently stored in your database.
下一步,打开读卡器参数并从表列表中选择vanblocks表。
形状文件功能由几何图形和一组用户定义的属性组成。在这种情况下,you are reading 3D polygon data from a PostGIS database because a Z value (0) has been appended to the feature coordinates.
注意:由于坐标尺寸中指定了Z坐标,如果使用默认输出尺寸“来自第一个特征的尺寸”,则shapefile writer将假定输出为3D。
You have successfully exported polygon features from your database into the shapefile format.通过选择编写器并单击出现的快捷菜单中的“FME数据检查器”徽标,可以查看输出。
在这种情况下,you will be importing polygon features from a shapefile into your database.
本教程中使用的数据源于温哥华市,不列颠哥伦比亚省。它包含根据开放政府许可证(温哥华)获得许可的信息。
© 2019 亚搏在线Safe Software Inc |Legal