I’m working with ArcGIS Maps SDK for .NET(WPF) to add additional rasters to a mosaic dataset using
var addRastersParameters = new AddRastersParameters
{
InputFile = @"D:\Sample\CODE\25\Data\Sample.csv",
};
await mosaicRaster.AddRastersAsync(addRastersParameters);
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
Hi, thanks for the reply.
I tried using the suggested CSV schema, but it’s still failing on my side with the same exception: ArcGISRuntimeException: Invalid argument: Invalid input CSV file.
I’ve attached the sample CSV file used for reference. Below is the code snippet showing how the CSV is being passed to AddRasters.
var addRastersParameters = new AddRastersParameters
{
InputFile = @"D:\Test\Sample.csv"
};
await mosaicRaster.AddRastersAsync(addRastersParameters);
Please let me know if there’s anything missing or incorrectly configured.