<?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 Re: GP.Describe Extent property - wrong extent? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/gp-describe-extent-property-wrong-extent/m-p/201922#M6887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does anyone know why after fetching a describe object on a feature class and returning the Extent property, it returns the extent of the feature class in the current &lt;STRONG&gt;data frame&lt;/STRONG&gt; coordinate system, not the extent of the data in its native coordinate system.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;With data frame set to Web Mercator Aux Sphere&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;desc = gp.Describe(input)
extent = desc.Extent
gp.AddMessage(extent)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;returns&lt;/STRONG&gt;&lt;BR /&gt;-13375837.6548833 5207681.31544134 -13372787.8830635 5209463.98928341&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;With data frame set to NAD 83 Albers it returns&lt;/SPAN&gt;&lt;BR /&gt;587035.227167865 916043.393770546 589292.681698993 917353.957017839&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Also, a workaround would be to check the data frame projection against the input in the ToolValidator code, any ideas if there's a way to grab data frame projection from the geoprocessor?&amp;nbsp; I don't see any....&lt;BR /&gt;&lt;BR /&gt;Thanks, Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;== I am interested in getting the extent output in degrees decimal format for any input format, is that possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:02:03 GMT</pubDate>
    <dc:creator>AlPiszcz</dc:creator>
    <dc:date>2021-12-11T10:02:03Z</dc:date>
    <item>
      <title>GP.Describe Extent property - wrong extent?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/gp-describe-extent-property-wrong-extent/m-p/201921#M6886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know why after fetching a describe object on a feature class and returning the Extent property, it returns the extent of the feature class in the current &lt;/SPAN&gt;&lt;STRONG&gt;data frame&lt;/STRONG&gt;&lt;SPAN&gt; coordinate system, not the extent of the data in its native coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;With data frame set to Web Mercator Aux Sphere&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;desc = gp.Describe(input)
extent = desc.Extent
gp.AddMessage(extent)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;returns&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;-13375837.6548833 5207681.31544134 -13372787.8830635 5209463.98928341&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;With data frame set to NAD 83 Albers it returns&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;587035.227167865 916043.393770546 589292.681698993 917353.957017839&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, a workaround would be to check the data frame projection against the input in the ToolValidator code, any ideas if there's a way to grab data frame projection from the geoprocessor?&amp;nbsp; I don't see any....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 16:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/gp-describe-extent-property-wrong-extent/m-p/201921#M6886</guid>
      <dc:creator>MichaelRich</dc:creator>
      <dc:date>2010-05-26T16:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: GP.Describe Extent property - wrong extent?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/gp-describe-extent-property-wrong-extent/m-p/201922#M6887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does anyone know why after fetching a describe object on a feature class and returning the Extent property, it returns the extent of the feature class in the current &lt;STRONG&gt;data frame&lt;/STRONG&gt; coordinate system, not the extent of the data in its native coordinate system.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;With data frame set to Web Mercator Aux Sphere&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;desc = gp.Describe(input)
extent = desc.Extent
gp.AddMessage(extent)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;returns&lt;/STRONG&gt;&lt;BR /&gt;-13375837.6548833 5207681.31544134 -13372787.8830635 5209463.98928341&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;With data frame set to NAD 83 Albers it returns&lt;/SPAN&gt;&lt;BR /&gt;587035.227167865 916043.393770546 589292.681698993 917353.957017839&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Also, a workaround would be to check the data frame projection against the input in the ToolValidator code, any ideas if there's a way to grab data frame projection from the geoprocessor?&amp;nbsp; I don't see any....&lt;BR /&gt;&lt;BR /&gt;Thanks, Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;== I am interested in getting the extent output in degrees decimal format for any input format, is that possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/gp-describe-extent-property-wrong-extent/m-p/201922#M6887</guid>
      <dc:creator>AlPiszcz</dc:creator>
      <dc:date>2021-12-11T10:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: GP.Describe Extent property - wrong extent?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/gp-describe-extent-property-wrong-extent/m-p/201923#M6888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just stumbled across the same thing (using ArcGIS 9.3.1). How can I get the extent of a feature class in its native coordinate system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: just found a workaround:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14413705558641635 jive_text_macro" data-renderedposition="71_8_912_16" jivemacro_uid="_14413705558641635" modifiedtitle="true"&gt;&lt;P&gt;gp.Describe(gp.Describe(layer).CatalogPath).Extent&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;This returns the extent of the layer in its native coordinate system by referencing the layer's source file on disk.&lt;/P&gt;&lt;P&gt;But perhaps there is a better way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 11:55:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/gp-describe-extent-property-wrong-extent/m-p/201923#M6888</guid>
      <dc:creator>BGSWasser</dc:creator>
      <dc:date>2015-09-04T11:55:21Z</dc:date>
    </item>
  </channel>
</rss>

