Question

Georeference TIFs Using SHP Grid of Extents

  • 12 November 2014
  • 3 replies
  • 2 views

Badge
I have about 100 TIF airphotos that I need to georeference using a grid that represents the extents of each photo.  The grid is in a shape file - it contains rectangles repesenting the extents of each image, and the image file name in an attribute.  The grid is in the desired destination coordinate system.

 

Is there any way to do this in FME Desktop 2014 ?  My initial thoughts are:

 

Read the TIFs

 

Read the shape file

 

Use RasterGeoReferencer <--- somehow correlate each grid square's coordinates to each TIF file.

 

 

Any ideas would be greatly appreciated.

3 replies

Badge +3
There is a Geotiff writer in the writergalery.

 

When u add it to your workbench you can check out the formatparameters.

 

 

You can use the  shape grid to create the geotiff.

 

 

Check out the reader/writer gallery.

 

 
Badge +3
You might want to check out Gdal also,  as you have the extents of the tiffs (shapefile) you can do the conversion.

 

 

"If you know the bounding coordinates of the image you can us gdal_translate with the -a_srs (this assigns the projection) and -a_ullr (this is the bounding coordinates). "
Badge +22
What I would do is read in the grid shapefile,

 

use a BoundsExtractor to get the XY coordinates (if the images have a rotation, you will have to get the 4 corners individually)

 

use a CoordinateSystemExtractor to get the coordinate system

 

if necessary build the full path to the tif image (as opposed to just the image name)

 

RasterReader, setting the dataset file to the attribute containing the path to the tif

 

RasterGeoReferencer with the extents previously extracted.

 

CoordinateSystemSetter with the coordsys previously extracted

 

Geotif writer

Reply