Solved

Reprojection Change for Writers

  • 23 September 2015
  • 1 reply
  • 4 views

Badge +1
  • Participant
  • 126 replies
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
icon

Best answer by jimo 23 September 2015, 22:31

View original

1 reply

Badge +1
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