Skip to main content
Solved

Georeference rasters listed in a geodatabase field?


lacy
Contributor
  • 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.

View original
Did this help you find an answer to your question?

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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
takashi wrote:

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.


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