Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

# 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

put on hold as off-topic by PolyGeo 6 hours ago

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the 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!!! – gomapping Jun 7 '13 at 16:54