Easy Loader User Guide
Easy Loader User Guide
Version 2019
User Guide
Table of Contents
1 - Introduction
2 - Uploading Data
3 - Productivity Aids
Shortcuts by Keystroke 23
Using Command-Line Flags to Run MapInfo
EasyLoader 24
Command-Line Flag Descriptions 26
Locating the MapInfo EasyLoader Log File 37
Locating the MapInfo EasyLoader Configuration
File 37
4 - History of Changes
In this section
Database Support and Requirements 4
Getting Started 5
Introduction
Software Requirements
MapInfo Pro installs these requirements. You do not need to install these when running MapInfo
EasyLoader on the same machine as MapInfo Pro.
System Requirements
This product is tested on the following Microsoft Windows Desktop Operating Systems:
• Windows 10 64-bit
• Windows 8.1 64-bit
• Windows 7 Ultimate 64-bit SP1
• Windows 2012 Server R2 64-bit SP1
• Windows 2008 Server R2 64-bit SP1
Getting Started
You can either start MapInfo EasyLoader from within MapInfo Pro or separately if you downloaded
your MapInfo EasyLoader from the web. To launch MapInfo EasyLoader from within MapInfo Pro,
see Starting MapInfo EasyLoader from within MapInfo Pro.
To start MapInfo EasyLoader:
Double-click the MapInfoEasyLoader.exe file in the EasyLoader directory.
When you download MapInfo EasyLoader from the web, you download a zip file. When you
extract the files from this zip, it creates an EasyLoader folder with all of the files necessary to run
MapInfo EasyLoader including MapInfoEasyLoader.exe.
MapInfo EasyLoader is a single window within which you can set everything necessary to upload
data tables to a database.
Database Connection Select the connection to the database you want to upload tables to. You
can use existing database connections created from the Microsoft Start
menu or from in MapInfo Pro.
Manage Connection List and Create a new connection by selecting New Connection from the
Choose a Connection Database Connection list and then clicking this button.
Output Directory Select a path location to save live access files to.
Unless you select not to create them, MapInfo EasyLoader saves .tab
files to your machine that contain database access information. MapInfo
Pro uses these files when accessing the tables that MapInfo EasyLoader
uploads. If you select not to create these files, you can create them later
from within MapInfo Pro. A live access file has the same name as the
upload file with a _srv extension, such as YourServerTableName_srv.tab.
Browse for an Output Directory Select a different directory from what is in the Output Directory list by
(Folder) clicking this button.
Server Table Shows the table name as it will appear on the database server. You can
click on the name to change it.
Operation Select for each table what you would like to do in the database:
Create a New Table creates a new table in the database using the
source table name.
Replace Existing Table replaces an existing table in the database that
has the same name as the source table.
Append to Existing Table appends the contents of the source table to
an existing table in the database that has the same name as the source
table.
For more details, see Table Processing Options.
Catalog By default, upload tables are added to the map catalog on the database
unless you clear the check box in the Catalog column.
MapInfo Pro uses the Map Catalog on the database for spatial indexing.
Select this check box to add a new Map Catalog or clear it to unregister
a table from the Map Catalog. For information about the Map Catalog
and what options you can set, see Using the Map Catalog. If you do
not add the upload table data to the Map Catalog now, then you can do
so later in MapInfo Pro.
Upload States Gives information about the upload. If there was an error with the upload,
then hovering the mouse pointer over the image in this column shows
more information.
Map Catalog This command is available when you are connected to a database
connection. Selecting this command displays the Map Catalog window
where you can edit data on the database. For more information about
the Map Catalog, see Using the Map Catalog.
Owner Name - You can filter the list of tables by selecting the Owner
Name.
Unregister - Unregisters a table from the database.
Copy - Copies the selected row as comma separated values (csv).
Close - Closes the Map Catalog window.
View Log opens the EasyLoader.log file in a text editor. This file contains
the database connection information currently in use to upload data
tables with. For details, see Locating the MapInfo EasyLoader Log
File.
Close When Complete is off by default. When set, MapInfo EasyLoader
closes after finishing the upload.
Help
Online Help opens the product help. You need access to the internet to
view this.
PDF Help opens the product help as a PDF file for printing and for
viewing when you do not have access to the internet.
About MapInfo EasyLoader opens a message dialog box displaying the
version of MapInfo EasyLoader.
Start or Resume Uploading Tables Starts the upload process or continues the process if you put it on pause.
Pause the Upload Pauses the upload process, which you can resume later.
Cancel the Rest of the Upload Stops and cancels the upload process.
MapInfo EasyLoader is a tool that ships with MapInfo Pro and can be launched as a tool within
MapInfo Pro.
To start MapInfo EasyLoader from within MapInfo Pro:
1. In MapInfo Pro, on the HOME tab, in the Tools group, click Tools to open the Tools Manager
window.
2. On the Running tab, double click MapInfo EasyLoader to open the MapInfo EasyLoader dialog
box. If you do not see it listed on the Running tab, then locate it on the Registered tab.
To load MapInfo EasyLoader into the current session of MapInfo Pro, click the Load Tool (Run)
icon beside it.
To reload MapInfo EasyLoader for all subsequent sessions, select the AutoLoad check box.
To load MapInfo EasyLoader for the current session and all subsequent sessions, select both.
In this section
Understanding Your Data 9
Uploading Tables 12
About Upload Options 17
Using the Map Catalog 19
Uploading Data
Before uploading MapInfo tables, you need to know how your database manages spatial data from
MapInfo Pro. There are database-specific restrictions for some geometry types, text objects, and
coordinate systems. There are also situations in which geometry is considered invalid by a database.
Know these restrictions before uploading MapInfo Pro tables to your database.
Text objects are unsupported by MapInfo EasyLoader. For example, MapInfo EasyLoader discards
text objects when uploading a TAB file to Oracle.
Unsupported Geometry
A MapInfo Pro map may contain geometries that are unsupported by the database that the results
are stored in. MapInfo EasyLoader skips unsupported object type and inserts the attribute data. No
message displays.
• Oracle does not support arcs, ellipses, rectangles, and rounded rectangles.
• PostGIS does not support arcs, ellipses, rectangles, and rounded rectangles
• SQL Server does not support arcs, and lines that do not have distinct points.
SQL Server uploads invalid geometry objects and converts them to valid using a SQL server
command, but SQL Server does not upload invalid geography objects. Attempting to upload invalid
geography objects causes MapInfo EasyLoader to fail. This is a limitation of SQL Server and not
of MapInfo EasyLoader. Due to this SQL Server limitation, upload only as geometry.
There are things to be aware of when uploading data tables to an Oracle database, such as:
• You cannot replace version-enabled tables in Oracle. This would make child versions of these
tables obsolete.
• Oracle has a limit on identifier names, which cannot be more than 30 bytes. For details, see
http://docs.oracle.com/database/121/SQLRF/sql_elements008.htm#SQLRF51129. The total
number of bytes for table names, columns names, primary key constraint names (table name +
"_PK") and index names (column name + "_IX") must not exceed 30 bytes. The number of bytes
that each character uses is dependent upon the character set that Oracle is using. If you see the
message "Identifier is too long", then make server table names or column names shorter.
To resolve these errors, reset the tolerance within the USER_SDO-GEOM_METADATA by adjusting
them downwards (by a factor of 10) and rerun the validation.
Note: If you adjust the tolerance, you must re-create the spatial indexes because they use the
tolerance when they are created.
MapInfo EasyLoader uploads MapInfo tables into PostGIS, which stores spatial data in a geometry
column called sp_geometry. Unsupported data types are ignored resulting in an empty record in
the sp_geometry geometry column. For a list of unsupported data types, see Unsupported
Geometry.
MapInfo EasyLoader uploads a table with a Serial datatype for the primary key column. This allows
the database to automatically increment the key column.
To check if a geometry object is valid in PostGIS, use the function called isvalid. The following is
an example SQL statement:
Microsoft SQL Server Spatial includes Geography and Geometry data types. Geography fields hold
geometries specified in the Lat/Long coordinate system. Geometry fields hold geometries specified
in all other coordinate systems. If you choose to upload to a Geometry field type, then MapInfo
EasyLoader runs the SQL Server Spatial MakeValid( ) function to fix any geometry that SQL Server
Spatial deems invalid. This may shift point locations for certain geometries.
In the Options dialog box, MapInfo EasyLoader enables you to control how the geometry data in
a native table is uploaded to SQL Server Spatial.
Keep the default selection of Always Geometry to have MapInfo EasyLoader upload geometry
objects to Geometry fields regardless of the coordinate system they use.
Select Auto Select to have MapInfo EasyLoader automatically decide whether the geometry object
is uploaded to a Geography field (in cases where the geometry object uses the Lat/Long coordinate
system) or a Geometry field (in cases where the geometry object does not use the Lat/Long
coordinate system).
Note: When the Auto Select option is selected, if for any reason a geometry object that uses the
Lat/Long coordinate system cannot be uploaded to a Geography field, it will instead be
uploaded to a Geometry field.
Consider the following example. Let us suppose the Geometry update failed for the row (state =
'Florida').
• Selectively update the offending geometry, using the MakeValid( ) method.
• Force an operation that does not alter the geometry, but forces a topology construction. Here, we
perform a union of the Geometry with its own start point.
• Now this query will attempt to create a Geography instance from the reformed Geometry.
Uploading Tables
For instructions to start MapInfo EasyLoader, see Getting Started with MapInfo EasyLoader. To
start MapInfo EasyLoader from within MapInfo Pro, see Starting MapInfo EasyLoader from within
MapInfo Pro.
To upload MapInfo TAB files using MapInfo EasyLoader:
1. From the Database Connection list select your existing connection created previously in MapInfo
EasyLoader.
To create a new connection from MapInfo EasyLoader, select New Connection and click the
Manage Connection List and Choose Connection button. Follow the instructions under Creating
an Oracle Connection or Creating an ODBC Connection.
2. From the Output Directory list select a directory to save live access files to or select Do Not Create
.tab Files.
Unless you select not to create them, MapInfo EasyLoader saves .tab files to your machine that
contain database access information. MapInfo Pro uses these files when accessing the tables
that MapInfo EasyLoader uploads. If you select not to create these files, you can create them
later from within MapInfo Pro. A live access file has the same name as the upload file with a _srv
extension, such as YourServerTableName_srv.tab.
To select a different directory from what is in the list, click the Browse for an Output Directory
(Folder) button.
3. Click the Browse for one or more tables to upload button located beside the Source Table
column heading in MapInfo EasyLoader. Add individual tables for upload by selecting Add Tables
or a folder of tables by selecting Add Tables from Folder.
In the dialog that opens, navigate to the table or folder and select it. The tables that you select
display in MapInfo EasyLoader and are the tables that you will upload.
4. The Server Table column shows the table name as it will appear on the database server. Click
on the name if you want to change it.
5. In the Operation column, select how to upload each table.
• Create a New Table creates a new table in the database using the name in the Server Table
column.
• Replace Existing Table replaces an existing table in the database that has the same name as
in the Server Table column.
• Append to Existing Table appends the contents of the source table to an existing table in the
database that has the same name as in the Server Table column.
For details, see Table Processing Options. For instructions on how to append multiple tables
to a table in the database, see Appending Multiple Tables to an Existing Table on the Server.
6. By default, upload tables are added to the map catalog on the database unless you clear the
check box in the Catalog column.
MapInfo Pro uses the Map Catalog on the database for spatial indexing. Select this check box
to add a new Map Catalog or clear it to unregister a table from the Map Catalog. For information
about the Map Catalog and what options you can set, see Using the Map Catalog. If you do not
add the upload table data to the Map Catalog now, then you can do so later in MapInfo Pro.
MapInfo EasyLoader provides status information for the upload and displays the message "Upload
Completed" when finished.
For information about how to set the spatial object types and the server processing options for an
upload, see About Upload Options.
Note: On some operating systems, such as Windows 7, when you select Add Tables in MapInfo
EasyLoader the resulting Open dialog has a drop-down list on the Open button. From this
list, you can select Show previous versions. This is a Microsoft system feature that lets you
recover deleted files, view or restore a file you saved over, and lets you compare versions
of a file side by side.
You must have Oracle Client software installed, which does not come with MapInfo EasyLoader.
Before you create a connection in MapInfo EasyLoader to an Oracle database server, you will need
to know the server name, and the user ID and password to use.
To connect to an Oracle database in MapInfo EasyLoader:
1. From the Database Connection list, select New Connection and then click the Manage Connection
List and Choose Connection button.
2. In the Database Connection dialog, select the Oracle radial button.
3. Fill in the Server Name, User ID, and Password fields.
4. Click OK to create the connection and close the dialog.
Note: Click the Manage Connection List and Choose Connection button for an existing connection
to edit its connection information.
These instructions assume that you have Open Database Connectivity (ODBC) set up beforehand.
You can create new ODBC connections by following these instructions if you know the database
name to connect to and the user ID to access the database with.
To connect to a database using ODBC:
1. From the Database Connection list, select New Connection and then click the Manage Connection
List and Choose Connection button.
2. In the Database Connection dialog, select the ODBC radial button and then click the button
beside it.
3. In the Select Data Source dialog, select an existing ODBC connection by doing one of the
following:
• On the File Data Source tab, use the Look in drop-down list or the Up button to locate the
database you want to upload to and select it.
• On the Machine Data Source tab, double-click the data source driver you want to connect to
and navigate to the database you want to upload to and select it.
If you do not have an existing ODBC connection, click New to open the Create New Data Source
wizard and create one. Select the connection after creating it.
This section describes the table options available in MapInfo EasyLoader from the Operation list.
All operations use the name that you specify in the Server Table column. By default the name in
this column is the same as the source table.
Create New Table A server table is created with the name that you specify in the Server Table
column. If this option is chosen and a table with the same name already exists
on the server, an error message displays. Use a different name or choose the
option Replace Existing Table to upload the table.
Replace Existing When this option is selected, if a server table of the same name already exists,
Table it is dropped and a new table is created to match the MapInfo table being
uploaded. This option uses the table name from the Server Table column. You
can change this to the name of an existing table on the server.
Append to The MapInfo table is appended to the server table named in the Server Table
Existing Table column when the server table exists and the structure of the two tables match.
Otherwise, you get an error and the table is not uploaded. For Oracle Spatial,
the tables must have the same table structure and be in the same projection.
When there are multiple tables selected, the Table Append dialog box opens.
For instructions, see Appending Multiple Tables to an Existing Table on
the Server.
When there are multiple tables selected in MapInfo EasyLoader, then selecting or clearing the
Catalog check box applies to all of the tables in the selection.
Appending Multiple Tables to an Existing Table on the Server
The Table Append dialog box opens when you select more than one table in MapInfo EasyLoader
and then either enter a new name in the Server Table column for one of those tables or select
Append from the list in the Operation column.
In the Table Append dialog box, select an operation from the Operation for Collected Table list for
uploading the tables:
• Create New generates a new server table to append all selected tables to.
• Replace drops the existing server table and then creates a new table to append all of the selected
tables to.
• Append appends all of the selected tables to an existing server table.
If the dialog includes a Server Table Name field, then enter the name of the server table that you
want to create, replace, or append to. If it does not include this field, then MapInfo EasyLoader uses
the name that you entered in the Server Table column.
All tables must have the same table structure and be in the same projection. Tables will not append
if their table structure differs.
Time and DateTime data types sometimes require conversion because of variations from server to
server, and between the server and MapInfo data types. The following table shows how the data
types are converted from MapInfo Pro to each server.
* The MapInfo data type will be extended on the servers. When the same data comes back to
MapInfo Pro, the data type will be as is indicated on the server. This conversion is consistent with
MapInfo Pro behavior when a MapInfo table is saved to a server using MapInfo Pro.
On servers that do not support DATE or TIME data types, the data is converted to a DATETIME
type. In this conversion, part of the data will be missing because the MapInfo types contain either
the date or the time, but not both. The server default values for the date or the time are used to fill
in the missing data. Conversions to DATETIME are made for SQL Server versions earlier than
version 10 (prior to SQL Server Spatial).
For example, if the server does not support the MapInfo DATE type, the upload process converts
the DATE type to a DATETIME type. The date value comes from the MapInfo table, but the time
value is filled in with the server default value for time. The following table shows how the MapInfo
data types are converted when they are not supported on the server and what default value are
used to fill in the missing data:
MapInfo Data Type To Server Data Type Server Default Values Databases
MapInfo TIME type DATETIME/STAMP type first day of current month and year Oracle
* SQL Server versions earlier than version 10 (prior to SQL Server Spatial).
This section explains the settings in the Options dialog box, which describe how to process tables.
To open this dialog in MapInfo EasyLoader, click Options and then select Options from the list.
Exclusive User You can speed up load time on large tables when you are the only one
attempting to update or upload the table. If you do not select this option,
MapInfo EasyLoader verifies after each commit that no other updates are
made to the table while it is being uploaded. Selecting this option prevents
this test from occurring, which can improve runtime performance for large
tables.
Create Primary This creates a primary key for the Create New Table and Replace Existing
Key Table operations. This primary key is created in the MI_PRINX column for
Oracle Spatial, SQL Server Spatial, and PostGIS, or MI_SQL_REC_NUM for
XY and MICODE. These columns contain sequential numbers generated by
MapInfo EasyLoader. These columns are always created, but do not have to
be a primary key. The Append to Existing Table operation does not create a
primary key.
Grant Public Full This grants PUBLIC read and write access to the server table.
Access
Create Spatial This creates a spatial index called <tablename>ind on the geometry column
Index of tables. When building your own spatial index, for your specific requirements,
clear this check box to save loading time.
For Oracle Spatial tables, this creates a spatial index called <tablename>_SX
on the geometry column. The index tiling level is based on the
SDO_TUNE.ESTIMATE_TILING_LEVEL function. For tables with fewer than
7500 rows, the tiling level is restricted to eight (8). After the index is built, the
ANALYZE table function is run on the index table. The spatial index is R-Tree
for Oracle 8.17 or later.
Create IDENTITY Creates the primary key column with IDENTITY properties. When selected,
Column (SQL SQL Server automatically generates the primary key column values for new
Server only) rows, so that you do not need to add them manually.
Create Indexes When uploading a new table or replacing an existing table, this indexes all
of the columns that are indexed in the original table. By default, this option is
not selected.
The table upload begins when you select this check box and click OK.
Note: If the column name length is too long, the index creation fails. The
name length limit varies per database.
Style Column Specifies whether per-row styles are loaded with the data. You can set the
name of the column in the text box beside the Style Column check box. The
default column name is MI_STYLE.
Note: To load per-row styles, the MapInfo Map catalog for the database
must contain the following columns: RENDITIONTYPE,
RENDITIONCOLUMN, RENDITIONTABLE, and NUMBER_ROWS.
For more information, see MAPINFO_MAPCATALOG Table
Structure on page 20.
Commit Interval Specifies a commit interval for uploading. MapInfo EasyLoader commits the
inserted records when the commit interval is reached. The default commit
interval is 1000. If the commit interval is set to 0 (zero), the whole range of
records is inserted as a single transaction, before a commit is issued.
Table Errors A value of zero (0) to 100 that is the percentage of table upload failures
Threshold % allowed before the upload stops. A value of 100 allows the upload to complete
no matter the number of failures.
Insert Errors A value of zero (0) to 100 that is the percentage of insert failures allowed on
Threshold % a table before the table upload stops. The percentage is the number of rows
that fail based on the number of rows in the table. A value of 100 allows the
process to complete no matter the number of failures.
The Error Threshold percentages work together. An insert failure for a row in
a table counts towards the Table Errors Threshold.
Schema Name Specifies a schema name when uploading tables to SQL Server, or
PostgresSQL and/or PostGIS.
Spatial Object Specifies an object type, which depends on the server connection in use. For
Type details, see Spatial Object Type Options on page 18.
Choose from Oracle Spatial (depending on the type of connection), MICODE (XY with MapInfo Key),
XY, PostGIS Spatial, or SQL Server Spatial. The default for loading spatial data is SQL Server
Spatial (Auto Select) if this option is available. Otherwise, MapInfo EasyLoader defaults to the
MICODE option.
Oracle Spatial Use this option if the server is Oracle Spatial.
MICODE (XY with This option stores the data as XY coordinates on the server and creates the
MapInfo Key) server table as a point table. If the MapInfo table to be uploaded is not a point
table and this option is chosen, the centroid is abstracted and stored on the
server table, if you instruct it to do so. The difference between XY and
MICODE is that the MICODE provides a MapInfo key as the spatial index,
making its performance superior to XY.
XY This option is the same as the MICODE option, except that this option does
not create a spatial index.
PostGIS Spatial Use this option with a spatialized PostgreSQL database.
SQL Server Spatial Use these options if the server is Microsoft SQL Server Spatial:
Auto Select – MapInfo EasyLoader automatically decides whether to upload
the geometry object to a Geography field (if the geometry object is using a
Lat/Long coordinate system) or to a Geometry field (if the geometry object
is using another coordinate system).
Always Geometry – MapInfo EasyLoader always uploads the geometry object
to a Geometry field, regardless of the coordinate system specified for the
geometry object.
Note: When the Auto Select option is selected, if for any reason a geometry object that uses the
Lat/Long coordinate system cannot be uploaded to a Geography field, it will instead be
uploaded to a Geometry field.
The MAPINFO_MAPCATALOG is a registry table for databases that stores metadata about geometry
tables in the database. Using both the table name and owner name as the key, the
MAPINFO_MAPCATALOG identifies the geometry column, geometry type, projection, projection
bounds, and table and feature level rendition information. The MAPINFO_MAPCATALOG is used
by a number of MapInfo products, including MapInfo Pro, that access map data from databases.
If a Map Catalog does not exist, it can be created during the upload process by selecting the check
box in the Catalog column for the table being uploaded. The user account for the server connection
must have permission to the MapInfo schema on the server to create the map catalog. If it does not
have adequate permissions, then creation will not succeed and the table will not upload. If this
happens, ask the database administrator to grant you permission to the MapInfo schema.
After the table is uploaded, an entry is made in the MAPINFO.MAPINFO_MAPCATALOG to represent
that table. A separate entry is made for every table you upload.
If the table is made up of a single type of object, then the server object type is restricted to that type,
otherwise the type is ALL. Also, the symbol clause generated is based on the server type. For
example: After uploading the table states.tab the server type will be x.2 (polygons), where x is a
number that represents either IDS, SQL Server, or Oracle Spatial, and the symbol clause will have
only the information for a polygon.
Note: See also, Loading Microsoft SQL Server Spatial Data.
The Map Catalog stores the metadata used by MapInfo Pro and other MapInfo products to open
tables with geometry data. If your database has a Map Catalog, you can delete entries in the catalog
that are no longer valid.
Note: If the Map Catalog is present and there are no entries in it, the Catalog check box beside
the table name in MapInfo EasyLoader does not enable.
SPATIALTYPE FLOAT
TABLENAME CHAR(32)
OWNERNAME CHAR(32)
SPATIALCOLUMN CHAR(32)
DB_X_LL FLOAT
DB_Y_LL FLOAT
DB_X_UR FLOAT
DB_Y_UR FLOAT
VIEW_X_LL FLOAT
VIEW_Y_LL FLOAT
VIEW_X_UR FLOAT
VIEW_Y_UR FLOAT
COORDINATESYSTEM CHAR(254)
SYMBOL CHAR(254)
XCOLUMNNAME CHAR(32)
YCOLUMNNAME CHAR(32)
RENDITIONTYPE INTEGER
RENDITIONCOLUMN CHAR(32)
RENDITIONTABLE CHAR(32)
NUMBER_ROWS INTEGER
In this section
Shortcuts by Keystroke 23
Using Command-Line Flags to Run MapInfo EasyLoader 24
Command-Line Flag Descriptions 26
Locating the MapInfo EasyLoader Log File 37
Locating the MapInfo EasyLoader Configuration File 37
Productivity Aids
Shortcuts by Keystroke
Options Ctrl+O
Online Help F1
The following are shortcuts for selecting and deleting tables in MapInfo EasyLoader's table list.
Command Shortcut
When there are multiple tables selected in MapInfo EasyLoader, then selecting or clearing the
Catalog check box and choosing from the Operation list applies to all of the tables in the selection.
You can run MapInfo EasyLoader from the Windows command-line to apply specific upload
parameters or invoke MapInfo EasyLoader with upload parameters from a custom script or application.
To open MapInfo EasyLoader from the Command-Line window, on the Windows Start menu type
cmd. Change directories (cd) into the folder that has the MapInfoEasyLoader.exe file in it, and then
type MapInfoEasyLoader.exe. MapInfo EasyLoader opens on your screen and is ready to use.
To upload a table when you open MapInfo EasyLoader from the Command-Line window, modify
the following example. It uploads a table (/T) called states.tab and gives it the server table name
mystates, grants all rights (/G) to make mystates public, and specifies that per-row styles are being
loaded with the data (/Y).
If a path contains spaces, use quotation marks around it, for example:
MapInfoEasyLoader.exe /g /P R /s "DRIVER={PostGreSQL
UNICODE(x64)};DATABASE=QADB;Server=MiProPostGIS;UID=pro;PWD=pro;Port=5432"
Command-line flags may be mixed with the MapInfo EasyLoader user interface by using a Windows
shortcut. This makes it easier to set flags as your default while being able to override them from the
interface. These flags are only available from the command-line.
To create a shortcut for MapInfo EasyLoader that includes preset flags:
1. Right-click on the MapInfoEasyLoader.exe file and then select Send to and Desktop (create
shortcut). The resulting file saves to your desktop.
To place in a different location, right-click and select Create shortcut, and then move the resulting
shortcut file.
2. Right-click the shortcut file and select Properties to open the Shortcut Properties dialog.
3. On the Shortcut tab, within the Target edit box, add command-line flags to the end of the path.
Separate the flags with spaces.
To have the flags take effect, launch MapInfo EasyLoader using this shortcut. You can override the
settings by changing them in the MapInfo EasyLoader window.
Closing MapInfo EasyLoader saves a state file with the command-line flags used on startup and
set during the session. The file is called MapInfoEasyLoader.Settings.rsp and is saved under the
AppData folder (for example, C:\Users\<UserID>\AppData\Roaming\MapInfoEasyLoader.Settings.rsp).
The AppData folder is in a path like C:\Users\<UserID>\AppData. If you cannot see the AppData
folder, it is because it is hidden. To locate it, on the Microsoft Start menu in the Search programs
and files field type %AppData%.
This file contains all of the flags used to start MapInfo EasyLoader regardless of whether you used
the command-line. It includes the default flags and their settings, such as /CommitInterval,
The following flags specify upload parameters when launching MapInfo EasyLoader from a
command-line. Many of the arguments have a long form and a legacy short form, such as the
command to set a schema name when you upload a table: /SchemaName and /B.
Use a space or an equal sign (=) to separate a command argument and its value. This example
sets a target schema name, /SchemaName=schema_name or /B schema_name.
Syntax: /NoTreatEmptyStringAsNull
Syntax: /AppLocale=languagecode
/AppLocale=fr-FR
/SchemaName=MIPROUSER
/CommandFile=C:\MyFiles\EasyLoader\Commands\myCommandFile.txt
This example shows only the name of the log file, which saves to the same directory as
MapInfoEasyLoader.exe.
/F myLogFile.txt
/LogFileName=myLogFile.txt
This example specifies the full path for the log file. If the path contains spaces, use quotation marks
around it.
/Folder=C:/MyData;CreateNew
The following example does not include tables in subfolders under MyData. The third
AddToMapCatalog element is blank, because it is set to true by default.
/Folder=C:/MyData;CreateNew;;false
/AutomatedKey
/AutomatedKey=NO_IDENTITY
You can use this flag in an MapInfo EasyLoader shortcut, see Mixing Command-Line flags and
MapInfo EasyLoader Window Options.
/L ListOfTables.txt
This example shows the path to the file. If the path contains spaces, use quotation marks around
it.
/M XY
/SpatialObjectType=MICODE
/OracleConnectionString=myUid/myPwd@oraserver11gr2
This example sets the same connection and names the connection Oracle1. If the connection name
has spaces, use quotation marks around it.
/OracleConnectionString=[Oracle1]myUid/myPwd@oraserver11gr2
/P A
/SpatialObjectType=C
/ConnectionString=DSN=MyDataSource
This example sets a connection name to MyDBConnection. It then uses the full connection string
to the database, where items in all capitals are connection string parameters.
/ConnectionString=[MyDBConnection]UID=MyId;DATABASE=MyDB;
HOST=MyServer;SERVER=MyServer_tli;SERVICE=sqlexec;PROTOCOL=onsoctcp
This example sets a connection name to My Data Source. It uses a data source
(FileDSN=C:\Tenop\MyDataSource.dsn) with a user ID (UID=MyUserID) and password
(PWD=MyPassword). If the connection name has spaces, use quotation marks around the entire
connection string.
/ConnectionString="[My Data
Source]FILEDSN=C:\Tenop\MyDataSource.dsn;UID=MyUserID;PWD=MyPassword"
Syntax: /SaveCommandArgs=StateFilePath
/SaveCommandArgs=C:\MyFiles\EasyLoader\Commands\myCommandFile.txt
/T C:\data\states.tab;mystates;1,500;CreateNew;true
This example leaves the upload range value empty, so that it uploads all of the rows in the table. It
excludes the Map Catalog entry, so an entry is not created for this table in the Map Catalog.
/Table=C:\data\states.tab;MyOtherStates;;Replace
/Table=C:\data\aTable.tab
If the path of the upload file contains spaces, use quotation marks around it.
/Table="C:\My Documents\tables\aTable.tab";MyTable;;Replace;true
Also see Do Not Create a Spatial Index: /I, /NoCreateSpatialIndex, which controls the spatial
index.
/CommitInterval=500
/Y TableStyleCol
/StyleColumnName=TableStyleCol
This example uses the default column called MI_STYLE to load per-row styles.
/Y
/StyleColumnName
This example does not create a style column on the server table.
/Y NO_STYLE
/StyleColumnName=NO_STYLE
MapInfo EasyLoader saves a log file called EasyLoader.log under the AppData folder (for example,
C:\Users\<UserID>\AppData\Local\EasyLoader.log).
The log file contains the database connection information currently in use to upload data tables with.
You can see the contents of this file from within MapInfo EasyLoader by clicking Options and View
Log.
If you experience difficulty uploading your data and you wish to review the upload settings that
MapInfo EasyLoader last used, see Locating the MapInfo EasyLoader Configuration File.
In this section
New in MapInfo EasyLoader 17.0 39
New in MapInfo EasyLoader 16.0 39
New in MapInfo EasyLoader 15.2 40
New in MapInfo EasyLoader 15.0 40
New in MapInfo EasyLoader 12.5.1 41
New in MapInfo EasyLoader 12.5 41
New in MapInfo EasyLoader 12.0 41
History of Changes
MapInfo EasyLoader is now a 64-bit release that works with MapInfo Pro 64-bit releases 15.2 and
16.0. As a result, it uses 64 bit Oracle and ODBC drivers. Oracle Text is not supported.
MapInfo EasyLoader has a new look and feel that makes it easier to use and gives you new features.
With this release you can:
• Pause and cancel your uploads. For an overview of the new interface, see Getting Started.
• Work with both native MapInfo TAB files and NativeX (extended) TAB files.
• Work with files in different character encodings, because MapInfo EasyLoader now supports
Unicode.
• Apply error threshold options for better error handling. For details, see the descriptions for Table
Errors Threshold % and Insert Errors Threshold % settings under Server Table Processing
Options. These settings are made in the Options dialog.
• Use keyboard shortcuts as a faster way to access commands. For details, see Shortcuts by
Keystroke.
Several files are available for tracking and logging MapInfo EasyLoader settings:
• EasyLoader.log contains the database connection information currently in use to upload data
tables with. For details, see Locating the MapInfo EasyLoader Log File.
• MapInfoEasyLoader.Recent.xml lists the MapInfo EasyLoader settings for the last upload, such
as output folder location, connection settings, and data tables uploaded. For details, see Locating
the MapInfo EasyLoader Configuration File.
• MapInfoEasyLoader.Settings.rsp contains all of the flags used to start MapInfo EasyLoader. For
details, see Locating the MapInfo EasyLoader Command-Line Flags RSP File.
The command-line flags that you use when launching MapInfo EasyLoader from a command-line
have been updated. They now have longer names that are more user friendly. Instead of using /O
to set the oracle connection string, you can use /OracleConnectionString. Shorter flags, like /O,
still work, but using the longer flags is more intuitive. Also, there are new command-line flags
available:
• Help: /?, /Help
MapInfo EasyLoader 15.2 is a 32-bit release that works with the MapInfo Pro 15.2 64-bit release.
MapInfo Pro 15.2 supports Unicode and requires the PostgreSQL Unicode ODBC drive. MapInfo
EasyLoader does not yet support Unicode and requires the PostgreSQL ANSI ODBC drive. You
must have both drivers installed when both products are on the same machine.
This release fixes the following issue:
MapInfo EasyLoader 15.0 is a 32-bit release that works with the MapInfo Pro 15.0 32-bit release.
There are no new features or fixes.
MapInfo EasyLoader 12.5.1 is a 32-bit release that works with the MapInfo Pro 12.5.1 64-bit release.
There are no new features or fixes.
MIPRO-12309 A message displays when appending a native table with a MI_PRINX column in an Oracle
Spatial database with an OCI connection, "Table cannot be Appended—It has a different table
structure."
MIPRO-12320 When uploading a table with no geometry into MapInfo EasyLoader 11.5, an error message
appears: "Table cannot be Appended—It has a different table structure."
MIPRO-32642 MapInfo EasyLoader is unable to import to "geography" data type in SQL Server 2008 SP2.
You will need to upgrade to SQL Server 2012. SQL Server 2012 uses the function STIsValid( )
to check if a geography data type is well formed and recognized as a valid object based on its
OGC type. The MakeValid( ) function is also used that converts an invalid geography data type
into a valid one. In MapInfo Pro 12.0, you can use the extended spatial methods in SQL Server
2012 to manage valid geography data types. Refer to the SQL Server 2012 MSDN library for
more information.
www.pitneybowes.com