ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

Help

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

Building Offsets

  • 摘要
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

Esri Defense Mapping cartographic production tool that aligns, moves, or hides building marker symbols based on a specification defined in an .xml file.

The .xml file contains settings for the following Defense Mapping cartographic products:

  • MGCP TLM50
  • MGCP MDG
  • LTDS LDG50

用法

  • The Defense Mapping installation directory contains .xml product files you can use for cartographic production.

  • Data referenced in the Product File must have representations for buildings and the linear features used for symbol alignment and conflict resolution.

  • Distances and units used in symbol alignment and conflict resolution are defined in the Product File.

语法

BuildingOffsets_defense (Product_File, Dataset, Coordinate_System)
参数说明数据类型
Product_File

The .xml file that contains settings specific to Defense Mapping cartographic products.

File
Dataset

Workspace or feature dataset that contains the buildings and linear features referenced in the .xml Product File.

Workspace; Feature Dataset
Coordinate_System

Sets the geoprocessing Cartographic Coordinate System environment setting. This setting determines the size, extent, and spatial relationships of features when making cartographic–related calculations.

Coordinate System

代码示例

BuildingOffsets example (stand-alone script)

The following stand–alone script demonstrates how to use the BuildingOffets tool.

# Name: BuildingOffsets_Example.py
# Description: Executes Building Offsets Defense Mapping tool using an input XML specification file.
# Requirements: Esri Defense Mapping 

import arcpy

# check out a defense license & set gp environment
arcpy.CheckOutExtension("defense")
arcpy.env.workspace="c:/data/mgcp.gdb"

# variables for tool parameters
productFile="c:/data/defense_carto_spec.xml"
dataset="MGCP"
coordsys="PROJCS['GCS WGS 1984 UTM Zone 11N (Calculated)',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-117.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]];IsHighPrecision"

# execute the tool
arcpy.BuildingOffsets_defense(productFile,dataset,coordsys)

# check in the defense license
arcpy.CheckInExtension("defense")

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 否
  • ArcGIS Desktop Advanced: 需要 Defense Mapping

相关主题

  • An overview of the Cartographic Refinement toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2017 Esri. | 隐私政策 | 法律声明