Skip to main content
Solved

How do I add and use custom grid shift files (.gsb) to FME Cloud?

  • June 7, 2017
  • 4 replies
  • 305 views

Forum|alt.badge.img

Hi all

I've been given a handful of grid shift file (.gsb) that I need to add to FME Cloud so that I can use them within a published service (via the CsmapReprojector transformer).

This is what I've done so far.

On Desktop I've copied the .gsb files to C:\\Program Files (x86)\\FME\\Reproject\\GridData\\Australia and modified C:\\Users\\<user>\\Documents\\FME\\CoordinateSystems\\MyCoordSysDefs.fme, adding the custom transformation definitions which point at the relevant .gsb. For example:

The transformation was tested and worked fine using desktop.

I then uploaded this modified MyCoordSysDefs.fme file to FME Cloud when I published the workspace I'll be using. I uploaded the file to myfmecloud.com/fmeserver/resources#/Engine/CoordinateSystems.

I realize the transformation definitions in MyCoordSysDefs.fme points to a desktop file location, not the server location so I presume I have to upload the .gsb file to FME Cloud and change the GRID_FILE parameter values in the transformation definitions in MyCoordSysDefs.fme. Is that correct? Where do I upload the gsb files to? I thought the answer might be this but it didn't seem to work:

I'm not sure this is even possible through FME Cloud console (I don't have access to the server file system.

Any advice would be greatly appreciated.

Thanks

Rob

Best answer by denniswilhelm

You can simply upload the .gsb file via the web interface in the shared resources folder. The actual location should not matter as you reference the exact location in the definition file anyways.

I uploaded all my *.gsb files in CoordinateSystemGridOverrides (within a subfolder for each gsb). After that it can be referenced in the definition with the following path:

GRID_FILE NTv2,Fwd,"/data/fmeserver/resources/engine/CoordinateSystemGridOverrides/myFolder/myFile.gsb" \\

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

denniswilhelm
Contributor
Forum|alt.badge.img+18
  • Contributor
  • Best Answer
  • June 7, 2017

You can simply upload the .gsb file via the web interface in the shared resources folder. The actual location should not matter as you reference the exact location in the definition file anyways.

I uploaded all my *.gsb files in CoordinateSystemGridOverrides (within a subfolder for each gsb). After that it can be referenced in the definition with the following path:

GRID_FILE NTv2,Fwd,"/data/fmeserver/resources/engine/CoordinateSystemGridOverrides/myFolder/myFile.gsb" \\


darkspatiallord
Contributor
Forum|alt.badge.img+7

Just a note to Australian users who may stumble on this post - please do not use the above details for GDA2020. These are still in testing. Full release should come with FME2017.1

Brett


Forum|alt.badge.img

You can simply upload the .gsb file via the web interface in the shared resources folder. The actual location should not matter as you reference the exact location in the definition file anyways.

I uploaded all my *.gsb files in CoordinateSystemGridOverrides (within a subfolder for each gsb). After that it can be referenced in the definition with the following path:

GRID_FILE NTv2,Fwd,"/data/fmeserver/resources/engine/CoordinateSystemGridOverrides/myFolder/myFile.gsb" \\

@denniswilhelm1 & @rkay

 

This approach is correct and works on FME Cloud with FME Server 2016.1.3 and newer. There was an issue in earlier versions of FME Server 2016 that caused the CoordinateSystemGridOverrides folder to be ignored.

daveatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • September 5, 2023

You can simply upload the .gsb file via the web interface in the shared resources folder. The actual location should not matter as you reference the exact location in the definition file anyways.

I uploaded all my *.gsb files in CoordinateSystemGridOverrides (within a subfolder for each gsb). After that it can be referenced in the definition with the following path:

GRID_FILE NTv2,Fwd,"/data/fmeserver/resources/engine/CoordinateSystemGridOverrides/myFolder/myFile.gsb" \\

Putting the .gsb files in the CoordinateSystemGridOverrides will cause problems in FME Flow 2023.0 and newer running on Linux. Please use the process described at https://docs.safe.com/fme/2023.1/html/FME-Flow/AdminGuide/Configuring-Grid-Transformation-Definitions.htm instead.