Select to view content in your preferred language

ArcGIS Maps SDK for .NET – AddRastersParameters.InputFile fails with CSV (works in ArcGIS Pro)

94
0
19 hours ago
Labels (2)
GIS_USER24
New Contributor

I’m working with ArcGIS Maps SDK for .NET(WPF) to add additional rasters to a mosaic dataset using

Spoiler
await 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:
 
Spoiler

var addRastersParameters = new AddRastersParameters
{
InputFile = @"D:\Sample\CODE\25\Data\Sample.csv",
};

await mosaicRaster.AddRastersAsync(addRastersParameters);

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 InputFileAre 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

GIS_USER24_0-1765966808023.png

 

 

0 Kudos
0 Replies