Skip to main content
Solved

Reprojection Change for Writers

  • September 23, 2015
  • 1 reply
  • 42 views

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":[-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

Best answer by Anonymous

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.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

  • Best Answer
  • September 23, 2015
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.