├── .gitattributes ├── .gitignore ├── 1.4 ├── Config.daml ├── DataAssistant.csproj ├── Helpers.cs └── bin │ └── Release │ └── DataAssistant.esriAddinX ├── 2.0 ├── Config.daml ├── DataAssistant.csproj ├── Helpers.cs └── bin │ └── Release │ └── DataAssistant.esriAddinX ├── 3.0 ├── Config.daml ├── DataAssistant.csproj ├── Helpers.cs └── Properties │ └── launchSettings.json ├── DataAssistant1.4.sln ├── DataAssistant2.0.sln ├── DataAssistant3.0.sln ├── LICENSE.txt ├── Properties └── AssemblyInfo.cs ├── README.md ├── Shared ├── DarkImages │ ├── .DS_Store │ ├── AppendData16.png │ ├── AppendData32.png │ ├── CogWheel16.png │ ├── CogWheel32.png │ ├── DataMapper16.png │ ├── DataMapper32.png │ ├── NewFile16.png │ ├── NewFile32.png │ ├── Preview16.png │ ├── Preview32.png │ ├── ReplaceData16.png │ ├── ReplaceData32.png │ ├── StageData16.png │ └── StageData32.png ├── DataClasses.cs ├── Dockpane1.xaml ├── Dockpane1.xaml.cs ├── Dockpane1Apply.cs ├── Dockpane1CheckXmlFile.cs ├── Dockpane1Domains.cs ├── Dockpane1Preview.cs ├── Dockpane1ViewModel.cs ├── Dockpane2Settings.xaml ├── Dockpane2Settings.xaml.cs ├── Dockpane2SettingsViewModel.cs ├── GPTools │ ├── DataLoadingAssistant.tbx │ └── arcpy │ │ ├── FieldMatcher.xsl │ │ ├── MatchLocal.xml │ │ ├── dla.py │ │ ├── dlaAppendData.py │ │ ├── dlaCreateSourceTarget.py │ │ ├── dlaExtractLayerToGDB.py │ │ ├── dlaFieldCalculator.py │ │ ├── dlaPreview.py │ │ ├── dlaPublish.py │ │ ├── dlaReplaceByField.py │ │ ├── dlaService.py │ │ ├── dlaStage.py │ │ └── testHarness.py ├── Images │ ├── AddInDesktop16.png │ ├── AppendData16.png │ ├── AppendData32.png │ ├── CogWheel16.png │ ├── CogWheel32.png │ ├── DataMapper16.png │ ├── DataMapper32.png │ ├── NewFile16.png │ ├── NewFile32.png │ ├── Preview16.png │ ├── Preview32.png │ ├── ReplaceData16.png │ ├── ReplaceData32.png │ ├── StageData16.png │ └── StageData32.png ├── Module1.cs └── gridTooltipCreator.cs └── version.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # Byte-compiled / optimized / DLL files 5 | __pycache__/ 6 | *.py[cod] 7 | *$py.class 8 | 9 | # User-specific files 10 | *.suo 11 | *.user 12 | *.userosscache 13 | *.sln.docstates 14 | 15 | # User-specific files (MonoDevelop/Xamarin Studio) 16 | *.userprefs 17 | 18 | # Build results 19 | [Dd]ebug/ 20 | [Dd]ebugPublic/ 21 | [Rr]elease/ 22 | [Rr]eleases/ 23 | x64/ 24 | x86/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Ll]og/ 29 | 30 | # Include release build of the 1.4,2.0,3.0 add-ins 31 | 3.0/* 32 | !3.0/bin 33 | 3.0/bin/* 34 | !3.0/bin/Release/ 35 | 3.0/bin/Release/* 36 | !3.0/bin/Release/*.esriAddInX 37 | 2.0/* 38 | !2.0/bin 39 | 2.0/bin/* 40 | !2.0/bin/Release/ 41 | 2.0/bin/Release/* 42 | !2.0/bin/Release/*.esriAddInX 43 | 1.4/* 44 | !1.4/bin 45 | 1.4/bin/* 46 | !1.4/bin/Release/ 47 | 1.4/bin/Release/* 48 | !1.4/bin/Release/*.esriAddInX 49 | 50 | # Visual Studio 2015 cache/options directory 51 | .vs/ 52 | # Uncomment if you have tasks that create the project's static files in wwwroot 53 | #wwwroot/ 54 | 55 | # MSTest test Results 56 | [Tt]est[Rr]esult*/ 57 | [Bb]uild[Ll]og.* 58 | 59 | # NUNIT 60 | *.VisualState.xml 61 | TestResult.xml 62 | 63 | # Build Results of an ATL Project 64 | [Dd]ebugPS/ 65 | [Rr]eleasePS/ 66 | dlldata.c 67 | 68 | # DNX 69 | project.lock.json 70 | artifacts/ 71 | 72 | *_i.c 73 | *_p.c 74 | *_i.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.pch 79 | *.pdb 80 | *.pgc 81 | *.pgd 82 | *.rsp 83 | *.sbr 84 | *.tlb 85 | *.tli 86 | *.tlh 87 | *.tmp 88 | *.tmp_proj 89 | *.log 90 | *.vspscc 91 | *.vssscc 92 | .builds 93 | *.pidb 94 | *.svclog 95 | *.scc 96 | 97 | # Chutzpah Test files 98 | _Chutzpah* 99 | 100 | # Visual C++ cache files 101 | ipch/ 102 | *.aps 103 | *.ncb 104 | *.opendb 105 | *.opensdf 106 | *.sdf 107 | *.cachefile 108 | *.VC.db 109 | *.VC.VC.opendb 110 | 111 | # Visual Studio profiler 112 | *.psess 113 | *.vsp 114 | *.vspx 115 | *.sap 116 | 117 | # TFS 2012 Local Workspace 118 | $tf/ 119 | 120 | # Guidance Automation Toolkit 121 | *.gpState 122 | 123 | # ReSharper is a .NET coding add-in 124 | _ReSharper*/ 125 | *.[Rr]e[Ss]harper 126 | *.DotSettings.user 127 | 128 | # JustCode is a .NET coding add-in 129 | .JustCode 130 | 131 | # TeamCity is a build add-in 132 | _TeamCity* 133 | 134 | # DotCover is a Code Coverage Tool 135 | *.dotCover 136 | 137 | # NCrunch 138 | _NCrunch_* 139 | .*crunch*.local.xml 140 | nCrunchTemp_* 141 | 142 | # MightyMoose 143 | *.mm.* 144 | AutoTest.Net/ 145 | 146 | # Web workbench (sass) 147 | .sass-cache/ 148 | 149 | # Installshield output folder 150 | [Ee]xpress/ 151 | 152 | # DocProject is a documentation generator add-in 153 | DocProject/buildhelp/ 154 | DocProject/Help/*.HxT 155 | DocProject/Help/*.HxC 156 | DocProject/Help/*.hhc 157 | DocProject/Help/*.hhk 158 | DocProject/Help/*.hhp 159 | DocProject/Help/Html2 160 | DocProject/Help/html 161 | 162 | # Click-Once directory 163 | publish/ 164 | 165 | # Publish Web Output 166 | *.[Pp]ublish.xml 167 | *.azurePubxml 168 | # TODO: Comment the next line if you want to checkin your web deploy settings 169 | # but database connection strings (with potential passwords) will be unencrypted 170 | *.pubxml 171 | *.publishproj 172 | 173 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 174 | # checkin your Azure Web App publish settings, but sensitive information contained 175 | # in these scripts will be unencrypted 176 | PublishScripts/ 177 | 178 | # NuGet Packages 179 | *.nupkg 180 | # The packages folder can be ignored because of Package Restore 181 | **/packages/* 182 | # except build/, which is used as an MSBuild target. 183 | !**/packages/build/ 184 | # Uncomment if necessary however generally it will be regenerated when needed 185 | #!**/packages/repositories.config 186 | # NuGet v3's project.json files produces more ignoreable files 187 | *.nuget.props 188 | *.nuget.targets 189 | 190 | # Microsoft Azure Build Output 191 | csx/ 192 | *.build.csdef 193 | 194 | # Microsoft Azure Emulator 195 | ecf/ 196 | rcf/ 197 | 198 | # Windows Store app package directories and files 199 | AppPackages/ 200 | BundleArtifacts/ 201 | Package.StoreAssociation.xml 202 | _pkginfo.txt 203 | 204 | # Visual Studio cache files 205 | # files ending in .cache can be ignored 206 | *.[Cc]ache 207 | # but keep track of directories ending in .cache 208 | !*.[Cc]ache/ 209 | 210 | # Others 211 | ClientBin/ 212 | ~$* 213 | *~ 214 | *.dbmdl 215 | *.dbproj.schemaview 216 | *.pfx 217 | *.publishsettings 218 | node_modules/ 219 | orleans.codegen.cs 220 | 221 | # Since there are multiple workflows, uncomment next line to ignore bower_components 222 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 223 | #bower_components/ 224 | 225 | # RIA/Silverlight projects 226 | Generated_Code/ 227 | 228 | # Backup & report files from converting an old project file 229 | # to a newer Visual Studio version. Backup files are not needed, 230 | # because we have git ;-) 231 | _UpgradeReport_Files/ 232 | Backup*/ 233 | UpgradeLog*.XML 234 | UpgradeLog*.htm 235 | 236 | # SQL Server files 237 | *.mdf 238 | *.ldf 239 | 240 | # Business Intelligence projects 241 | *.rdl.data 242 | *.bim.layout 243 | *.bim_*.settings 244 | 245 | # Microsoft Fakes 246 | FakesAssemblies/ 247 | 248 | # GhostDoc plugin setting file 249 | *.GhostDoc.xml 250 | 251 | # Node.js Tools for Visual Studio 252 | .ntvs_analysis.dat 253 | 254 | # Visual Studio 6 build log 255 | *.plg 256 | 257 | # Visual Studio 6 workspace options file 258 | *.opt 259 | 260 | # Visual Studio LightSwitch build output 261 | **/*.HTMLClient/GeneratedArtifacts 262 | **/*.DesktopClient/GeneratedArtifacts 263 | **/*.DesktopClient/ModelManifest.xml 264 | **/*.Server/GeneratedArtifacts 265 | **/*.Server/ModelManifest.xml 266 | _Pvt_Extensions 267 | 268 | # Paket dependency manager 269 | .paket/paket.exe 270 | paket-files/ 271 | 272 | # FAKE - F# Make 273 | .fake/ 274 | 275 | # JetBrains Rider 276 | .idea/ 277 | *.sln.iml 278 | -------------------------------------------------------------------------------- /1.4/Config.daml: -------------------------------------------------------------------------------- 1 |  2 | 3 | DataAssistant 4 | The Data Assistant can be used to transform your organization’s data and load it into a database or service. 5 | Images\DataMapper32.png 6 | Esri 7 | Vertex3 for Esri 8 | 2017.4.26 9 | Content,Framework,Data Loading Assistant 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 35 | 38 | 42 | 46 | 50 | 54 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /1.4/DataAssistant.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1} 9 | Library 10 | Properties 11 | DataAssistant 12 | DataAssistant 13 | v4.6.1 14 | 512 15 | 16 | 17 | 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | Program 26 | C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe 27 | AnyCPU 28 | 29 | 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | Program 37 | C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe 38 | AnyCPU 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 58 | False 59 | 60 | 61 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 62 | False 63 | 64 | 65 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 66 | False 67 | 68 | 69 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 70 | False 71 | 72 | 73 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 74 | False 75 | 76 | 77 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 78 | False 79 | 80 | 81 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 82 | False 83 | 84 | 85 | 86 | 87 | Designer 88 | 89 | 90 | 91 | 92 | 93 | Dockpane1.xaml 94 | 95 | 96 | 97 | 98 | 99 | Dockpane2Settings.xaml 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | Properties\AssemblyInfo.cs 108 | 109 | 110 | 111 | 112 | 113 | DarkImages\AppendData16.png 114 | 115 | 116 | DarkImages\AppendData32.png 117 | 118 | 119 | DarkImages\CogWheel16.png 120 | 121 | 122 | DarkImages\CogWheel32.png 123 | 124 | 125 | DarkImages\DataMapper16.png 126 | 127 | 128 | DarkImages\DataMapper32.png 129 | 130 | 131 | DarkImages\NewFile16.png 132 | 133 | 134 | DarkImages\NewFile32.png 135 | 136 | 137 | DarkImages\Preview16.png 138 | 139 | 140 | DarkImages\Preview32.png 141 | 142 | 143 | DarkImages\ReplaceData16.png 144 | 145 | 146 | DarkImages\ReplaceData32.png 147 | 148 | 149 | DarkImages\StageData16.png 150 | 151 | 152 | DarkImages\StageData32.png 153 | 154 | 155 | PreserveNewest 156 | GPTools\arcpy\dla.py 157 | 158 | 159 | PreserveNewest 160 | GPTools\arcpy\dlaExtractLayerToGDB.py 161 | 162 | 163 | PreserveNewest 164 | GPTools\arcpy\dlaService.py 165 | 166 | 167 | PreserveNewest 168 | GPTools\arcpy\dlaAppendData.py 169 | 170 | 171 | PreserveNewest 172 | GPTools\arcpy\dlaCreateSourceTarget.py 173 | 174 | 175 | Images\AppendData16.png 176 | 177 | 178 | Images\AppendData32.png 179 | 180 | 181 | Images\CogWheel16.png 182 | 183 | 184 | Images\CogWheel32.png 185 | 186 | 187 | Images\DataMapper16.png 188 | 189 | 190 | Images\DataMapper32.png 191 | 192 | 193 | Images\NewFile16.png 194 | 195 | 196 | Images\NewFile32.png 197 | 198 | 199 | Images\Preview16.png 200 | 201 | 202 | Images\Preview32.png 203 | 204 | 205 | Images\ReplaceData16.png 206 | 207 | 208 | Images\ReplaceData32.png 209 | 210 | 211 | Images\StageData16.png 212 | 213 | 214 | Images\StageData32.png 215 | 216 | 217 | 218 | 219 | PreserveNewest 220 | GPTools\arcpy\dlaFieldCalculator.py 221 | 222 | 223 | PreserveNewest 224 | GPTools\arcpy\dlaPreview.py 225 | 226 | 227 | PreserveNewest 228 | GPTools\arcpy\dlaPublish.py 229 | 230 | 231 | PreserveNewest 232 | GPTools\arcpy\dlaReplaceByField.py 233 | 234 | 235 | PreserveNewest 236 | GPTools\arcpy\dlaStage.py 237 | 238 | 239 | PreserveNewest 240 | GPTools\arcpy\FieldMatcher.xsl 241 | 242 | 243 | PreserveNewest 244 | GPTools\arcpy\MatchLocal.xml 245 | 246 | 247 | Always 248 | GPTools\DataLoadingAssistant.tbx 249 | 250 | 251 | 252 | 253 | Designer 254 | MSBuild:Compile 255 | 256 | 257 | Designer 258 | MSBuild:Compile 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 274 | 275 | 276 | 277 | -------------------------------------------------------------------------------- /1.4/Helpers.cs: -------------------------------------------------------------------------------- 1 | using ArcGIS.Desktop.Core; 2 | using ArcGIS.Desktop.Mapping; 3 | using System; 4 | using System.Threading.Tasks; 5 | 6 | namespace DataAssistant 7 | { 8 | internal static class Helpers 9 | { 10 | internal static FeatureLayer CreateFeatureLayer(Uri uri, Map map) 11 | { 12 | return LayerFactory.CreateFeatureLayer(uri, MapView.Active.Map); 13 | } 14 | 15 | internal static Task AddProjectItem(string path) 16 | { 17 | return Project.Current.AddAsync(ItemFactory.Create(path)); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /1.4/bin/Release/DataAssistant.esriAddinX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/1.4/bin/Release/DataAssistant.esriAddinX -------------------------------------------------------------------------------- /2.0/Config.daml: -------------------------------------------------------------------------------- 1 |  2 | 3 | DataAssistant 4 | The Data Assistant can be used to transform your organization’s data and load it into a database or service. 5 | Images\DataMapper32.png 6 | Esri 7 | Vertex3 for Esri 8 | 2017.4.26 9 | Content,Framework,Data Loading Assistant 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 35 | 38 | 42 | 46 | 50 | 54 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /2.0/DataAssistant.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1} 9 | Library 10 | Properties 11 | DataAssistant 12 | DataAssistant 13 | v4.6.1 14 | 512 15 | 16 | 17 | 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | Program 26 | C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe 27 | AnyCPU 28 | 29 | 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | Program 37 | C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe 38 | AnyCPU 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 58 | False 59 | 60 | 61 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 62 | False 63 | 64 | 65 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 66 | False 67 | 68 | 69 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 70 | False 71 | 72 | 73 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 74 | False 75 | 76 | 77 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 78 | False 79 | 80 | 81 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 82 | False 83 | 84 | 85 | 86 | 87 | Designer 88 | 89 | 90 | 91 | 92 | 93 | Dockpane1.xaml 94 | 95 | 96 | 97 | 98 | 99 | Dockpane2Settings.xaml 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | Properties\AssemblyInfo.cs 108 | 109 | 110 | 111 | 112 | 113 | DarkImages\AppendData16.png 114 | 115 | 116 | DarkImages\AppendData32.png 117 | 118 | 119 | DarkImages\CogWheel16.png 120 | 121 | 122 | DarkImages\CogWheel32.png 123 | 124 | 125 | DarkImages\DataMapper16.png 126 | 127 | 128 | DarkImages\DataMapper32.png 129 | 130 | 131 | DarkImages\NewFile16.png 132 | 133 | 134 | DarkImages\NewFile32.png 135 | 136 | 137 | DarkImages\Preview16.png 138 | 139 | 140 | DarkImages\Preview32.png 141 | 142 | 143 | DarkImages\ReplaceData16.png 144 | 145 | 146 | DarkImages\ReplaceData32.png 147 | 148 | 149 | DarkImages\StageData16.png 150 | 151 | 152 | DarkImages\StageData32.png 153 | 154 | 155 | PreserveNewest 156 | GPTools\arcpy\dla.py 157 | 158 | 159 | PreserveNewest 160 | GPTools\arcpy\dlaExtractLayerToGDB.py 161 | 162 | 163 | PreserveNewest 164 | GPTools\arcpy\dlaService.py 165 | 166 | 167 | PreserveNewest 168 | GPTools\arcpy\dlaAppendData.py 169 | 170 | 171 | PreserveNewest 172 | GPTools\arcpy\dlaCreateSourceTarget.py 173 | 174 | 175 | Images\AddInDesktop16.png 176 | 177 | 178 | Images\AppendData16.png 179 | 180 | 181 | Images\AppendData32.png 182 | 183 | 184 | Images\CogWheel16.png 185 | 186 | 187 | Images\CogWheel32.png 188 | 189 | 190 | Images\DataMapper16.png 191 | 192 | 193 | Images\DataMapper32.png 194 | 195 | 196 | Images\NewFile16.png 197 | 198 | 199 | Images\NewFile32.png 200 | 201 | 202 | Images\Preview16.png 203 | 204 | 205 | Images\Preview32.png 206 | 207 | 208 | Images\ReplaceData16.png 209 | 210 | 211 | Images\ReplaceData32.png 212 | 213 | 214 | Images\StageData16.png 215 | 216 | 217 | Images\StageData32.png 218 | 219 | 220 | 221 | 222 | PreserveNewest 223 | GPTools\arcpy\dlaFieldCalculator.py 224 | 225 | 226 | PreserveNewest 227 | GPTools\arcpy\dlaPreview.py 228 | 229 | 230 | PreserveNewest 231 | GPTools\arcpy\dlaPublish.py 232 | 233 | 234 | PreserveNewest 235 | GPTools\arcpy\dlaReplaceByField.py 236 | 237 | 238 | PreserveNewest 239 | GPTools\arcpy\dlaStage.py 240 | 241 | 242 | PreserveNewest 243 | GPTools\arcpy\FieldMatcher.xsl 244 | 245 | 246 | PreserveNewest 247 | GPTools\arcpy\MatchLocal.xml 248 | 249 | 250 | Always 251 | GPTools\DataLoadingAssistant.tbx 252 | 253 | 254 | 255 | 256 | Designer 257 | MSBuild:Compile 258 | 259 | 260 | Designer 261 | MSBuild:Compile 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 277 | 278 | 279 | 280 | -------------------------------------------------------------------------------- /2.0/Helpers.cs: -------------------------------------------------------------------------------- 1 | using ArcGIS.Desktop.Core; 2 | using ArcGIS.Desktop.Framework.Threading.Tasks; 3 | using ArcGIS.Desktop.Mapping; 4 | using System; 5 | using System.Threading.Tasks; 6 | 7 | namespace DataAssistant 8 | { 9 | internal static class Helpers 10 | { 11 | internal static FeatureLayer CreateFeatureLayer(Uri uri, Map map) 12 | { 13 | return LayerFactory.Instance.CreateFeatureLayer(uri, MapView.Active.Map); 14 | } 15 | 16 | internal static Task AddProjectItem(string path) 17 | { 18 | var folderToAdd = ItemFactory.Instance.Create(path); 19 | return QueuedTask.Run(() => Project.Current.AddItem(folderToAdd as IProjectItem)); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /2.0/bin/Release/DataAssistant.esriAddinX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/2.0/bin/Release/DataAssistant.esriAddinX -------------------------------------------------------------------------------- /3.0/Config.daml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | DataAssistant 5 | The Data Assistant can be used to transform your organization’s data and load it into a database or service. 6 | Images\DataMapper32.png 7 | Esri 8 | Vertex3 for Esri 9 | 2023.6.1 10 | Content,Framework,Data Loading Assistant 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 36 | 39 | 43 | 47 | 51 | 55 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /3.0/DataAssistant.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net6.0-windows 5 | win10-x64 6 | false 7 | true 8 | false 9 | CA1416 10 | true 11 | true 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | C:\ArcGIS\bin\ArcGIS.Desktop.Framework.dll 29 | False 30 | False 31 | 32 | 33 | C:\ArcGIS\bin\ArcGIS.Core.dll 34 | False 35 | False 36 | 37 | 38 | C:\ArcGIS\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 39 | False 40 | False 41 | 42 | 43 | C:\ArcGIS\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 44 | False 45 | False 46 | 47 | 48 | C:\ArcGIS\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 49 | False 50 | False 51 | 52 | 53 | C:\ArcGIS\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 54 | False 55 | False 56 | 57 | 58 | C:\ArcGIS\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 59 | False 60 | False 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | PreserveNewest 98 | 99 | 100 | PreserveNewest 101 | 102 | 103 | PreserveNewest 104 | 105 | 106 | PreserveNewest 107 | 108 | 109 | PreserveNewest 110 | 111 | 112 | PreserveNewest 113 | 114 | 115 | PreserveNewest 116 | 117 | 118 | PreserveNewest 119 | 120 | 121 | PreserveNewest 122 | 123 | 124 | PreserveNewest 125 | 126 | 127 | PreserveNewest 128 | 129 | 130 | PreserveNewest 131 | 132 | 133 | Always 134 | 135 | 136 | 137 | 138 | MSBuild:Compile 139 | 140 | 141 | MSBuild:Compile 142 | 143 | 144 | 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /3.0/Helpers.cs: -------------------------------------------------------------------------------- 1 | using ArcGIS.Desktop.Core; 2 | using ArcGIS.Desktop.Framework.Threading.Tasks; 3 | using ArcGIS.Desktop.Mapping; 4 | using System; 5 | using System.Threading.Tasks; 6 | 7 | namespace DataAssistant 8 | { 9 | internal static class Helpers 10 | { 11 | internal static FeatureLayer CreateFeatureLayer(Uri uri, Map map) 12 | { 13 | QueuedTask.Run(() => 14 | { 15 | var createParams = new FeatureLayerCreationParams(uri); 16 | return LayerFactory.Instance.CreateLayer(createParams, MapView.Active.Map); 17 | } 18 | ); 19 | return null; 20 | } 21 | 22 | internal static Task AddProjectItem(string path) 23 | { 24 | var folderToAdd = ItemFactory.Instance.Create(path); 25 | return QueuedTask.Run(() => Project.Current.AddItem(folderToAdd as IProjectItem)); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /3.0/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "DataAssistant": { 4 | "commandName": "Executable", 5 | "executablePath": "C:\\ArcGIS\\bin\\ArcGISPro.exe", 6 | "commandLineArgs": "" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /DataAssistant1.4.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataAssistant", "1.4\DataAssistant.csproj", "{D7BC4883-7429-42D7-9A28-7B4C9030CBC1}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /DataAssistant2.0.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataAssistant", "2.0\DataAssistant.csproj", "{D7BC4883-7429-42D7-9A28-7B4C9030CBC1}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {D7BC4883-7429-42D7-9A28-7B4C9030CBC1}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /DataAssistant3.0.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataAssistant", "3.0\DataAssistant.csproj", "{0EFDF797-9DC9-410F-B4AE-1BAED693EEF7}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {0EFDF797-9DC9-410F-B4AE-1BAED693EEF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {0EFDF797-9DC9-410F-B4AE-1BAED693EEF7}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {0EFDF797-9DC9-410F-B4AE-1BAED693EEF7}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {0EFDF797-9DC9-410F-B4AE-1BAED693EEF7}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {DFE2BCD1-C027-4941-B819-9E4835B91492} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2016 Esri Inc. 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("DataAssistant")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("DataAssistant")] 13 | [assembly: AssemblyCopyright("Copyright © Esri 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("28142961-b645-420f-ba2a-72bcf8212558")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # data-assistant 2 | 3 | The data-assistant repo includes an ArcGIS Pro Add-in that helps communities (states, counties, emergency operations centers, and so on) aggregate information from authoritative sources and use this information to facilitate emergency response, permitting, administrative services and other related workflows. 4 | 5 | ## Features 6 | 7 | * Data Assistant Add-in 8 | * Community Addresses 9 | * Community Parcels 10 | 11 | ## Instructions (2 options) 12 | 13 | ### 1. Install from the compiled add-in 14 | 15 | 1. Download the add-in for version [1.4](1.4/bin/Release/DataAssistant.esriAddinX) or [2.0](2.0/bin/Release/DataAssistant.esriAddinX). 16 | 2. Double-click the .esriaddinX file to install. 17 | 3. Launch ArcGIS Pro and find the capabilities on the Data Assistant tab. 18 | 19 | ### 2. Compile the add-in 20 | 21 | 1. Download or Clone this repo 22 | 2. Open the DataAssistant Visual Studio solution for the appropriate version of Pro and build the solution. 23 | 3. Launch ArcGIS Pro and find the capabilities on the Data Assistant tab. 24 | 25 | ### Esri Solutions 26 | 27 | Esri provides a number of solutions that utilize this Add-in. 28 | * [ArcGIS for Emergency Management's Community Addresses](http://links.esri.com/emergencymanagement/help/AggregateAddresses/) 29 | * [ArcGIS for Emergency Management's Community Parcels](http://links.esri.com/emergencymanagement/help/AggregateParcels/) 30 | * [ArcGIS for Local Government's Community Addresses](http://links.esri.com/localgovernment/help/AggregateAddresses/) 31 | * [ArcGIS for Local Government's Community Parcels](http://links.esri.com/localgovernment/help/AggregateParcels/) 32 | * [ArcGIS for State Government's Community Addresses](http://links.esri.com/stategovernment/help/AggregateAddresses/) 33 | * [ArcGIS for State Government's Community Parcels](http://links.esri.com/stategovernment/help/AggregateParcels/) 34 | 35 | ### Additional Help 36 | 37 | [Detailed help](http://solutions.arcgis.com/emergency-management/help/aggregate-addresses/tools/) 38 | is provided with each solution on the ArcGIS Solution Site. 39 | 40 | ### General Help 41 | [New to Github? Get started here.](http://htmlpreview.github.com/?https://github.com/Esri/esri.github.com/blob/master/help/esri-getting-to-know-github.html) 42 | 43 | ## Requirements 44 | 45 | * ArcGIS Pro 1.4 - 2.0 46 | 47 | ## Resources 48 | 49 | * Learn more about Esri's [ArcGIS for Emergency Management maps and apps](http://solutions.arcgis.com/emergency-management/). 50 | View a list of other [Emergency Management GitHub repositories](http://esri.github.io/#Emergency-Management). 51 | 52 | * Learn more about Esri's [ArcGIS for Local Government maps and apps](http://solutions.arcgis.com/local-government/). 53 | View a list of other [Local Government GitHub repositories](http://esri.github.io/#Local-Government). 54 | 55 | * Learn more about Esri's [ArcGIS for State Government maps and apps](http://solutions.arcgis.com/state-government/). 56 | View a list of other [State Government GitHub repositories](http://esri.github.io/#State-Government). 57 | 58 | ## Issues 59 | 60 | Find a bug or want to request a new feature? Please let us know by submitting an issue. 61 | 62 | ## Contributing 63 | 64 | Esri welcomes contributions from anyone and everyone. 65 | Please see our [guidelines for contributing](https://github.com/esri/contributing). 66 | 67 | ## Licensing 68 | 69 | Copyright 2016 Esri 70 | 71 | Licensed under the Apache License, Version 2.0 (the "License"); 72 | you may not use this file except in compliance with the License. 73 | You may obtain a copy of the License at 74 | 75 | http://www.apache.org/licenses/LICENSE-2.0 76 | 77 | Unless required by applicable law or agreed to in writing, software 78 | distributed under the License is distributed on an "AS IS" BASIS, 79 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 80 | See the License for the specific language governing permissions and 81 | limitations under the License. 82 | 83 | A copy of the license is available in the repository's 84 | [LICENSE.txt](LICENSE.txt) file. 85 | -------------------------------------------------------------------------------- /Shared/DarkImages/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/.DS_Store -------------------------------------------------------------------------------- /Shared/DarkImages/AppendData16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/AppendData16.png -------------------------------------------------------------------------------- /Shared/DarkImages/AppendData32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/AppendData32.png -------------------------------------------------------------------------------- /Shared/DarkImages/CogWheel16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/CogWheel16.png -------------------------------------------------------------------------------- /Shared/DarkImages/CogWheel32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/CogWheel32.png -------------------------------------------------------------------------------- /Shared/DarkImages/DataMapper16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/DataMapper16.png -------------------------------------------------------------------------------- /Shared/DarkImages/DataMapper32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/DataMapper32.png -------------------------------------------------------------------------------- /Shared/DarkImages/NewFile16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/NewFile16.png -------------------------------------------------------------------------------- /Shared/DarkImages/NewFile32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/NewFile32.png -------------------------------------------------------------------------------- /Shared/DarkImages/Preview16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/Preview16.png -------------------------------------------------------------------------------- /Shared/DarkImages/Preview32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/Preview32.png -------------------------------------------------------------------------------- /Shared/DarkImages/ReplaceData16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/ReplaceData16.png -------------------------------------------------------------------------------- /Shared/DarkImages/ReplaceData32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/ReplaceData32.png -------------------------------------------------------------------------------- /Shared/DarkImages/StageData16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/StageData16.png -------------------------------------------------------------------------------- /Shared/DarkImages/StageData32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/data-assistant/82c83be223ce92367af83822d41a8fb5adcce3e8/Shared/DarkImages/StageData32.png -------------------------------------------------------------------------------- /Shared/DataClasses.cs: -------------------------------------------------------------------------------- 1 | /*** 2 | Copyright 2016 Esri 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License.​ 15 | ***/ 16 | 17 | using System; 18 | using System.Collections.Generic; 19 | using System.Linq; 20 | using System.Text; 21 | using System.Threading.Tasks; 22 | using System.Collections.ObjectModel; 23 | 24 | using System.Windows; 25 | using System.Windows.Controls; 26 | 27 | 28 | namespace DataAssistant 29 | { 30 | // Data Classes used for various methods 31 | public class ConcatRow // concatenate method 32 | { 33 | public bool Checked { get; set; } 34 | public string Name { get; set; } 35 | } 36 | public class ValueMapRow // ValueMap method 37 | { 38 | public string Source { get; set; } // source values 39 | public string Target { get; set; } // target values to set 40 | } 41 | public class DomainMapRow // for DomainMap method 42 | { 43 | public List Source { get; set; } // combo items 44 | public int SourceSelectedItem { get; set; } // selected item num 45 | public string SourceTooltip { get; set; } // tooltip on source control - show domain value for code 46 | public List Target { get; set; } // target textbox, will try to match to source domain values, always display all target values 47 | public int TargetSelectedItem { get; set; } // selected item num 48 | public string TargetTooltip { get; set; } // tooltip for target, wil be set to matching domain value if available 49 | } 50 | public class ComboData // combobox data for DomainMap 51 | { 52 | public string Id { get; set; } // domain code 53 | public string Value { get; set; } // domain value 54 | public string Tooltip { get; set; } // set tooltip - just using value seems like the best idea 55 | } 56 | public class PreviewRow // preview rows 57 | { 58 | public string Value { get; set; } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Shared/Dockpane1CheckXmlFile.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | using System.Xml.Linq; 16 | using System.Data; 17 | using System.Collections.ObjectModel; 18 | using System.Globalization; 19 | using System.Windows.Controls.Primitives; 20 | 21 | using ArcGIS.Core.Data; 22 | using ArcGIS.Desktop.Core.Geoprocessing; 23 | using ArcGIS.Desktop.Core; 24 | using ArcGIS.Desktop.Catalog; 25 | using ArcGIS.Desktop.Mapping; 26 | using System.Xml; 27 | using System.Xml.Xsl; 28 | using System.Xml.XPath; 29 | 30 | namespace DataAssistant 31 | { 32 | /// 33 | /// Interaction logic for Dockpane1View.xaml 34 | /// 35 | public partial class Dockpane1View : UserControl 36 | { 37 | 38 | private bool checkXmlFileName(string filepath) 39 | { 40 | bool valid = false; 41 | bool srcValid = false; 42 | bool targValid = false; 43 | bool projValid = false; 44 | 45 | string _project = "//Project"; 46 | string _source = "//Source"; 47 | string _target = "//Target"; 48 | 49 | 50 | if (System.IO.File.Exists(filepath)) 51 | { 52 | string folder = getFolder(filepath); 53 | loadXml(filepath); // load the xml file but do not update the UI 54 | 55 | System.Xml.XmlNode project = _xml.SelectSingleNode(_project); 56 | if (project == null) 57 | ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Warning: Unable to locate Project xml element in folder " + folder); 58 | else 59 | projValid = checkSourceTargetPath(folder, project.InnerText); 60 | 61 | System.Xml.XmlNode source = _xml.SelectSingleNode(_source); 62 | if (source == null) 63 | ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Error: Unable to locate Source xml element in the file"); 64 | else 65 | srcValid = checkSourceTargetPath(folder, source.InnerText); 66 | 67 | System.Xml.XmlNode target = _xml.SelectSingleNode(_target); 68 | if (target == null) 69 | ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Error: Unable to locate Target xml element in the file"); 70 | else 71 | targValid = checkSourceTargetPath(folder, target.InnerText); 72 | 73 | if (srcValid && targValid) // ignore the Project value in error messages. 74 | valid = true; 75 | else 76 | ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("All files should be fully qualified paths or be relative to the selected xml file"); 77 | 78 | } 79 | else 80 | ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(filepath + " does not exist"); 81 | 82 | return valid; 83 | } 84 | private bool checkSourceTargetPath(string folder, string dataset) 85 | { 86 | bool valid = false; 87 | if (dataset != null) 88 | { 89 | if (!checkDatasetExists(dataset)) 90 | { 91 | string ds = System.IO.Path.Combine(folder, dataset); 92 | valid = checkDatasetExists(ds); 93 | } 94 | else 95 | valid = true; 96 | } 97 | if (!valid) 98 | ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Unable to locate dataset '" + dataset + "'"); 99 | return valid; 100 | } 101 | 102 | private bool checkDatasetExists(string dataset) 103 | { 104 | string _shp = ".shp"; 105 | string _sde = ".sde\\"; 106 | string _gdb = ".gdb\\"; 107 | string _lyrx = ".lyrx"; 108 | string _aprx = ".aprx"; 109 | string _http = "http://"; 110 | string _https = "https://"; 111 | bool exists = false; 112 | if (dataset.ToLower().StartsWith(_http)) 113 | { 114 | Uri ds = new Uri(dataset); 115 | try 116 | { 117 | var query = ds.Query; // just a simple url test 118 | exists = true; 119 | } 120 | catch { exists = false; } 121 | 122 | } 123 | if (dataset.ToLower().StartsWith(_https)) 124 | { 125 | Uri ds = new Uri(dataset); 126 | try 127 | { 128 | var query = ds.Query; // just a simple url test 129 | exists = true; 130 | } 131 | catch { exists = false; } 132 | 133 | } 134 | if (dataset.ToLower().Contains(_sde)) 135 | { 136 | string sde = dataset.Substring(0, dataset.LastIndexOf(_sde) + (_sde.Length-1)); 137 | if (System.IO.File.Exists(sde)) // just checking .sde file 138 | exists = true; 139 | } 140 | if (dataset.ToLower().Contains(_gdb)) 141 | { 142 | string db = dataset.Substring(0, dataset.LastIndexOf(_gdb) + (_gdb.Length-1)); 143 | if (System.IO.Directory.Exists(db)) // just checking .gdb folder exists 144 | exists = true; 145 | } 146 | if (dataset.ToLower().EndsWith(_lyrx)) 147 | { 148 | if (System.IO.File.Exists(dataset)) 149 | exists = true; 150 | } 151 | if (dataset.ToLower().EndsWith(_aprx)) 152 | { 153 | if (System.IO.File.Exists(dataset)) 154 | exists = true; 155 | } 156 | if (dataset.ToLower().EndsWith(_shp)) 157 | { 158 | if (System.IO.File.Exists(dataset)) 159 | exists = true; 160 | } 161 | return exists; 162 | } 163 | 164 | 165 | 166 | } 167 | } -------------------------------------------------------------------------------- /Shared/Dockpane1ViewModel.cs: -------------------------------------------------------------------------------- 1 | /*** 2 | Copyright 2016 Esri 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License.​ 15 | ***/ 16 | using System; 17 | using System.Collections.Generic; 18 | using System.Linq; 19 | using System.Text; 20 | using System.Threading.Tasks; 21 | using ArcGIS.Desktop.Framework; 22 | using ArcGIS.Desktop.Framework.Contracts; 23 | using ArcGIS.Desktop.Core.Geoprocessing; 24 | using ArcGIS.Desktop.Core; 25 | using ArcGIS.Desktop.Catalog; 26 | 27 | namespace DataAssistant 28 | { 29 | internal class Dockpane1ViewModel : DockPane 30 | { 31 | private const string _dockPaneID = "DataAssistant_Dockpane1"; 32 | 33 | protected Dockpane1ViewModel() { } 34 | 35 | /// 36 | /// Show the DockPane. 37 | /// 38 | internal static void Show() 39 | { 40 | DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID); 41 | 42 | if (pane == null) 43 | return; 44 | pane.Activate(); 45 | } 46 | internal static void doHide() 47 | { 48 | DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID); 49 | 50 | if (pane == null) 51 | return; 52 | pane.Hide(); 53 | } 54 | 55 | /// 56 | /// Text shown near the top of the DockPane. 57 | /// 58 | private string _heading = "Configure Data Mapping"; 59 | public string Heading 60 | { 61 | get { return _heading; } 62 | set 63 | { 64 | SetProperty(ref _heading, value, () => Heading); 65 | } 66 | } 67 | } 68 | 69 | /// 70 | /// Button implementation to show the DockPane. 71 | /// 72 | internal class Dockpane1_CreateFile : Button 73 | { 74 | protected override void OnClick() 75 | { 76 | setupGP.init(); 77 | string source = ""; 78 | string target = ""; 79 | string file = System.IO.Path.Combine(Project.Current.HomeFolderPath,"SourceTarget.xml"); 80 | 81 | var param_values = Geoprocessing.MakeValueArray(source,target,file); 82 | 83 | Geoprocessing.OpenToolDialog(setupGP.getToolbox("SourceTargetMapping"), param_values); 84 | } 85 | } 86 | 87 | internal class Dockpane1_ShowButton : Button 88 | { 89 | private const string _dockPaneID = "DataAssistant_Dockpane1"; 90 | string fileloc = setupGP.init(); 91 | protected override void OnClick() 92 | { 93 | DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID); 94 | try 95 | { 96 | //if (pane.IsVisible) 97 | // Dockpane1ViewModel.doHide(); 98 | // else 99 | Dockpane1ViewModel.Show(); 100 | } 101 | catch { } 102 | } 103 | } 104 | internal class Dockpane1_PreviewButton : Button 105 | { 106 | protected override void OnClick() 107 | { 108 | setupGP.init(); 109 | var param_values = Geoprocessing.MakeValueArray(DataAssistant.Dockpane1View.getXmlFileName()); 110 | 111 | Geoprocessing.OpenToolDialog(setupGP.getToolbox("Preview"), param_values); 112 | } 113 | } 114 | internal class Dockpane1_AppendDataButton : Button 115 | { 116 | protected override void OnClick() 117 | { 118 | setupGP.init(); 119 | var param_values = Geoprocessing.MakeValueArray(DataAssistant.Dockpane1View.getXmlFileName()); 120 | 121 | Geoprocessing.OpenToolDialog(setupGP.getToolbox("AppendData"), param_values); 122 | } 123 | } 124 | internal class Dockpane1_StageDataButton : Button 125 | { 126 | protected override void OnClick() 127 | { 128 | setupGP.init(); 129 | var param_values = Geoprocessing.MakeValueArray(DataAssistant.Dockpane1View.getXmlFileName()); 130 | 131 | Geoprocessing.OpenToolDialog(setupGP.getToolbox("StageData"), param_values); 132 | } 133 | } 134 | internal class Dockpane1_ReplaceDataButton : Button 135 | { 136 | protected override void OnClick() 137 | { 138 | setupGP.init(); 139 | var param_values = Geoprocessing.MakeValueArray(DataAssistant.Dockpane1View.getXmlFileName()); 140 | 141 | Geoprocessing.OpenToolDialog(setupGP.getToolbox("ReplaceData"), param_values); 142 | } 143 | } 144 | internal class setupGP : Button 145 | { 146 | public static string AddinAssemblyLocation() 147 | { 148 | var asm = System.Reflection.Assembly.GetExecutingAssembly(); 149 | return System.IO.Path.GetDirectoryName( 150 | Uri.UnescapeDataString( 151 | new Uri(asm.CodeBase).LocalPath)); 152 | } 153 | static string _gpFolder = System.IO.Path.Combine(AddinAssemblyLocation(),"GPTools"); 154 | public static string init() 155 | { 156 | var projectFolders = Project.Current.GetItems(); 157 | bool found = false; 158 | foreach (var FolderItem in projectFolders) 159 | { 160 | if (FolderItem.Path == _gpFolder) 161 | found = true; 162 | } 163 | if (!found) 164 | Helpers.AddProjectItem(_gpFolder); 165 | 166 | //var pth = Project.Current.DefaultToolboxPath; 167 | 168 | return _gpFolder; 169 | } 170 | public static string getToolbox(string toolname) 171 | { 172 | string gpref = System.IO.Path.Combine(setupGP._gpFolder, "DataLoadingAssistant.tbx", toolname); 173 | return gpref; 174 | } 175 | public static string getConfigFileName() 176 | { 177 | //Dockpane1View.getXmlFileName(); 178 | return ""; 179 | } 180 | } 181 | } 182 | -------------------------------------------------------------------------------- /Shared/Dockpane2Settings.xaml: -------------------------------------------------------------------------------- 1 |  16 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 59 | 60 | 61 | 62 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |