Select to view content in your preferred language

Raster to Geodatabase Issue

592
6
12-03-2024 11:28 AM
JosephinaReyman
Emerging Contributor

Hi I am trying to use the "Raster to Geodatabase" tool, however, whenever I hit run I get this error. 

"Failed to convert Topos Wetlands Symbols\SLC_Topos_Symbols_Extracted_Wetlands_Subsamples. can only join an iterable" 

The raster doesn't even pop up in the geodatabase.

Does anyone have an idea how to fix this?

0 Kudos
6 Replies
JairoCordero
Occasional Contributor

Hello
What I understand is that you want to put a raster into the Geodatabase?
Am I correct?

0 Kudos
JosephinaReyman
Emerging Contributor

Yes I have over 40 rasters. I was hoping I can use the tool to put them in all at once, but it doesn't seem to be cooperating.

0 Kudos
JairoCordero
Occasional Contributor

Use the ADD RASTERS TO MOSAIC DATASET tool, so you can enter them all at once.
But first you must create a CSV file so that it can recognize it.
Here I attach an image of the structure of the table that you must make and that you must be able to see inside it.
In Camera ID, you put it the same as the image, in raster you must put the address of where your images or rasters are located, the SRS is the coordinate system, you must enter the one that corresponds to you.
I hope it helps you, and if you don't understand something, let me know. Greetings.

JosephinaReyman
Emerging Contributor

Thanks I'll give it a go.

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Rather than storing the rasters in your geodatabase, you could create a mosaic dataset in your geodatabase and then reference the original source rasters.  The workflow to do this is here

0 Kudos
JoshBerna
Frequent Contributor

In the future, or for anybody else looking, try simply removing the raster from the group before fiddling with a mosaic dataset. The characters "-" and "/" mess with the iterable or whatever, and the group adds one to the item name artificially, as seen: "Topos Wetlands Symbols\SLC_Topos..." I had this error, and ungrouping the rasters immediately fixed the issue.