<?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 How to SET data source with python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-set-data-source-with-python/m-p/540968#M42270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using ArcGIS 9.3.1 with Python 2.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to change the data source of a lyr file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to get the data source via comtypes but I still don't find anything on how to set the data source, otherwise to change a data source of a lyr file from a shapefile to another&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also know with ArcGIS 10 we will have the arcpy.mapping module but at this moment I'm still working on 9.3.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyone for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 13:31:36 GMT</pubDate>
    <dc:creator>FrancescoScalise</dc:creator>
    <dc:date>2011-03-30T13:31:36Z</dc:date>
    <item>
      <title>How to SET data source with python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-set-data-source-with-python/m-p/540968#M42270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using ArcGIS 9.3.1 with Python 2.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to change the data source of a lyr file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to get the data source via comtypes but I still don't find anything on how to set the data source, otherwise to change a data source of a lyr file from a shapefile to another&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also know with ArcGIS 10 we will have the arcpy.mapping module but at this moment I'm still working on 9.3.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyone for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 13:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-set-data-source-with-python/m-p/540968#M42270</guid>
      <dc:creator>FrancescoScalise</dc:creator>
      <dc:date>2011-03-30T13:31:36Z</dc:date>
    </item>
  </channel>
</rss>

