XMap ShapeFile Importer
This program allows the user to import multiple Shapefiles into specified layers. Instead of dragging and dropping individual shapefiles into XMap to create new layers, or following multiple click to even append layers, this application will scan a specified directory and subdirectories for all shapefiles and allow the user to organize them by name into new or existing layers in an XMap database.
Download
The latest version is v1.0.0.122, download the MSI here (.5Mb).
Requirements
Minimum requirements for proper operation of the program are:
- Windows XP, Windows Vista, Windows 7 (x86 or x64)
- .NET 4.0 Client Profile (you can download here)
- XMap Editor or XMap Enterprise (requires the XMapImporter.exe executable)
Help
Click here for the Help page (walkthorugh) of the program.
Known Issues
First, let me say that the program is not polished. It was thrown together for personal use in importing and appending the hundreds of OS OpenData shapefiles into an XMap database. I figured that I had put enough code into it to make it useful for other applications (like downloading shapefiles from USGS and other sources) to release it to the public. Having said that, there's only a few potential issues I know of:
- Layer Names are not checked for bad characters. Since I honestly don't know if any 'invalid' characters are possible for layer names, if you use one it will cause all imports using that name to fail.
- If you use a quote in the layer name, the import will fail for any import using that layer.
- When using a single layer name for all files, you can leave the layer name blank. Doing this will cause no shapefiles to be imported.
- No errors are trapped, so if an error is thrown, the application will close and you will be given the 'report a problem to Microsoft' dialog.
- When using the keyboard to tab through the controls on the Database screen, multiple calls will be made to read tables from the selected server.
- Some system tables and non-XMap tables are displayed. If you try importing into one of these, the import will fail.
- This was tested against XMap7. No testing was done against earlier versions, and may not work. (If you successfully run it against an earlier version, please let me know!)
Usage
The application is free to use, donations are appreciated. If you use the application, letting me know is also appreciated - it lets me know that I didn't post this here for my own happy thoughts.
Important - This program is provided as-is. Neither the author of this program, nor the author of XMap can be held responcible for dataloss by using the application. Be sure to test your import on a sample database before using it to import into a live active database.