ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

DNC To Geodatabase

  • Résumé
  • Utilisation
  • Syntaxe
  • Exemple de code
  • Environnements
  • Informations de licence

Résumé

Imports Digital Nautical Chart (DNC) formats into a DNC geodatabase. The product footprint will be created from the Dqyarea and written to the Product_Footprints feature class if it is within the schema.

Utilisation

  • Imports DNC VPF data.

  • Multiple scales can exist in the same geodatabase. For instance Harbor, Coastal, Approach, or General scales are stored in a DNC NIS for enterprise production.

  • This tool, in conjunction with Convert DNC GDB To VPF, can be used to migrate data from one geodatabase to a second geodatabase.

  • Notes are imported.

Syntaxe

arcpy.nautical.DncVpfToGeodatabase(Input_VPF_Features, Input_Target_Geodatabase)
ParamètreExplicationType de données
Input_VPF_Features

The VPF data to be imported into the geodatabase from specific layers or a folder that contains one library. Point, line, and polygon features can be imported.

Use this tool in batch mode to import multiple library scales.

Workspace
Input_Target_Geodatabase

The geodatabase into which the VPF data will be imported. This can be a new or existing geodatabase.

Workspace

Exemple de code

DncVpfToGeodatabase example

The following code sample demonstrates how to import DNC data into an géodatabase d’entreprise.

#import arcpy module
import arcpy, traceback, sys

# Check for Production Mapping extension 
print "Checking out Production Mapping extension" 
arcpy.AddMessage("Checking out Production Mapping extension") 
if arcpy.CheckExtension("foundation") == "Available": 
    arcpy.CheckOutExtension("foundation") 
else: 
    arcpy.AddError("Production Mapping license is unavailable.")

#Define variables
#Input VPF
dnc = r'C:\Data\DNC\Products\__Coastal\DNC17'
#Input Target Workspace
inputGDB = r'C:\Data\DNC\DNC_NIS.gdb'

try:
    #Execute tool
    print "Importing DNC data..."
    arcpy.DncVpfToGeodatabase_nautical(dnc, inputGDB)

except arcpy.ExecuteError:
    # Get the geoprocessing error messages
    msgs = arcpy.GetMessage(0)
    msgs += arcpy.GetMessages(2)

    # Write gp error messages to log
    print msgs + "\n"
    arcpy.AddError(msgs + "\n")


except:
    # Get the traceback object
    tb = sys.exc_info()[2]
    tbinfo = traceback.format_tb(tb)[0]

    # Concatenate information together concerning the error into a message string
    pymsg = tbinfo + "\n" + str(sys.exc_type)+ ": " + str(sys.exc_value)

    # Write Python error messages to log
    print pymsg + "\n"
    arcpy.AddError(pymsg + "\n")

print "DNC To Geodatabase completed"

Environnements

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

Informations de licence

  • Basic: Non
  • Standard: Non
  • Advanced: Requiert ArcGIS Maritime

Rubriques connexes

  • An overview of the DNC toolset

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal