Skip to main content
Question

Georeference raster using external orientation text file?

  • February 12, 2020
  • 4 replies
  • 26 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...

4 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • 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+24
  • Supporter
  • 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.

 


THANK YOU VERY MUCH FOR ALL THE HELP!!


sigtill wrote:

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


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