Exporter les chemins d'accès au catalogue d'images (Gestion des données)

Récapitulatif

Crée une table répertoriant les chemins d'accès aux jeux de données raster contenus dans un catalogue d'images non géré ou une mosaïque. La table peut afficher tous les chemins d'accès, ou les chemins rompus uniquement.

Utilisation

Syntaxe

ExportRasterCatalogPaths_management (in_raster_catalog, export_mode, out_table)
ParamètreExplicationType de données
in_raster_catalog

Catalogue d'images non géré ou mosaïque en entrée.

Raster Catalog Layer; Mosaic Dataset; Group Layer; Composite Layer
export_mode

Sélectionnez les chemins d'accès à exporter vers la table. Vous pouvez choisir d'exporter tous les chemins d'accès, ou les chemins rompus uniquement.

Sélectionnez le mode de réparation que vous voulez utiliser.

  • BROKENCette option permet de n'exporter que les chemins d'accès de catalogue d'images endommagés (rompus) vers la table.
  • ALLCette option permet d'exporter tous les chemins d'accès vers la table.
String
out_table

Table en sortie. Cette table peut être créée en tant que fichier DBF ou dans une géodatabase.

La table en sortie comporte un champ mentionnant l'OID source. Il s'agit de l'OID de la ligne dans la table du catalogue d'images d'origine.

Table

Exemple de code

Exemple d'utilisation de l'outil ExportRasterCatalogPaths (fenêtre Python)

Il s'agit d'un exemple en Python de l'outil ExportRasterCatalogPaths.

import arcpy
arcpy.ExportRasterCatalogPaths_management("c:/data/ExportRC.gdb/bkrnlinks",
                                          "BROKEN", "c:/data/brokenpath.dbf")
Exemple 2 d'utilisation de l'outil ExportRasterCatalogPaths (script autonome)

Il s'agit d'un exemple de script en Python de l'outil ExportRasterCatalogPaths.

##====================
##Export Raster Catalog Paths
##Usage: ExportRasterCatalogPaths_management in_raster_catalog BROKEN | ALL out_table
try:
    import arcpy
    arcpy.env.workspace = r"C:\PrjWorkspace"
    ##Export broken path in FGDB Unmanaged Raster Catalog to dbf table
    arcpy.ExportRasterCatalogPaths_management("ExportRC.gdb\\Unmanaged", "BROKEN", "brokenpath.dbf")
except:
    print "Export Raster Catalog Items example failed."
    print arcpy.GetMessages() 

Environnements

Cet outil n'utilise pas d'environnement de géotraitement

Rubriques connexes

Informations de licence

ArcView : Oui
ArcEditor : Oui
ArcInfo : Oui

7/10/2012