<?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.Clip_analysis produces feature output without spatial reference in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-clip-analysis-produces-feature-output/m-p/585988#M19391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use `arcpy.Clip_analysis()` in a stand-along Python 3.6 script, the output is missing a spatial reference. When I complete the task within ArcGIS Pro using the GUI, the feature output maintains the spatial reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input feature, the clipping feature, and the output feature are each in a different file geodatabase. The clipping feature is a polygon and the clipping feature can be point, line, or polygon; I am experiencing the same issue with each feature type. The input feature and the clipping feature are both projected with "USA Contiguous Albers Equal Area Conic USGS."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I can change int the environmental settings? Other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2020 20:02:11 GMT</pubDate>
    <dc:creator>MichaelJust</dc:creator>
    <dc:date>2020-08-21T20:02:11Z</dc:date>
    <item>
      <title>arcpy.Clip_analysis produces feature output without spatial reference</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-clip-analysis-produces-feature-output/m-p/585988#M19391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use `arcpy.Clip_analysis()` in a stand-along Python 3.6 script, the output is missing a spatial reference. When I complete the task within ArcGIS Pro using the GUI, the feature output maintains the spatial reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input feature, the clipping feature, and the output feature are each in a different file geodatabase. The clipping feature is a polygon and the clipping feature can be point, line, or polygon; I am experiencing the same issue with each feature type. The input feature and the clipping feature are both projected with "USA Contiguous Albers Equal Area Conic USGS."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I can change int the environmental settings? Other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 20:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-clip-analysis-produces-feature-output/m-p/585988#M19391</guid>
      <dc:creator>MichaelJust</dc:creator>
      <dc:date>2020-08-21T20:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Clip_analysis produces feature output without spatial reference</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-clip-analysis-produces-feature-output/m-p/585989#M19392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(102039)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to have solved the issue. Is this best practice when working with feature data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 20:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-clip-analysis-produces-feature-output/m-p/585989#M19392</guid>
      <dc:creator>MichaelJust</dc:creator>
      <dc:date>2020-08-21T20:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Clip_analysis produces feature output without spatial reference</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-clip-analysis-produces-feature-output/m-p/585990#M19393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/6327"&gt;Michael Just&lt;/A&gt;‌ I would say yes, because explicit is better than implicit, especially is you look at all the considerations involved in determining an output coordinate system&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/appendices/spatial-reference-and-geoprocessing.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/appendices/spatial-reference-and-geoprocessing.htm"&gt;Spatial reference and geoprocessing—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though Clip supports the coordinate system environment variable, why assume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 21:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-clip-analysis-produces-feature-output/m-p/585990#M19393</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-08-21T21:16:55Z</dc:date>
    </item>
  </channel>
</rss>

