Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Good morning,

Today's question is: how to select and load multiple rasters from one folder in Arc?

My situation is probably familiar to some of you. I do have 3 folders with houndreds of maps in it. I do have also overview sheet, which helps me generate list of rasters that I need. How do I select them automatically from houndreds of others?

Its an issue which occurs for me from time to time. Manual selection is really inconvenient.

Thanks

share|improve this question

3 Answers 3

up vote 2 down vote accepted

If they were identifiably distinct, I would sub select using glob in python.

Otherwise, the only way would be to list all files in the directory and search through them using a loop through your list.

Unless I have misunderstood the question?

share|improve this answer

Have you considered using an image catalog to reference your images. Using this you would create a dbf file that references your images. You add it to a map and it acts like a layer, only pulling in the image for the area you are looking at. This would save having to actually load the images to the map. In that same vein, you could create a raster catalog in a geodatabase, which would work in the same fashion as the image catalog. You would add the raster catalog to your map, it displays the image you need, while the images stay on the server. Saves having to add the images to the map everytime. May not work for your needs, but something to consider.

share|improve this answer

I have created a script for this - it selects all rasters in a given set of folders (and subfolders) by using an polygon AOI. It works fine but seems to have one issue when there are over 150 files in the list. Give it a try. The files are accessible via the following question post in this exchange. I am referring to that as it will have the latest version. Limits to processing files from a list of rasters

share|improve this answer
    
Thanks, I'll have a look. May be I'll be able help to improve the script. I did my own script, however it is useful only for files with specific names. –  Tomek Aug 25 '11 at 12:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.