<?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 GP Service to spatial data from shape file to oracle spatial in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/gp-service-to-spatial-data-from-shape-file-to/m-p/185275#M6284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am able to load the shape files into ArcSDE oracle spatial using below script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for shpFile,oraTable in zip(arrRawFC,arrOracleFC):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for inFC in arcpy.ListFeatureClasses(shpFile+'*'):&lt;/P&gt;&lt;P&gt; arcpy.AddMessage( 'Appending'+shpFile+ 'to'+'Database Connections/MySDE_dev.sde//'+oraTable)&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; try:&lt;/P&gt;&lt;P&gt; arcpy.Append_management(inFC, 'Database Connections/MySDE_dev.sde//'+ oraTable , 'NO_TEST', '', '')&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; except Exception as e:&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; # If an error occurred, print line number and error message&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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; tb = sys.exc_info()[2]&lt;/P&gt;&lt;P&gt; #arcpy.AddMessage("Line {0}".format(tb.tb_lineno))&lt;/P&gt;&lt;P&gt; arcpy.AddMessage(e.message)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have published script as GP service and when i am executing it it is tool is executing but no results in oracle table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one is having idea how to load shape files on to oracle spatial on web application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2015 11:37:35 GMT</pubDate>
    <dc:creator>praveennarayandas</dc:creator>
    <dc:date>2015-02-03T11:37:35Z</dc:date>
    <item>
      <title>GP Service to spatial data from shape file to oracle spatial</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/gp-service-to-spatial-data-from-shape-file-to/m-p/185275#M6284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am able to load the shape files into ArcSDE oracle spatial using below script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for shpFile,oraTable in zip(arrRawFC,arrOracleFC):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for inFC in arcpy.ListFeatureClasses(shpFile+'*'):&lt;/P&gt;&lt;P&gt; arcpy.AddMessage( 'Appending'+shpFile+ 'to'+'Database Connections/MySDE_dev.sde//'+oraTable)&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; try:&lt;/P&gt;&lt;P&gt; arcpy.Append_management(inFC, 'Database Connections/MySDE_dev.sde//'+ oraTable , 'NO_TEST', '', '')&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; except Exception as e:&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; # If an error occurred, print line number and error message&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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; tb = sys.exc_info()[2]&lt;/P&gt;&lt;P&gt; #arcpy.AddMessage("Line {0}".format(tb.tb_lineno))&lt;/P&gt;&lt;P&gt; arcpy.AddMessage(e.message)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have published script as GP service and when i am executing it it is tool is executing but no results in oracle table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one is having idea how to load shape files on to oracle spatial on web application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 11:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/gp-service-to-spatial-data-from-shape-file-to/m-p/185275#M6284</guid>
      <dc:creator>praveennarayandas</dc:creator>
      <dc:date>2015-02-03T11:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service to spatial data from shape file to oracle spatial</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/gp-service-to-spatial-data-from-shape-file-to/m-p/185276#M6285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't look to be complete script. Are you seeing the gp services log messages when you are calling append ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have experience in uploading data that will be used in gp service. Following is a blog that helped me in understanding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/06/01/uploading-client-data-to-perform-thematic-mapping-on-the-server/" title="http://blogs.esri.com/esri/arcgis/2012/06/01/uploading-client-data-to-perform-thematic-mapping-on-the-server/"&gt;Uploading client data to perform thematic mapping on the server | ArcGIS Blog&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you need to zip your shapefile and upload it then do whatever you want to do with it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/gp-service-to-spatial-data-from-shape-file-to/m-p/185276#M6285</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2015-02-03T14:21:08Z</dc:date>
    </item>
  </channel>
</rss>

