I’m working with ArcGIS Maps SDK for .NET(WPF) to add additional rasters to a mosaic dataset using
Spoilerawait mosaicRaster.AddRastersAsync(addRastersParameters)
I tried setting InputFile directly to a raster path, but that failed with:
ArcGISRuntimeException: Invalid argument: Invalid input CSV file.
When I set InputFile to a CSV containing paths to TIFF rasters, I get the same exception.
Code snippet used:
However, the same CSV works in ArcGIS Pro when using the Add Rasters to Mosaic Dataset tool.
- Raster type: Raster Dataset (TIFF)
- Input Data: File -> Add file Sample.csv
Is there a specific CSV schema or format that the Maps SDK for .NET expects for InputFile? Are there any examples for using Input File with raster datasets (e.g., TIFF)?
Please suggest. Thanks.
Supporting Details:
SDK Version: 200.6
.Net Framework: 4.7.2
Pro Version: 3.4
Attaching the snap of the csv file for reference
