AnsweredAssumed Answered

Why is Mosaic or Merge of Rasters shifting them slightly?

Question asked by stanles on Jan 25, 2018
Latest reply on Feb 9, 2018 by Hornbydd

hello

 

I have a .net script where I am clipping and then merging rasters based on user input.  I notice that for one raster that everything is working fine, but for another raster that the Merge or Mosaic command shifts the resultant merged raster slightly.

 

The offending line of code is:

 

pRasterGeometryProc.Mosaic(strFile, pRasterWorkspace, "GRID", pRasterInfo.CellSize.X, pSR, pRaster)

 

The two individual rasters which are part of the RasterBandCollection are in the correct location, but once merged they're not.

 

Has anybody else experienced this?

Outcomes