Calculate Central Meridian And Parallels (Cartography)

License Level:BasicStandardAdvanced

Summary

Calculates the central meridian and optional standard parallels based on the center point of a feature's extent; stores this coordinate system as a spatial reference string in a specified text field and repeats this for a set, or subset, of features.

Usage

Syntax

CalculateCentralMeridianAndParallels_cartography (in_features, in_field, {standard_offset})
ParameterExplanationData Type
in_features

Input feature layer.

Feature Layer
in_field

Text field to store the coordinate system string.

Field
standard_offset
(Optional)

Percentage of the height of the input feature used to offset the standard parallels from the center latitude of the input feature. The default is 25% or 0.25. Negative values and values greater than 1 are acceptable inputs.

Double

Code Sample

CalculateCentralMeridianAndParallels tool Example (Python Window)

Calculates the central meridian and optional standard parallels for a set of features.

import arcpy
from arcpy import env
arcpy.env.workspace = "C:\Data\ProjectData.gdb"
arcpy.CalculateCentralMeridianAndParallels_cartography("US_states", "CentralMeridian", 0.25)
CalculateCentralMeridianAndParallels tool Example (Stand-alone Python script)

Calculates the central meridian and optional standard parallels for a set of features.

# Name: calculatecentralmeridianandparallels_example.py
# Description: Calculates the central meridian and optional standard parallels
# for a set of features
# Author: ESRI

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
arcpy.env.workspace = "C:\Data\ProjectData.gdb"

# Set local variables
inFeatures = "US_states"
coordsysField = "CentralMeridian"
standardOffset = 0.25

# Execute CalculateAdjacentFields
arcpy.CalculateCentralMeridianAndParallels_cartography(inFeatures,
                                                       coordsysField,
                                                       standardOffset)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
10/25/2012