<?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: Add SQL Table, Convert to Shapefile and export to ArcGIS Server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/add-sql-table-convert-to-shapefile-and-export-to/m-p/295504#M22845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it seems that I can upload the mxd to the server using this so my last part is completed.&amp;nbsp; That is very cool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# create service definition draft&lt;/P&gt;&lt;P&gt;analysis = arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft, service, 'ARCGIS_SERVER', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con, True, folder, None, None)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still need to import the SQL View, check the projection and save it as a shapefile. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2014 11:08:19 GMT</pubDate>
    <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
    <dc:date>2014-10-24T11:08:19Z</dc:date>
    <item>
      <title>Add SQL Table, Convert to Shapefile and export to ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/add-sql-table-convert-to-shapefile-and-export-to/m-p/295503#M22844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very new to Python and very excited.&amp;nbsp; Moving from VBA.&amp;nbsp; The first mini project is to update my ArcGIS Server files.&amp;nbsp; I've heard you can do this with Python Scripting.&amp;nbsp; It would be great if I could automate this process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Here is what I need to do&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;Open up new project&lt;/P&gt;&lt;P&gt;Import a table from an SQL DB called "GISWEB.VW_MCYWEB" using an ODBC connection called "AR"&lt;/P&gt;&lt;P&gt;Make sure this file is webmercator because it is used in a JavaScript application&lt;/P&gt;&lt;P&gt;Convert this file to a shapefile called MCYWEB.shp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then open up an MXD and Publish that MXD to the server.&amp;nbsp; The layers in the map are linked to the shapefile created earlier and already have symbology. &lt;/P&gt;&lt;P&gt;If possible have this run once a week.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is python this powerful?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 17:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-sql-table-convert-to-shapefile-and-export-to/m-p/295503#M22844</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-10-22T17:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add SQL Table, Convert to Shapefile and export to ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/add-sql-table-convert-to-shapefile-and-export-to/m-p/295504#M22845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it seems that I can upload the mxd to the server using this so my last part is completed.&amp;nbsp; That is very cool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# create service definition draft&lt;/P&gt;&lt;P&gt;analysis = arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft, service, 'ARCGIS_SERVER', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con, True, folder, None, None)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still need to import the SQL View, check the projection and save it as a shapefile. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 11:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-sql-table-convert-to-shapefile-and-export-to/m-p/295504#M22845</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-10-24T11:08:19Z</dc:date>
    </item>
  </channel>
</rss>

