Skip to main content
Has there been a change in FME 2015 in the way that FME writer for GEOJSON determine the projection of incoming features? I have an FME 2012 script that takes LAT/LNG fields from a spreadsheet, turns them into a point using the 2DPointReplacer, and then writes them to a GEOJSON output where the coordinate system is specified as UTM83-10. It actually writes the feature as:

 

 

"geometry":{"type":"Point","coordinates":;492699.273158735,5452194.8678692]

 

 

However, the same script in FME 2015 writes the feature as:

 

 

{"type":"Point","coordinates":q-123.100262444394,49.222495514519]}

 

 

In both cases the CRS is specified as 26910. There is no reprojector between the reader and the writer. In the 2012 version, it looks like FME respects the coordinate system of the writer and reprojects accordingly. Is this the case?

 

 

Thanks
Okay, I found the answer. If you set the coordinate system for the reader, even though it is a spreadsheet and has no real geometry, when the features get to the writer, FME changes the coordinate system to that specified by the writer.

 

 

However, if you put an Inspector after the 2DPointReplacer, the coordinate system is still that of the source. It is only when it gets to the writer that it becomes magically reprojected.

Reply