<?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 arcpy, spatial reference in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-spatial-reference/m-p/445937#M34973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When setting an ouputcoordinate system in python I keep getting an error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a sample of the code up to the point where the error occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy, os, sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print "Processing ..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#set up a relative path.&amp;nbsp; This returns the folder where the script is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;relativePath = os.path.dirname(sys.argv[0])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Set up environment settings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = "c:/.gdb" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.outputCoordinateSystem="Coordinate Systems/Projected Coordinate Systems/State Plane/NAD 1983(US Feet)/NAD 1983 StatePlane Pennsylvania North FIPS 3701(US Feet).prj"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;This error is returned:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "Y:\Planning\GIS Planning Analyst\projects\county_map_book\1_GenerateIndexLayers.py", line 11, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.outputCoordinateSystem="Coordinate Systems/Projected Coordinate Systems/State Plane/NAD 1983(US Feet)/NAD 1983 StatePlane Pennsylvania North FIPS 3701(US Feet).prj"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 505, in set_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self[env] = val&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 557, in __setitem__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret_ = setattr(self._gp, item, value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: &amp;lt;unprintable RuntimeError object&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 15:14:28 GMT</pubDate>
    <dc:creator>SamanthaEdwards</dc:creator>
    <dc:date>2011-12-09T15:14:28Z</dc:date>
    <item>
      <title>arcpy, spatial reference</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-reference/m-p/445937#M34973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When setting an ouputcoordinate system in python I keep getting an error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a sample of the code up to the point where the error occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy, os, sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print "Processing ..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#set up a relative path.&amp;nbsp; This returns the folder where the script is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;relativePath = os.path.dirname(sys.argv[0])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Set up environment settings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = "c:/.gdb" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.outputCoordinateSystem="Coordinate Systems/Projected Coordinate Systems/State Plane/NAD 1983(US Feet)/NAD 1983 StatePlane Pennsylvania North FIPS 3701(US Feet).prj"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;This error is returned:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "Y:\Planning\GIS Planning Analyst\projects\county_map_book\1_GenerateIndexLayers.py", line 11, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.outputCoordinateSystem="Coordinate Systems/Projected Coordinate Systems/State Plane/NAD 1983(US Feet)/NAD 1983 StatePlane Pennsylvania North FIPS 3701(US Feet).prj"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 505, in set_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self[env] = val&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 557, in __setitem__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret_ = setattr(self._gp, item, value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: &amp;lt;unprintable RuntimeError object&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 15:14:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-reference/m-p/445937#M34973</guid>
      <dc:creator>SamanthaEdwards</dc:creator>
      <dc:date>2011-12-09T15:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy, spatial reference</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-reference/m-p/445938#M34974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Runtime error is what it returns if you have given it an incorrect/invalid path. In this case you have missed a space before the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;(US Feet)&lt;/SPAN&gt;&lt;SPAN&gt; both times...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.env.outputCoordinateSystem="Coordinate Systems/Projected Coordinate Systems/State Plane/NAD 1983(US Feet)/NAD 1983 StatePlane Pennsylvania North FIPS 3701(US Feet).prj"&lt;/PRE&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Should instead be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.env.outputCoordinateSystem="Coordinate Systems/Projected Coordinate Systems/State Plane/NAD 1983 (US Feet)/NAD 1983 StatePlane Pennsylvania North FIPS 3701 (US Feet).prj"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 17:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-reference/m-p/445938#M34974</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2011-12-09T17:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy, spatial reference</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-reference/m-p/445939#M34975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, that was easy. Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 17:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-reference/m-p/445939#M34975</guid>
      <dc:creator>SamanthaEdwards</dc:creator>
      <dc:date>2011-12-09T17:59:52Z</dc:date>
    </item>
  </channel>
</rss>

