ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Building Offsets

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

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

Usage

  • 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.

Syntax

BuildingOffsets_defense (Product_File, Dataset, Coordinate_System)
ParameterExplanationData Type
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

Code sample

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")

Environments

  • Current Workspace

Licensing information

  • ArcGIS Desktop Basic: No
  • ArcGIS Desktop Standard: No
  • ArcGIS Desktop Advanced: Requires Defense Mapping

Related topics

  • An overview of the Cartographic Refinement toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2017 Esri. | Privacy | Legal