Project an XY coordinate pair from one coordinate system to another.

When run from ArcToolbox or the Command Line, the results are displayed in the Dialog Box. When run from a script, the results are returned to the calling script.

The Current Workspace must be set before running this tool. To do so, click on Environments..., General Settings, and enter a value into the Current Workspace field.

This tool is slow and is not recommended for processing a lot of points.

ProjectXYPoint <Input_X_Coordinate> <Input_Y_Coordinate> <Input_Coordinate_System> <Output_Coordinate_System> {Geographic_Transformation}

**Parameters **

Expression | Explanation |
---|---|

<Input_X_Coordinate> | The X value of the input point. |

<Input_Y_Coordinate> | The Y value of the input point. |

<Input_Coordinate_System> | The coordinate system of the input point. |

<Output_Coordinate_System> | The coordinate system to which the input point is to be projected. |

{Geographic_Transformation} | The geographic transformation to be used when projected data from one datum to another. |

**Command Line Example **

workspace c:\workspace Set c:\workspace into workspace ProjectXYPoint 562835 5082697 utm27.prj albers83.prj NAD_1927_To_NAD_1983_NADCON Executing (ProjectXYPoint_7): ProjectXYPoint 562835 5082697 PROJCS['NAD_1927_UTM_Zone_10N',GEOGCS['GCS_North_American_1927',DATUM['D_North_American_1927',SPHEROID['Clarke_1866',6378206.4,294.9786982]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-123.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]] PROJCS['USFS_R6_Albers',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Albers'],PARAMETER['False_Easting',600000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-120.0],PARAMETER['Standard_Parallel_1',43.0],PARAMETER['Standard_Parallel_2',48.0],PARAMETER['Latitude_Of_Origin',34.0],UNIT['Meter',1.0]] NAD_1927_To_NAD_1983_NADCON Start Time: Tue May 30 23:48:06 2006 Running script ProjectXYPoint... Output X = 430122.831807, Y = 1316968.456714 Completed script ProjectXYPoint... Executed (ProjectXYPoint_7) successfully. End Time: Tue May 30 23:48:25 2006 (Elapsed Time: 19.00 secs)

ProjectXYPoint (Input_X_Coordinate, Input_Y_Coordinate, Input_Coordinate_System, Output_Coordinate_System, Geographic_Transformation)

**Parameters **

Expression | Explanation |
---|---|

Input X Coordinate (Required) | The X value of the input point. |

Input Y Coordinate (Required) | The Y value of the input point. |

Input Coordinate System (Required) | The coordinate system of the input point. |

Output Coordinate System (Required) | The coordinate system to which the input point is to be projected. |

Geographic Transformation (Optional) | The geographic transformation to be used when projected data from one datum to another. |

**Script Example **

# Import standard modules. import sys, string, os, win32com.client # Import projectxy script. # The directory that contains projectxy.py needs to be listed in the PYTHONPATH environment variable. import projectxy # Create the Geoprocessor object gp = win32com.client.Dispatch('esriGeoprocessing.GpDispatch.1') # Set workspace. gp.workspace = 'c:/workspace' # Reproject XY point. xy = projectxy.main(gp, '562835', '5082697', 'utm27.prj', 'albers83.prj', 'NAD_1927_To_NAD_1983_NADCON')