Running the MosaicToNewRaster tool works fine when I use the tool in ArcMap but it fails in .net when I use the exact same inputs. It leaves me to think that the way "input_rasters" is set up is wrong. Can anyone help me with correctly formatting my input_rasters string? This is typically happening only when I want to use more than 1 tiff file as input.
I have tried:
1) input_rasters = "'path\imgDirectory\img1.tiff';'path\imgDirectory\img2.tiff'"
2) input_rasters = "'path\imgDirectory\img1.tiff','path\imgDirectory\img2.tiff'"
3) I have tried inserting a string[] with the paths
but for some reason, I think the way I format my "input_rasters" is wrong. Because how can I get the Tool to work in ArcMap with the exact same parameters but not in c#?
The code and input works when trying to export as a tiff in c#, but will not work when exporting as a .jpg in c#. We want a .jpg because it is significantly smaller than a tiff file.