![change projection arcmap change projection arcmap](https://desktop.arcgis.com/en/arcmap/latest/analyze/main/GUID-A4A78FE3-3B8F-48DD-BD7F-9BD7DE04D886-web.png)
DefineProjection_management ( in_dataset, coord_sys ) # print messages when the tool runs successfully print ( arcpy.
![change projection arcmap change projection arcmap](https://i.stack.imgur.com/niDxu.png)
Describe ( "citylim_utm11.shp" ) coord_sys = dsc.
![change projection arcmap change projection arcmap](http://4.bp.blogspot.com/-_7sej3yObrc/VS6m_oiDF-I/AAAAAAAAAIs/5HpBOz_dLtQ/s1600/3.jpg)
workspace = "C:/data" try : # set local variables in_dataset = "citylim_unk.shp" #"forest.shp" # get the coordinate system by describing a feature class dsc = arcpy. # Name: DefineProjection.py # Description: Records the coordinate system information for the specified input dataset or feature class # import system modules import arcpy # set workspace environment arcpy. Syntax (in_dataset, coor_system) Parameter First, I will briefly describe a few common coordinate systems. This blog post will outline each component of the ESRI projection file and where to find projection files. In HEC-RAS, an ESRI projection file is required to access the base maps available in RAS Mapper. Once it contains feature classes, its coordinate system cannot be changed. A projection file is used in GIS applications to georeference vector data. The coordinate system for a geodatabase dataset should be determined when it is created. When a dataset with a known coordinate system is input to this tool, the tool will issue a warning but will execute successfully.Īll feature classes in a geodatabase feature dataset will be in the same coordinate system. Another use is to assign the correct coordinate system for a dataset that has an incorrect coordinate system defined (for example, the coordinates are in UTM meters but the coordinate system is defined as geographic). The most common use for this tool is to assign a known coordinate system to a dataset with an unknown coordinate system (that is, the coordinate system is "Unknown" in the dataset properties). If you want to transform the geometry to another coordinate system, use the Project tool. This tool only updates the existing coordinate system information-it does not modify any geometry. You must know the correct coordinate system of the dataset before using this tool. If the coordinate system for a dataset is unknown or incorrect, you can use this tool to specify the correct coordinate system. This tool is intended for datasets that have an unknown or incorrect coordinate system defined.Īll geographic datasets have a coordinate system that is used throughout ArcGIS to display, measure, and transform geographic data. Overwrites the coordinate system information (map projection and datum) stored with a dataset.