Skip to main content
Solved

Georeference rasters listed in a geodatabase field?

  • November 24, 2023
  • 2 replies
  • 30 views

lacy
Contributor

Here is my scenario: I need to very roughly georeference thousands of scanned air photos that are tracked in a file geodatabase. Oversimplifying things considerably, my fields look like:

 

Filename (which contains location of the raster tif on disk)

Center_X (map coordinate)

Center_Y

Rotation (always zero for my simple exercise)

ground_resolution (in map coordinate units)

 

I want to feed each "filename" to the rastergeoreferencer, using Center_X, Center_Y, rotation, and ground resolution. But I'm conceptually stuck... rastergeoreferencer obviously wants input from a raster reader, not a text string with the path to the raster. See the rub?

 

Can somebody give me a push in the right direction?

 

Thanks!!

Best answer by takashi

Hi @lacy​ ,

You can use FeatureReader to read any format raster features whose file paths are read from the geodatabase dataset, then perform georeferencing on the read rasters.

 

Geodatabase Reader -> FeatureReader -> RasterGeoreferencer

 

Note that you will have to set "Merge Initiator and Result" to the Accumulation Mode paremtert to propagate attributes from geodatabase to the raster features.

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.

2 replies

takashi
Celebrity
  • Best Answer
  • November 25, 2023

Hi @lacy​ ,

You can use FeatureReader to read any format raster features whose file paths are read from the geodatabase dataset, then perform georeferencing on the read rasters.

 

Geodatabase Reader -> FeatureReader -> RasterGeoreferencer

 

Note that you will have to set "Merge Initiator and Result" to the Accumulation Mode paremtert to propagate attributes from geodatabase to the raster features.


lacy
Contributor
  • Author
  • Contributor
  • November 27, 2023

Hi @lacy​ ,

You can use FeatureReader to read any format raster features whose file paths are read from the geodatabase dataset, then perform georeferencing on the read rasters.

 

Geodatabase Reader -> FeatureReader -> RasterGeoreferencer

 

Note that you will have to set "Merge Initiator and Result" to the Accumulation Mode paremtert to propagate attributes from geodatabase to the raster features.

Thank you! This is exactly the push in the right direction I needed. I tested, and FeatureReader works exactly as I hoped.