Résumé
Exports hydrographic data from a maritime geodatabase to an S-57 file.
The following processes will execute automatically.
- Extract data
- Clip data
- Group soundings
- Generate FE Name
- Generate or update primitives
- Calculate SCAMIN
Utilisation
The export package is a versioned ZIP file that is stored and managed by the product library.
Once the S-57 product has been exported to the supported file format, you will need to publish the product's edition and update the record to move to the next edition or update the number.
Syntaxe
arcpy.nautical.ExportGeodatabaseToS57(in_pl_workspace, in_product, in_export_type, in_clip_data_option, in_output_location, {in_source_gdb}, {in_pl_owner})
Paramètre | Explication | Type de données |
in_pl_workspace | Product library workspace that contains the product. | Workspace |
in_product | Name of the product you want to export. This must exist in the specified product library before using this tool. The products supported are ENC, AML, and IENC electronic navigational products. Paper charts must be exported using the Export Nautical Product command. This is specified as Solution Name::Product Class Name::Series Name::Product. | String |
in_export_type | Type of file created during export.
| String |
in_clip_data_option | Indicates if the export process should clip data that crosses an M_CSCL feature.
| String |
in_output_location | The location where you want to write the export package. | Folder |
in_source_gdb (Facultatif) | The NIS is the default geodatabase to export products. This option is to specify a geodatabase to export from other than the NIS set in the product library nautical properties. An example is a checkout replica from the NIS. Product library metadata will not be updated. | Workspace |
in_pl_owner (Facultatif) | Product library schema owner name. Set this parameter if the user account specified in the product library workspace is not the schema owner. This applies only to product libraries stored in enterprise geodatabases. | String |
Exemple de code
ExportGeodatabaseToS57 example (stand-alone script)
The following code sample demonstrates how to export to an S-57 file.
# Import arcpy module
import arcpy
# Check for Nautical extension
print "Checking out Maritime extension"
arcpy.AddMessage("Checking out Maritime extension")
if arcpy.CheckExtension("Nautical") == "Available":
arcpy.CheckOutExtension("Nautical")
else:
arcpy.AddError("Maritime: Charting license is unavailable.")
# Tool variables
pl = r'C:\Data\Connection Files\nsbisdb4_pacific_pl@pleditor.sde'
product = 'Nautical::ENC::NewSchema::US5M3978'
output_location = r'C:\Data'
exportType = 'NEW_EDITION'
clipOption = 'DO_NOT_CLIP_AT_M_CSCL'
owner = 'PL'
# Execute the tool
arcpy.ExportGeodatabaseToS57_nautical(pl, product, exportType, clipOption, output_location,'',owner)
Environnements
Informations de licence
- Basic: Requiert ArcGIS Maritime
- Standard: Requiert ArcGIS Maritime
- Advanced: Requiert ArcGIS Maritime