Â
Â
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