<?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 Retrieve imagery from the local server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/retrieve-imagery-from-the-local-server/m-p/499919#M39276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all , I am trying to write a code how to retrieve imagery from the server as a add data however I am not sure using the "layer" is the right word to call it. Writing in Pyscripter showed me the syntax check is ok however; it brings up another error saying Runtime Error: Object.Create Object cannot open map document&amp;nbsp; (_base.py)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do here is to have MapDocument open and run the script to call and add the imagery to ArcMap without having to manually add them .&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy, os&lt;/P&gt;&lt;P&gt;import arcpy.mapping as mapping&lt;/P&gt;&lt;P&gt;mxd = mapping.MapDocument("CURRENT")&lt;/P&gt;&lt;P&gt;df = mapping.ListDataFrames(mxd)&lt;/P&gt;&lt;P&gt;layer = mapping.Layer(r"S\Las Cruces SSO\NAIP_2009")&lt;/P&gt;&lt;P&gt;mapping.AddLayer(df,layer,"AUTO_ARRANGE")&lt;/P&gt;&lt;P&gt;del mxd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 18:53:49 GMT</pubDate>
    <dc:creator>DEAF_PROBERT_68</dc:creator>
    <dc:date>2015-01-29T18:53:49Z</dc:date>
    <item>
      <title>Retrieve imagery from the local server</title>
      <link>https://community.esri.com/t5/python-questions/retrieve-imagery-from-the-local-server/m-p/499919#M39276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all , I am trying to write a code how to retrieve imagery from the server as a add data however I am not sure using the "layer" is the right word to call it. Writing in Pyscripter showed me the syntax check is ok however; it brings up another error saying Runtime Error: Object.Create Object cannot open map document&amp;nbsp; (_base.py)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do here is to have MapDocument open and run the script to call and add the imagery to ArcMap without having to manually add them .&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy, os&lt;/P&gt;&lt;P&gt;import arcpy.mapping as mapping&lt;/P&gt;&lt;P&gt;mxd = mapping.MapDocument("CURRENT")&lt;/P&gt;&lt;P&gt;df = mapping.ListDataFrames(mxd)&lt;/P&gt;&lt;P&gt;layer = mapping.Layer(r"S\Las Cruces SSO\NAIP_2009")&lt;/P&gt;&lt;P&gt;mapping.AddLayer(df,layer,"AUTO_ARRANGE")&lt;/P&gt;&lt;P&gt;del mxd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 18:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/retrieve-imagery-from-the-local-server/m-p/499919#M39276</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2015-01-29T18:53:49Z</dc:date>
    </item>
  </channel>
</rss>

