Get Raster Catalog Names from a File Geodatabase Programmatically

المشرف العام

Administrator
طاقم الإدارة
I'm trying to get only raster catalog entries from a file geodatabase using the arcgisscripting geoprocessing API. So far I am able to do this using the ListDatasets function using the ALL argument. The problem is that it also returns raster datasets as well and I suspect there are other types it would return if they were present in the file geodatabase. I've tried the Raster argument but it returns the raster datasets and omits the raster catalogs. I guess I could filter the items returned from gp.ListDatasets("", "Raster") from the items returned from gp.ListDatasets("", "ALL") leaving me with what I'm looking for, however there might be some other type I don't know of that would be left in the list if it were present.

Here is the code I'm starting with:

import arcgisscripting gp = arcgisscripting.create(9.3) gp.workspace = r"C:\FileGeodatabase" datasets = gp.ListDatasets("", "ALL") for dataset in dataset: #Only want raster catalogs here... I'm looking for a way to get only raster catalogs. What approach would ensure I'm working only with raster catalogs?



أكثر...
 
أعلى