Solved

Help adding a custom transformation

  • 14 March 2018
  • 4 replies
  • 7 views

Badge +20

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,'

icon

Best answer by daveatsafe 14 March 2018, 18:00

View original

4 replies

Userlevel 2
Badge +17

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.

Badge +20

Thanks.

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

Userlevel 2
Badge +17

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.

Badge +20

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

Reply