ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

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

Upgrade Spatial Reference

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

Summary

Upgrades a low precision dataset's spatial reference to high precision.

Input to this tool is a stand-alone feature class, feature dataset, or raster catalog which has a low resolution spatial reference and is stored in a current version personal or ArcSDE geodatabase. The origin and precision of the high precision spatial reference grid will mesh with the existing low precision grid. For each point of the original low precision spatial reference grid there is a point in the new high precision spatial reference grid. Coordinate values will not be affected by the upgrade.

Illustration

Upgrade Spatial Reference graphic
Upgrade Spatial Reference graphic

Usage

  • To determine the geodatabase version, right-click the geodatabase and select "Properties...". The "Upgrade Status" section under the General tab will show the ArcGIS release that the geodatabase corresponds to. If version number is less than 9.2, you can use the "Upgrade Geodatabase" function to upgrade the geodatabase to the ArcGIS version being used.

  • To determine if a dataset (feature class, feature dataset, or raster catalog) is high precision, right-click the dataset and select "Properies...", then select the General tab. In the Geometry Properties, youll see either "Data Storage : High Precision" or "Low Precision". Datasets stored in a file geodatabase are always high precision.

  • Individual feature classes within a feature dataset cannot be upgraded individually as they inherit their spatial reference from the feature dataset. In order to upgrade them, upgrade the feature dataset's spatial reference, which means the spatial reference of all the feature classes in the dataset will be upgraded.

  • ArcCatalog's Copy/Paste functionality automatically upgrades the spatial reference of datasets when the output is a 9.2 (or later) geodatabase.

  • When used on a feature dataset, the M Resolution will not be applied to feature classes contained within a feature dataset.

  • The XY tolerance property of the upgraded spatial reference will be 2.0 * (9.1 dataset resolution).

Syntax

UpgradeSpatialReference_management (input_dataset, {xy_resolution}, {z_resolution}, {m_resolution})
ParameterExplanationData Type
input_dataset

The input dataset whose spatial reference precision will be upgraded. Valid input is a feature class, feature dataset, or raster catalog with a low resolution spatial reference, stored in a 9.2 or current version personal or ArcSDE geodatabase.

Feature Class; Feature Dataset; Raster Catalog
xy_resolution
(Optional)

The value to which the dataset's XY Resolution will be changed as part of the upgrade. The maximum value is the same as the dataset's current XY Resolution.

Double
z_resolution
(Optional)

The value to which the dataset's Z Resolution will be changed as part of the upgrade. The maximum value is the same as the dataset's current Z Resolution. By default, the resolution will be improved by a factor of 4.

Double
m_resolution
(Optional)

The value to which the dataset's M Resolution will be changed as part of the upgrade. The maximum value is the same as the dataset's current M Resolution. By default, the resolution will be improved by a factor of 4.

Double

Code sample

Upgrade Spatial Reference Example (Python Window)

The following Python window script demonstrates how to use the UpgradeSpatialReference function in immediate mode.

import arcpy
from arcpy import env
env.workspace = "C:/data/data.gdb"
arcpy.UpgradeSpatialReference_management("Euro_WGS", "0.0000000625", "0.0000025", "0.0000025")
Upgrade Spatial Reference Example 2 (Stand-alone Script)

The following standalone script is a simple example of how to apply the UpgradeSpatialReference function in python scripting.

# Name: upgradeSR_Example.py
# Description: upgrade two datasets' spatial references
# Author: ESRI

#Import the system modules
import arcpy

# Set the local parameters
inDataset = "Database Connections/Connection to birch.sde/database.transportFDS"
xyRes = "1.56250000145519E-08"
zRes = "0.0000025"
mRes = "0.0000025"
 
# Upgrade and specify explicit resolutions
arcpy.UpgradeSpatialReference_management(inDataset, xyRes, zRes, mRes)
 
# Upgrade and let the 3 resolution parameters default
inDataset = "Database Connections/Connection to birch.sde/database.environmentFDS"
arcpy.UpgradeSpatialReference_management(inDataset, "", "", "")

Environments

This tool does not use any geoprocessing environments

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Geodatabase Administration toolset
  • Migrating to high precision

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • 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 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal