You are here:
Geoprocessing tool reference
>
Environment Settings
>
Geodatabase settings
Allowable coordinate range for x,y coordinates.
Usage tips
- If the output is a feature class inside a feature dataset, the environment will be ignored as all feature classes inside a feature dataset must have the same XY domain.
- If the output is a standalone feature class, raster catalog or feature dataset, the XY Domain environment is only honored when creating feature classes in a pre-92 geodatabase or when the output has an unknown coordinate system. The environment will not be honored when the output is a geodataset that has known coordinate system (not unknown) and is stored in a 9.2 (or later) geodatabase. This is because with known coordinate systems in 9.2 (or later) geodatabase, the high precision spatial reference allows for domain based on the valid area of use of the coordinate system while allowing very small values for resolution.
- When the output is in a pre-9.2 geodatabase or has an unknown coordinate system, most tools will calculate a valid XY domain based on the extent of the input features. The exceptions to this are the Create Feature Class, Create Feature Dataset and Create Raster Catalog tools. These tools cannot use an "extent of input features" to calculate a valid XY domain since they have no input. Therefore when using these tools with pre-92 geodatabase or unknown coordinate systems, setting the XYDomain is still important.
- If the XY Resolution is set as well as the XY Domain environment, the resolution value is used in combination with the domain's origin. This only applies if the output is in a pre-9.2 geodatabase OR has an unknown coordinate system. If the output is in 9.2 (or later) and has a known coordinate system, only the XY Resolution environment is honored.
- The coordinate entered in the xy domain are assumed to be in the units of the output coordinate system.
- When the output is a standalone geodatabase feature class, if the processing and output XY domain set based on the rule above does not cover the extent of the input features (for union_analysis for example), the approach above is not used, instead an XY domain large enough to hold all of the input features is calculated. This could result in extremely small resolution values which can negatively impacts performance. In that case it may be desirable to copy the contents of the feature class to a new feature class using CopyFeatures with a specified XY Resolution value.
- The keyword used at the command line or in scripts for this environment setting is XYDomain.
-
Learn more about specifying geodatabase settings
-
Learn more about environment settings
-
Learn more about environment levels and hierarchy
-
Learn more about geodatabases
Command line syntax
An overview of the command line window
xydomain <xydomain>
<xydomain> |
Allowable coordinate range for x,y coordinates. The domain may be specified in one of two ways:
Specify the following values:
- X Min—Minimum x coordinate value.
- Y Min—Minimum y coordinate value.
- X Max—Maximum x coordinate value.
- Y Max—Maximum y coordinate value.
or
Specify the following values:
- X Min—Minimum x coordinate value.
- Y Min—Minimum y coordinate value.
- Precision—the precision value to be applied.
|
String |
Data types for geoprocessing tool parameters
Command line example
XYDomain "9689921.98576562 6367694.31454068 27282108.0219896 23959880.3507647"
XYDomain "9689921.98576562 6367694.31454068 122"
Scripting syntax
An overview of scripting in geoprocessing
xydomain (xydomain)
Expression Explanation
XYDomain (Required) |
Allowable coordinate range for x,y coordinates. The domain may be specified in one of two ways:
Specify the following values:
- X Min—Minimum x coordinate value.
- Y Min—Minimum y coordinate value.
- X Max—Maximum x coordinate value.
- Y Max—Maximum y coordinate value.
or
Specify the following values:
- X Min—Minimum x coordinate value.
- Y Min—Minimum y coordinate value.
- Precision—the precision value to be applied.
|
String |
Data types for geoprocessing tool parameters
Script example
# Create the geoprocessor
import arcgisscripting
gp = arcgisscripting.create()
gp.XYDomain = "9689921.98576562 6367694.31454068 27282108.0219896 23959880.35076"
except:
# If an error occurred print the message to the screen
print gp.GetMessages()
Please visit the
Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.