span8
span4
span8
span4
Downloads
Feel free to download and unzip the data (forwardsortationareas.zip file) attached to this article if you'd like to perform these steps yourself as we go along!
The ESRI Shape forward sortation areas file denotes the different postal districts covering Vancouver.
Introduction
This tutorial will show you how to convert ESRI Shape file (*.shp) to Google KML (*.kml).We will be transforming some city of Vancouver postal code data from ESRI shape,styling the data using a different color,and writing the data out into a Google KML format.
Step-by-Step Instructions
To complete the process described in the video,you will need to carry out the following steps.
1) Inspect the source (Reader) dataset in FME Data Inspector
Start FME Data Inspector.In Windows this is found under Start > All Programs > FME Desktop > FME Data Inspector
Using Windows Explorer,drag the ESRI shape file into the FME Data Inspector and click OK.You can see that we have area features representing forward sortation areas,and a single attribute that denotes the first three-digits of a postal code.We will use this three-digit attribute as the name for each feature in the output KML file.
2) Start FME Workbench
In Windows this is found under Start > All Programs > FME Desktop > FME Workbench
3) Select Generate Workspace
This is found on the Create Workspace section of the FME Workbench interface.Alternatively,use Ctrl+G as a shortcut.
4) Browse to and select the source (Reader) dataset
Select ESRI shape for the source format;do this by typing the name into the field until it appears within the dropdown list.Navigate to the ForwardSortationAreas.shp file and select it.
5) Set the output (Writer) format to Google KML
Select Google KML for the format for the writer;do this by typing the name into the field until it appears within the dropdown list.
6) Set the output dataset name and location
Set the output file name to be Vancouver.kml.Click OK to create the workspace.
7) Add KMLPropertySetter Transformer
We will use a KML property setter to set the name of each feature.
8) Add KMLStyler Transformer
By default FME writes all KML features using the color white.Since we would like to modify the color,and set a transparency,we will make use of the "KML Styler" transformer.
9) Click the Run button on the toolbar
Run the workspace by clicking on the green play button.This carries out the translation.
10) View the shape file in FME Data Inspector
Once complete,we can use FME Data Inspector to view the data and see that we have our three-digit forward postal code values applied as attributes in the ESRI Shape file.
How to Convert KML to Shape (Google Earth to Shapefile)
Using Google's Chart API to Create Charts from a CSV and Shapefile
How to convert SHP to TAB (Esri Shapefile to MapInfo)
How to convert Esri Shapefile to Geodatabase
How to Convert MapInfo TAB to Esri Shape
How to Convert Microsoft Excel to Esri SHAPE
How to Convert DGN to Shape (CAD Levels to GIS Attributes)
How to convert MapInfo to Shapefile (MIF/MID to SHP)
© 2019 亚搏在线Safe Software Inc |法律