复制栅格目录项 (数据管理)
摘要
Makes a copy of a raster catalog, including all of its contents, or a subset of its contents if there is a selection.
用法
-
此工具的输入和输出是地理数据库栅格目录。
-
您可以将输出栅格目录复制到任意类型的地理数据库:个人地理数据库、文件地理数据库或 ArcSDE 地理数据库。
-
在使用 ArcMap 时,可以使用“选择”工具选择要复制的栅格目录项。
-
输出栅格目录的属性与输入栅格目录的属性相同,并且也与栅格目录中栅格数据集的属性相同。
语法
参数 | 说明 | 数据类型 |
in_raster_catalog |
The name and location of the raster catalog to be copied. | Raster Catalog Layer |
out_raster_catalog |
The name and location of the output raster catalog. You can copy your output raster catalog to any type of geodatabase: personal, file, or ArcSDE. | Raster Catalog |
config_keyword (可选) |
可用于指定文件地理数据库和 ArcSDE 地理数据库的存储参数(配置)。个人地理数据库不使用配置关键字。 ArcSDE 配置关键字由数据库管理员进行设置。 | String |
spatial_grid_1 (可选) |
The Output Spatial Grid 1, 2, and 3 parameters apply only to file geodatabases and ArcSDE geodatabases. If you are unfamiliar with setting grid sizes, leave these options as 0,0,0 and ArcGIS will compute optimal sizes for you. For more information about this parameter, refer to the Add Spatial Index tool documentation. | Double |
spatial_grid_2 (可选) |
第二个空间格网的像元大小。如果您只需要一个格网,则将大小设置为 0。否则,至少将大小设置为比“空间格网 1”大三倍。 | Double |
spatial_grid_3 (可选) |
第三个空间格网的像元大小。如果您只需要两个格网,则将大小设置为 0。否则,至少将大小设置为比“空间格网 2”大三倍。 | Double |
代码示例
This is a Python sample for CopyRasterCatalogItems.
import arcpy arcpy.CopyRasterCatalogItems_management("c:/data/CopyRC.mdb/RC1", "c:/data/OutRC.gdb/RC2" , "" , "" , "" , "")
This is a Python script sample for CopyRasterCatalogItems.
##========================= ##Copy Raster Catalog Items ##Usage: CopyRasterCatalogItems_management in_raster_catalog out_raster_catalog {config_keyword} {spatial_grid_1} ## {spatial_grid_2} {spatial_grid_3} try: import arcpy arcpy.env.workspace = r"C:\PrjWorkspace" ##Copy FGDB Unmanaged Raster Catalog to PGDB Unmanaged Raster Catalog arcpy.CopyRasterCatalogItems_management("CopyRC.gdb\\Unmanaged","output\\CopyRC.mdb\\Unmanaged", "", "3000", "", "") ##Copy PGDB Unmanaged Raster Catalog to FGDB Unmanaged Raster Catalog arcpy.CopyRasterCatalogItems_management("CopyRC.mdb\\Unmanaged","output\\CopyRC.gdb\\Unmanaged", "MAX_FILE_SIZE_4GB", "1000", "3000", "9000") ##Copy FGDB Managed Raster Catalog to SDE Managed Raster Catalog arcpy.CopyRasterCatalogItems_management("CopyRC.gdb\\Managed","output\\SDE94.sde\\Managed","DEFAULTS","2000","6000","18000") except: print "Copy Raster Catalog Items example failed." print arcpy.GetMessages()