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.

I am stumped again, this website has really helped me before so here is another shot. I am trying to copy a raster catalog from a personal geodatabase to a newly created file geodatabase but only within a certain extent. Using the script below gives me a new file geodatabase with a new raster catalog but no rasters in it. Any help is greatly appreciated!!!

# Import arcpy module
import arcpy

# Set Geoprocessing environments
arcpy.env.extent = "-119.142433995 54.1505080220001 -118.783607274 54.2814004220001"

arcpy.env.overwriteOutput = True

# Local variables:
NewGDBOutputDirectory = "C:/GDB"
InputRasterCatalog = "C:/GDB/old.mdb/oldrastercatalog"
OutputRasterCatalog= "C:/GDB/new.gdb/newrastercatalog"

# Process: Create File GDB
arcpy.CreateFileGDB_management(NewGDBOutputDirectory, "new", "CURRENT")

# Process: Copy Raster Catalog Items
arcpy.CopyRasterCatalogItems_management(InputRasterCatalog, OutputRasterCatalog, "", "0", "0", "0")
share|improve this question
1  
Have you double-checked that the extent you are supplying is overlapping the raster catalog - and that the raster catalog is stored in a Geographic Coordinate System (i.e. lat/long)? –  PolyGeo Jun 6 '13 at 23:15
1  
can you describe your InputRasterCatalog? Does its extent line up with what you've set w/arcpy.env.extent? –  Roland Jun 6 '13 at 23:30
    
Thanks. My Raster catalog was in UTMs. Problem solved!!! –  J-roc Jun 7 '13 at 16:54

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.