span8
span4
span8
span4
Completed Workspace as an FME Template
A common scenario that one may encounter when working with File Geodatabase is to receive a set of data which contains changes to the features and attributes of feature classes in an existing File Geodatabase.The following example will show how to use Geodatabase functionality in order to update existing Geodatabase features with an edited Shapefile dataset.
In the above image,we see a visualization of the original/destination feature class showing the current and required location of three drinking fountains.
In the above image,我们可以看到更新后的饮水机形状文件及其相关属性的可视化。
1.Create Destination File Geodatabase
Using the update functionality of a File Geodatabase assumes that the destination Geodatabase to be updated already exists.For purposes here,an XML workspace document has been provided so that the required File Geodatabase needed for this example can be imported into ArcGIS.为了做到这一点,within ArcCatalog or ArcMap,create a new,empty File Geodatabase.Once created,download the provided XML template file (refer to downloads section) and import the template into the empty Geodatabase as an XML workspace document (select the Import Data option).
2.Read Source Data
使用ESRI形状读取器从形状文件源文件读取饮水机几何图形。此形状文件包含目标功能类中放错位置的三个饮水机的更新功能位置。
三。Update Maintainer Attribute
属性管理器将用于更新“维护者”属性的值,从公园部门的属性更新到工程部门,因为您从管理层收到了额外的信息,表明负责维护这些特定饮水机的部门INS已更改。Connect the Shapefile reader to the AttributeManager and in the AttributeManager properties,simply type "Engineering" for the Attribute Value of the Maintainer attribute.You will notice that the Action for the attribute will automatically switch to "Set Value".
4.Update Original Feature Class
Add the ESRI Geodatabase (File Geodb Open API) writer to the workspace.对于编写器数据集,导航到在步骤1中创建的地理数据库,对于要素类或表定义,select "Import from Dataset".The Import from Dataset option is selected because the feature class already exists in the Geodatabase and we intend to update it.
When prompted,如上文所述,设置格式并选择文件geodatabase(可能–应该–已经由FME设置)。FME will now scan the Geodatabase to confirm what tables exist.When prompted with a list of classes,选择饮水机only.
Once the writer has been added to the canvas,double click on the writer feature type to enter the Feature Type Properties dialog.Click the Format Parameters tab and type "FountainID" in the Update/Delete Key Fields section.
Save and Run the workspace and inspect the DrinkingFountains dataset.You should now find that the erroneous drinking fountains have been moved into the correct position.If you can't find the new drinking fountains,they should be located close to the following locations (coordinate values are in UTM):
Fountain ID |
X坐标 | Y Coordinate |
24 | 491772年 | 5459404个 |
49 | 491288个 | 5459477 |
69 | 492418 | 5459028 |
© 2019 亚搏在线Safe Software Inc |Legal