Skip to main content
Question

Georeference raster using external orientation text file?

  • February 12, 2020
  • 4 replies
  • 41 views

Hello every one. I have a folder with 700 .tiff raster files (images) and a external orientation text file with 700 rows of ID (name of the raster file), X, Y and rotation of the center point of each raster file. How could I convert all these in to geotiff? How do y manage to relate each row of the text file to its raster file? After this is solved I gess it should be easy to georeference them with the rastergeoreferencer...

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

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • February 12, 2020

Either a FeatureMerger , FeatureJoiner or DatabaseJoiner to attach the reference information to each raster file based on the fme_basename/ID.

The RasterGeoreferencer is expecting the point and angle to be the upper left pixel, not the center, so you'll have to do some math. Even with the Rotator it uses the upper left corner (Raster geometries do not use the supplied origin for rotation. Rasters always rotate around the upper left corner, which is the implied origin.)


sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • 956 replies
  • February 12, 2020

Hi @jonathanhall! you can use a FeatureMerger and join the data from the raster-files (read them as tif) with the data from the orientation file based on the name of the file.

 

Expose the attributes fme_basename on the TIF reader:

 

After getting the attributes on the correct images you can use the: RasterGeoreferencer

 

You might have to calculate some of the values if you are missing them, depengs on what are in your file with the filename and centerpoint.

 


  • Author
  • 2 replies
  • February 13, 2020

THANK YOU VERY MUCH FOR ALL THE HELP!!


  • Author
  • 2 replies
  • February 13, 2020

Hi @jonathanhall! you can use a FeatureMerger and join the data from the raster-files (read them as tif) with the data from the orientation file based on the name of the file.

 

Expose the attributes fme_basename on the TIF reader:

 

After getting the attributes on the correct images you can use the: RasterGeoreferencer

 

You might have to calculate some of the values if you are missing them, depengs on what are in your file with the filename and centerpoint.

 

THANK YOU REALLY HELP FULL