-
Notifications
You must be signed in to change notification settings - Fork 0
/
ArcSnow.csv_upload.pyt.xml
5 lines (5 loc) · 4.74 KB
/
ArcSnow.csv_upload.pyt.xml
1
2
3
4
5
<?xml version="1.0"?>
<metadata xml:lang="en"><Esri><CreaDate>20211015</CreaDate><CreaTime>11494100</CreaTime><ArcGISFormat>1.0</ArcGISFormat><SyncOnce>TRUE</SyncOnce><ModDate>20211027</ModDate><ModTime>14190500</ModTime><scaleRange><minScale>150000000</minScale><maxScale>5000</maxScale></scaleRange><ArcGISProfile>ItemDescription</ArcGISProfile></Esri><tool name="csv_upload" displayname="Upload CSV" toolboxalias="ArcSnow" xmlns=""><arcToolboxHelpPath>c:\program files\arcgis\pro\Resources\Help\gp</arcToolboxHelpPath><parameters><param name="credentials" displayname="Credentials File" type="Required" direction="Input" datatype="File" expression="credentials"><dialogReference><DIV STYLE="text-align:Left;"><DIV><P><SPAN>This is the CredentialsFile.ini created by Pre-Flight &gt; Generate Credentials File.</SPAN></P><P><SPAN>The default location is the Home directory of your ArcGIS Pro Project.</SPAN></P></DIV></DIV></dialogReference></param><param name="in_csv" displayname="Input CSV" type="Required" direction="Input" datatype="File" expression="in_csv"><dialogReference><DIV STYLE="text-align:Left;"><DIV><P><SPAN>A .csv file to be uploaded to Snowflake. Currently the file is uploaded as a single SQL command so the tool should only be used on small csv files.</SPAN></P></DIV></DIV></dialogReference></param><param name="db_name" displayname="Database Name" type="Required" direction="Input" datatype="String" expression="db_name"><dialogReference><DIV STYLE="text-align:Left;"><DIV><P><SPAN>The Snowflake Database to connect to.</SPAN></P></DIV></DIV></dialogReference></param><param name="schema_name" displayname="Schema Name" type="Optional" direction="Input" datatype="String" expression="{schema_name}"><dialogReference><DIV STYLE="text-align:Left;"><DIV><P><SPAN>The Snowflake Schema to use.</SPAN></P></DIV></DIV></dialogReference></param><param name="table_name" displayname="Table Name" type="Required" direction="Input" datatype="String" expression="table_name"><dialogReference><DIV STYLE="text-align:Left;"><DIV><P><SPAN>The Snowflake table to create. This tool will REPLACE any existing table with no undo. It should be used with caution!</SPAN></P></DIV></DIV></dialogReference></param><param name="field_definition" displayname="Col Names to Field Definitions" type="Optional" direction="Input" datatype="Value Table" expression="{Name {Type} {Length} {Nullable};Name {Type} {Length} {Nullable}...}"><dialogReference><DIV STYLE="text-align:Left;"><DIV><P><SPAN>The tool will use Panda's interpolation to extract datatypes from the .csv. Then it converts those datatypes to Snowflake Field types.</SPAN></P></DIV></DIV></dialogReference></param></parameters><summary><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>A Python script that is part of the ArcSnow toolbox for ArcGIS Pro.</SPAN></P><P><SPAN>An Open Source ArcGIS Pro Toolbox for use with Snowflake.</SPAN></P><P><SPAN>This Toolbox was created by members of the Advanced GIS Practicum Course at Claremont Graduate University.</SPAN></P></DIV></DIV></DIV></summary><usage><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>WARNING: This script will DROP then ADD and INSERT data. It will DELETE and REPLACE any existing table with the same name, and replace it with new data from the .csv. It will not merge data. This can not be undone.</SPAN></P><OL><LI><P><SPAN>Create a Credentials.ini file with the ArcSnow &gt; Pre-Flight &gt; Create Credentials File</SPAN></P></LI><LI><P><SPAN>Select a .csv file from anywhere.</SPAN></P></LI><LI><P><SPAN>Confirm the Automatic Column Naming and Types of the Field Name -&gt; Snowflake Columns</SPAN></P></LI><LI><P><SPAN>Press Run to Upload the CSV.</SPAN></P></LI></OL></DIV></DIV></DIV></usage></tool><dataIdInfo><idCitation><resTitle>Upload CSV</resTitle></idCitation><idCredit>Ho Ming Yim
Will Wagner
Brian Hilton
John Tangenberg</idCredit><searchKeys><keyword>Snowflake</keyword><keyword>CSV</keyword><keyword>Python</keyword></searchKeys></dataIdInfo><distInfo><distributor><distorFormat><formatName>ArcToolbox Tool</formatName></distorFormat></distributor></distInfo><mdHrLv><ScopeCd value="005"/></mdHrLv><mdDateSt Sync="TRUE">20211027</mdDateSt></metadata>