<?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 Can python pull in feature information such as extents or coordinate system? in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/can-python-pull-in-feature-information-such-as/m-p/53587#M200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SStrand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been putting together a python script to automate metadata creation. For the most part it is just simple find/replace in a word document. I was curious though, is there anything in arcpy which allows us to target a layer and extract information from it, like its extents or coordinate system? I'm not talking about setting it, but finding out what it currently is and having those values written out to text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 14:39:15 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-01-07T14:39:15Z</dc:date>
    <item>
      <title>Can python pull in feature information such as extents or coordinate system?</title>
      <link>https://community.esri.com/t5/transportation-questions/can-python-pull-in-feature-information-such-as/m-p/53587#M200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SStrand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been putting together a python script to automate metadata creation. For the most part it is just simple find/replace in a word document. I was curious though, is there anything in arcpy which allows us to target a layer and extract information from it, like its extents or coordinate system? I'm not talking about setting it, but finding out what it currently is and having those values written out to text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 14:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/can-python-pull-in-feature-information-such-as/m-p/53587#M200</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-07T14:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can python pull in feature information such as extents or coordinate system?</title>
      <link>https://community.esri.com/t5/transportation-questions/can-python-pull-in-feature-information-such-as/m-p/53588#M201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jamesfreddyc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;scroll to the bottom of each page for code examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Extent/018z00000072000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Extent/018z00000072000000/&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z0000000v000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018z0000000v000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how I get the Extent of a layer with arcgisscripting(9.3) where I need to set the extent of the Geoprocessor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;[INDENT]#set fc to a stored layer extlyrDESC = gp.describe(fc)&amp;nbsp; xmin = extlyrDESC.Extent.XMin ymin = extlyrDESC.Extent.YMin xmax = extlyrDESC.Extent.XMax ymax = extlyrDESC.Extent.YMax&amp;nbsp;&amp;nbsp; ### sets the actual extent of the Geoprocessor object strExt = str("%f " % xmin + "%f " % ymin + "%f " % xmax + "%f" % ymax) gp.Extent = strExt[/INDENT]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 14:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/can-python-pull-in-feature-information-such-as/m-p/53588#M201</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-07T14:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can python pull in feature information such as extents or coordinate system?</title>
      <link>https://community.esri.com/t5/transportation-questions/can-python-pull-in-feature-information-such-as/m-p/53589#M202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SStrand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much James. It is in the code and working great! Exactly what I needed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 15:37:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/can-python-pull-in-feature-information-such-as/m-p/53589#M202</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-07T15:37:36Z</dc:date>
    </item>
  </channel>
</rss>

