<?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 Output Coordinate System breaks clipping in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091540#M62156</link>
    <description>&lt;P&gt;I have a working Arc Pro python script in a toolbox which works just fine.&lt;/P&gt;&lt;P&gt;I would now like to set the outputcoordinatesystem to project (and eventually transform) my clipping output.&lt;/P&gt;&lt;P&gt;Whenever I set my env outputcordinatesystem to something, I get no features output. No errors from the clipping process, feature classes created, but no features. All input data is GDA94 Lat, Long (4238). The clipping polygon is created from a map extent, the map and clipping polygon are both in&amp;nbsp;4238&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(28356)&amp;nbsp; #this is GDA94 MGA56&lt;/P&gt;&lt;P&gt;I have tried various outputcoordinatesystems - same result&lt;/P&gt;&lt;P&gt;I have just tried setting the outputcoordinatesystem to&amp;nbsp;4238&amp;nbsp; - the same as the input and everything works fine!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am at a bit of a loss. I thought this would be a one line change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated,&lt;/P&gt;&lt;P&gt;Ian Hamilton&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 02:03:30 GMT</pubDate>
    <dc:creator>IanHamilton2</dc:creator>
    <dc:date>2021-08-24T02:03:30Z</dc:date>
    <item>
      <title>Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091540#M62156</link>
      <description>&lt;P&gt;I have a working Arc Pro python script in a toolbox which works just fine.&lt;/P&gt;&lt;P&gt;I would now like to set the outputcoordinatesystem to project (and eventually transform) my clipping output.&lt;/P&gt;&lt;P&gt;Whenever I set my env outputcordinatesystem to something, I get no features output. No errors from the clipping process, feature classes created, but no features. All input data is GDA94 Lat, Long (4238). The clipping polygon is created from a map extent, the map and clipping polygon are both in&amp;nbsp;4238&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(28356)&amp;nbsp; #this is GDA94 MGA56&lt;/P&gt;&lt;P&gt;I have tried various outputcoordinatesystems - same result&lt;/P&gt;&lt;P&gt;I have just tried setting the outputcoordinatesystem to&amp;nbsp;4238&amp;nbsp; - the same as the input and everything works fine!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am at a bit of a loss. I thought this would be a one line change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated,&lt;/P&gt;&lt;P&gt;Ian Hamilton&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 02:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091540#M62156</guid>
      <dc:creator>IanHamilton2</dc:creator>
      <dc:date>2021-08-24T02:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091552#M62157</link>
      <description>&lt;P&gt;is a transformation required as well?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/output-coordinate-system.htm" target="_blank"&gt;Output Coordinate System (Environment setting)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 02:29:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091552#M62157</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-08-24T02:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091553#M62158</link>
      <description>&lt;P&gt;Hi Dan, I don't think in this case as&amp;nbsp; the datum is GDA94 for both the input data and the projected. I did try putting in "" or&amp;nbsp; &amp;nbsp;[]&amp;nbsp; for the transformation and that broke it completely.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 02:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091553#M62158</guid>
      <dc:creator>IanHamilton2</dc:creator>
      <dc:date>2021-08-24T02:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091554#M62159</link>
      <description>&lt;P&gt;Could it be an extent issue? should I be setting an extent suitable for the output coordinate system?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 02:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091554#M62159</guid>
      <dc:creator>IanHamilton2</dc:creator>
      <dc:date>2021-08-24T02:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091556#M62160</link>
      <description>&lt;P&gt;Try using Project method on the clipped results and skip setting the outputCoordinateSystem.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/project.htm" target="_self"&gt;project&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 02:53:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091556#M62160</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-24T02:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091564#M62161</link>
      <description>&lt;P&gt;I can certainly do that. Though I was hoping to to have so much clean up after at then end of the script.&lt;/P&gt;&lt;P&gt;Is there someone I can raise this with to see if there is a related bug. I thought this would be a one line change to my code.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 03:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091564#M62161</guid>
      <dc:creator>IanHamilton2</dc:creator>
      <dc:date>2021-08-24T03:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091570#M62162</link>
      <description>&lt;P&gt;You can also share the code and it could be something else that is causing it to fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way to keep things clean(er) is to use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_self"&gt;memory&lt;/A&gt; workspace.&amp;nbsp; Output the clip results to it and then project it from there.&amp;nbsp; At the end of the script the memory workspace (and any temp geoprocessing results written to it) is garbage collected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are links in the documentation&amp;nbsp; ("Feedback on this topic") at the bottom to send feedback to ESRI.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 03:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091570#M62162</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-24T03:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091575#M62163</link>
      <description>&lt;P&gt;Thanks for that Jeff, I had thought that was only for ArcMap. I shall give. It a go.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 03:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1091575#M62163</guid>
      <dc:creator>IanHamilton2</dc:creator>
      <dc:date>2021-08-24T03:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Output Coordinate System breaks clipping</title>
      <link>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1097419#M62353</link>
      <description>&lt;P&gt;Sorry for the delayed response. I tried the memory method but unfortunately it is not possible project from a memory dataset to a physical one in a gdb. Only ESRI knows why.&lt;/P&gt;&lt;P&gt;I have created a temp feature class then projected it and deleted it.&lt;/P&gt;&lt;P&gt;The initial error when I was experiencing when projecting was an extent issue. I should have been using the camera to get the extent of the map frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 12:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/output-coordinate-system-breaks-clipping/m-p/1097419#M62353</guid>
      <dc:creator>IanHamilton2</dc:creator>
      <dc:date>2021-09-11T12:33:07Z</dc:date>
    </item>
  </channel>
</rss>

