Skip to main content
Solved

Help adding a custom transformation


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.

View original
Did this help you find an answer to your question?

4 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 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
  • 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
  • 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
  • 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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings