<?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.env.Extent setting not working in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-env-extent-setting-not-working/m-p/1059822#M41142</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I set the arcpy.env.Extent to be a link to my feature class&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;dtm = 'C:/Users/brouwerj/Documents/kapiti_1m_dtm.tif'&lt;/P&gt;&lt;P&gt;arcpy.env.Extent = dtm&lt;/P&gt;&lt;P&gt;It isn't altering the extent of the output of the following to be the same as the (larger extent) dtm raster layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;buffer = 'shoreline_kapiti_NZGD_1kmBuffer'&lt;/P&gt;&lt;P&gt;arcpy.FeatureToRaster_conversion(buffer, "Shape_length","Buffer_ras",dtm)&lt;/P&gt;&lt;P&gt;I have also tried using arcpy.env.Extent = arcpy.Describe(dtm).extent&lt;/P&gt;&lt;P&gt;but that doesn't work either.&lt;/P&gt;&lt;P&gt;Do you have any idea why this isn't working?&lt;/P&gt;&lt;P&gt;When i try it in the software (Arcgis pro version 2.7.0) it works fine if I change everything in the environment settings tab of the feature to raster tool.&lt;/P&gt;&lt;P&gt;I'm using python 3.7.9 and Spyder 4.2.1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if arcpy has a version number or how to access that?&lt;/P&gt;&lt;P&gt;Please let me know if you can help, I'm not sure what I'm doing wrong!&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 08:48:20 GMT</pubDate>
    <dc:creator>JillBrouwer</dc:creator>
    <dc:date>2021-05-20T08:48:20Z</dc:date>
    <item>
      <title>arcpy.env.Extent setting not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-env-extent-setting-not-working/m-p/1059822#M41142</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I set the arcpy.env.Extent to be a link to my feature class&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;dtm = 'C:/Users/brouwerj/Documents/kapiti_1m_dtm.tif'&lt;/P&gt;&lt;P&gt;arcpy.env.Extent = dtm&lt;/P&gt;&lt;P&gt;It isn't altering the extent of the output of the following to be the same as the (larger extent) dtm raster layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;buffer = 'shoreline_kapiti_NZGD_1kmBuffer'&lt;/P&gt;&lt;P&gt;arcpy.FeatureToRaster_conversion(buffer, "Shape_length","Buffer_ras",dtm)&lt;/P&gt;&lt;P&gt;I have also tried using arcpy.env.Extent = arcpy.Describe(dtm).extent&lt;/P&gt;&lt;P&gt;but that doesn't work either.&lt;/P&gt;&lt;P&gt;Do you have any idea why this isn't working?&lt;/P&gt;&lt;P&gt;When i try it in the software (Arcgis pro version 2.7.0) it works fine if I change everything in the environment settings tab of the feature to raster tool.&lt;/P&gt;&lt;P&gt;I'm using python 3.7.9 and Spyder 4.2.1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if arcpy has a version number or how to access that?&lt;/P&gt;&lt;P&gt;Please let me know if you can help, I'm not sure what I'm doing wrong!&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 08:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-env-extent-setting-not-working/m-p/1059822#M41142</guid>
      <dc:creator>JillBrouwer</dc:creator>
      <dc:date>2021-05-20T08:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.env.Extent setting not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-env-extent-setting-not-working/m-p/1059868#M41155</link>
      <description>&lt;LI-CODE lang="markup"&gt;arcpy.env.extent = dtm&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;extent should be lower case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 12:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-env-extent-setting-not-working/m-p/1059868#M41155</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2021-05-20T12:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.env.Extent setting not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-env-extent-setting-not-working/m-p/1059921#M41166</link>
      <description>&lt;P&gt;oh wow haha that's embarrassing, sorry for wasting your time ! thanks for the help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 13:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-env-extent-setting-not-working/m-p/1059921#M41166</guid>
      <dc:creator>JillBrouwer</dc:creator>
      <dc:date>2021-05-20T13:48:13Z</dc:date>
    </item>
  </channel>
</rss>

