Skip to main content
Solved

Help adding a custom transformation

  • March 14, 2018
  • 4 replies
  • 67 views

caracadrian
Contributor
Forum|alt.badge.img+23

I am trying to add a custom transformation using a NTv2 grid shift file.

I have defined this .fme file in \\Documents\\FME\\CoordinateSystems\\ :

XFORM_DEF Stereo70_to_ETRS89_NTV2 \\

 

SRC_DTM PULKOVO42/58 \\

 

TRG_DTM WGS84 \\

 

DESC_NM "Stereo 70 to ETRS89 using grid shift file generated from TransDatRo grid" \\

 

GROUP Romania \\

 

INVERSE Yes \\

 

METHOD GRID_INTERP \\

 

GRID_FILE NTv2, fwd, .\\GridData\\Romania\\stereo70_etrs89A.gsb

Now FME wont start. I get the error mesage: Xform 'Stereo70_to_ETRS89_NTV2' contains invalid GRID_FILE value of 'NTv2,'

Best answer by daveatsafe

Hi @caracadrian,

Please remove the spaces after the commas in the GRID_FILE line. FME uses spaces as a delimiter between the parts of the definition, and so is breaking the grid file setting into multiple pieces.

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.

4 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • Best Answer
  • March 14, 2018

Hi @caracadrian,

Please remove the spaces after the commas in the GRID_FILE line. FME uses spaces as a delimiter between the parts of the definition, and so is breaking the grid file setting into multiple pieces.


caracadrian
Contributor
Forum|alt.badge.img+23
  • Author
  • Contributor
  • 571 replies
  • March 14, 2018

Thanks.

Now I have to figure out how to make it apear in CSMAPREPROJECTOR. Any suggestions?


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • March 14, 2018

Hi @caracadrian,

After you restart FME, it should show up in the CsmapReprojector for any reprojection going from the source datum to the destination datum (or vice versa).

However, you do need to choose a source coordinate system - if you leave the default <Read from feature>, it doesn't know what the source datum will be.


caracadrian
Contributor
Forum|alt.badge.img+23
  • Author
  • Contributor
  • 571 replies
  • March 14, 2018

The problem was that PULKOVO42/58 is not a Datum in FME. I changed the source datum to Pulkovo42/58b to make it work.