<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Aliases for creating SpatialReference objects (Python) in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/aliases-for-creating-spatialreference-objects/m-p/252072#M8639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either one of the following statements works to create a spatial reference object (or string) for uses such as calling 'CreatFeatureclass' tool:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sr="GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]], \
PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];IsHighPrecision"
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sr = arcpy.SpatialReference('WGS 1984')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can do the following to get a new feature class that uses the 'sr' variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.CreateFeatureclass_management(mydir,fc, 'POINT','#','#','#', sr)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my question:&amp;nbsp; I like using the second statement better.&amp;nbsp; But I don't know how to refer to any other reference systems in this way, because I don't know the handle of any other ones.&amp;nbsp;&amp;nbsp; Is there a list of the short names (or aliases) available for all (or at least the most popular) of the reference systems?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 11:52:32 GMT</pubDate>
    <dc:creator>LT</dc:creator>
    <dc:date>2014-04-01T11:52:32Z</dc:date>
    <item>
      <title>Aliases for creating SpatialReference objects (Python)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/aliases-for-creating-spatialreference-objects/m-p/252072#M8639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either one of the following statements works to create a spatial reference object (or string) for uses such as calling 'CreatFeatureclass' tool:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sr="GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]], \
PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];IsHighPrecision"
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sr = arcpy.SpatialReference('WGS 1984')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can do the following to get a new feature class that uses the 'sr' variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.CreateFeatureclass_management(mydir,fc, 'POINT','#','#','#', sr)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my question:&amp;nbsp; I like using the second statement better.&amp;nbsp; But I don't know how to refer to any other reference systems in this way, because I don't know the handle of any other ones.&amp;nbsp;&amp;nbsp; Is there a list of the short names (or aliases) available for all (or at least the most popular) of the reference systems?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 11:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/aliases-for-creating-spatialreference-objects/m-p/252072#M8639</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2014-04-01T11:52:32Z</dc:date>
    </item>
  </channel>
</rss>

