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

Calculate Symbology

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

Résumé

Calculates representation symbology and field labels for nautical charts.

ArcGIS Maritime symbology tools are based on representations, which are the symbols that represent features and text fields in the map text display. The calculated representations and text fields use combinations of feature attributes to determine the symbols for particular features in a feature class.

Utilisation

  • INT 1 fields are calculated using a collection of rules that are managed in the INT1.cxml specification file in the following location:

    • For 32-bit Windows operating systems—<Install location>\Program Files\ArcGIS\MaritimeCharting\Desktop<version>\Common\Symbology
    • For 64-bit Windows operating systems—<Install location>\Program Files (x86)\ArcGIS\MaritimeCharting\Desktop<version>\Common\Symbology

  • The feature class representations must already exist in the geodatabase. Representations are added by updating nautical symbology.

  • Representation symbol information is managed in the INT1.Style file and is installed in the following location:

    • For 32-bit Windows operating systems—<Install location>\Program Files\ArcGIS\Desktop<version>\Styles
    • For 64-bit Windows operating systems—<Install location>\Program Files (x86)\ArcGIS\Desktop<version>\Styles

Syntaxe

arcpy.nautical.CalculateSymbology(selected_symbology, target_feature_classes, {preserve_free_representations})
ParamètreExplicationType de données
selected_symbology

Specifies the ArcGIS Maritime visual specification that will be calculated.

  • All —INT1 and S-52 symbols will be calculated.
  • INT1 —The specification for symbols, abbreviations, and terms used on hard copy navigational charts will be calculated.
  • S-52 —The color and symbol specification for display of Electronic Navigational Charts (ENC) in an Electronic Chart Display and Information System (ECDIS) will be calculated.
String
target_feature_classes

The feature classes in which symbols will be calculated.

Feature Class; Feature Layer
preserve_free_representations
(Facultatif)

Specifies whether free representations will be preserved.

  • PRESERVE_FREE_REPRESENTATIONS —Free representations will be preserved; they will not be overwritten in any features. This is the default.
  • OVERWRITE_FREE_REPRESENTATIONS —Free representations will not be preserved; they will be overwritten in any features.
Boolean

Exemple de code

CalculateSymbology example (Python window)

The following Python window script demonstrates how to use the CalculateSymbology function.

import arcpy, os, traceback

#Set workspace
arcpy.env.workspace = r'C:\Data\CalculateSymbologyTesting\ChartSchema.gdb'
prod_db = arcpy.env.workspace

#Nautical FDS path
naturalA = os.path.join(prod_db, "Nautical", "NaturalFeaturesA")

# Check for Production Mapping extension
if arcpy.CheckExtension("Foundation") == "Available":
    arcpy.CheckOutExtension("Foundation")
else:
    raise ex("Production Mapping license is unavailable.")

# Check for Nautical extension
if arcpy.CheckExtension("Nautical") == "Available":
    arcpy.CheckOutExtension("Nautical")
else:
    raise ex("Maritime: Charting license is unavailable.")


try:
	print "Running calculate symbology..."
	#Execute tool
	arcpy.CalculateSymbology_nautical("INT1",naturalA,"PRESERVE_FREE_REPRESENTATIONS")
	print "complete"

except ex, (instance):
	print "Error 1"
	arcpy.AddError(instance.parameter)

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

	# Return gp error messages for use with a script tool
	arcpy.AddError(msgs)

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

Environnements

  • Espace de travail courant

Informations de licence

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

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