ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

Generate Masks

  • Zusammenfassung
  • Verwendung
  • Syntax
  • Codebeispiel
  • Umgebungen
  • Lizenzinformationen

Zusammenfassung

Generates annotation masks for symbolized feature layers based on an XML rule file.

Verwendung

  • The XML rule files can be found at C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\<Install_Directory>\MGCP\Cartography\Symbology.

  • The XML files are based on product type and are named based on the product that is being run; for example, the MTM50 rule is named MTM_Anno_Masking_Rules.xml.

Syntax

arcpy.defense.GenerateMasks(in_mapdocument, in_file, out_dataset)
ParameterErklärungDatentyp
in_mapdocument

The input map document containing the symbolized layers.

ArcMap Document
in_file

The input XML file that contains rules for creating annotation masks.

File
out_dataset

The output dataset where the newly created mask features will be stored.

Feature Dataset

Codebeispiel

GenerateMasks example (Python window)

The Python sample demonstrates how to generate annotation masks for symbolized feature layers based on an XML rule file.

from arcpy import defense

map_document = r'C:\Data\MTM50_TRD_4_3.mxd'
product_file = r'C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.5\Mgcp\Cartography\Symbology\MTM_Anno_Masking_Rules.xml'
output_dataset = r'C:\Data\MTM50_TRD_4_3.gdb\MTM50_Anno_Masks'

defense.GenerateMasks(map_document, product_file, output_dataset)

Umgebungen

  • Aktueller Workspace

Lizenzinformationen

  • Basic: Nein
  • Standard: Erfordert Defense Mapping
  • Advanced: Erfordert Defense Mapping

Verwandte Themen

  • An overview of the Utilities toolset

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

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

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches