I'm trying to edit the locations of coordinates within an ESRI shapefile using a Python script in FME. The script appears to be working fine: the problem is that I don't know how to write the changes that the script is making to a new shapefile. In other words, my input and output shapefiles look identical, which is not what I want.
This is what I have done so far in FME:
- read an ESRI shapefile
- extracted x,y coordinates from the shapefile using the CoordinateExtractor
- updated these coordinates using a script within the PythonCaller
- written a new shapefile
The Python script appears to be working properly when I check using the inspector and the Python print function (i.e. _x and _y are being updated using the setAttribute method). However, my output still looks identical to my input. How can I get the updated coordinate locations to be written to my output shapefile?
Briefly, what is stumping me is how to write a shapefile/ESRI GDB/microstation DGN containing coordinate locations that have been changed in FME.
I'm using FME Desktop ESRI Edition 2014.
Thanks very much in advance,
Tom