Learning Objectives

After completing this unit, you'll be able to:

Resources

Neighborhoods.csv

Video

Exercise

  1. Creating polygon features is similar to creating line features. Open FME Workbench 2020.1. Click New to start a new workspace. Click Readers > Add Reader and set Format to CSV (Comma-Separated Value).
  2. Click the ellipsis button [...] and select the Neighborhoods.csv file.
  3. Set the Coord. System to LL84.
  4. You can decide how to generate points using the methods covered earlier in the module: reader parameters or a VertexCreator.
  5. Add a LineBuilder transformer to the canvas connecting it to either the CSV reader or the VertexCreator depending on the method you chose to get the points.
  6. In the LineBuilder parameters, set Group Processing > Group By to NeighbourhoodName. If the last point is the same as the first then a polygon is automatically created. In FME 2018 or older, the Group By option is not available. Use the Connection Break Attribute instead.LineBuilder parameters
  7. Run the workspace and inspect the results.

Results

Polygons shown on the map

The output of polygons using any of the three methods and a LineBuilder transformer. Stylized in FME Data Inspector using map tiles by Stamen Design, under CC-BY-3.0. Data by OpenStreetMap, under CC-BY-SA.