Professional Documents
Culture Documents
Remote databases
Agenda
1. Supported databases
2. Data Sources
Map Catalog
Working with the data
Tips
1. Supported databases
Supported databases
Spatial databases:
Oracle 11g including Annotation Text (Spatial and Locator)
Oracle 10g and 9iR2 (Spatial and Locator)
SQL Server 2000, 2005 and 2008 with MapInfo SpatialWare
SQL Server 2008 Spatial, both Geometry and Geography (v10.0)
PostgreSQL with PostGIS extension (v10.0)
Point and textual data:
SQL Server 2000, 2005 and 2008
MS Access 1997, 2003 and 2007
Any ODBC database
ESRI SDE and Geo databases can be opened read-only thru Open
Universal Data. Have a look at this demonstration by Safe:
http://www.safe.com/solutions/application/mapinfo.php#
2. Data Sources
MapInfo Professional installs by default all the support it provides for remote
databases
For MapInfo Professional prior to 9.5 these install were optional
ODBC installation is a standard part of Windows. MapInfo Professional
installation might update the drivers.
ODBC drivers not installed by Windows must be installed by end users, for
instance PostgreSQL/PostGIS.
Oracle client drivers must also be installed by end users.
If you have an Oracle client on your computer, you will be prompted to
choose between ODBC and Oracle Spatial when clicking File > Open DBMS
connection.
Otherwise you will be asked to Select a Data Source directly.
The support for DBMS is located in two dlls (midlodbc.dll and midloci.dll)
that can be copied into the MapInfo program folder afterwards. They are
specific to the MapInfo version. Note that the installer - in this case - might
not remove these when uninstalling MapInfo Professional
MS SQL Server
3. Map Catalog
Map Catalog
The Map Catalog (MapInfo.MapInfo_MapCatalog) describes
spatial tables in the database with values like:
Kind of spatial table, for example. XY, SpatialWare, Oracle,
SQL Server, PostgreSQ/PostGIS, etc.
Coordinate system
Data bounds
Symbol, default and per row
Default view
The Map Catalog must exist once in the
databases holding spatial data
The Map Catalog has been expanded
from time to time. With MapInfo
Professional 9.5.1 default zoom is
supported thru the the VIEW_* columns
EasyLoader
EasyLoader is provided with MapInfo Professional. It can also
be downloaded from our website
EasyLoader has the same version as the version of MapInfo
Professional it was built to.
EasyLoader is a standalone application that can run outside of
MapInfo Professional
EasyLoader is a Windows application but it can connect to
databases running on other operating systems
Can be run in batch mode
bat file
program
Refreshing
Reloading data from the database can be done with Table >
Maintenance > Refresh DBMS Table...
Refreshing a DBMS table
Checks the database for changes
Reapplies the query condition. Note that the query
conditions are static.
If you have specified to filter using the current map or
current selection, this filter will always be applied to the
table. To specify a different map extent, you have to
reopen the table from the database.
Editing
The remote table must contain a primary unique index
In a view this column should be named MI_Prinx
You can edit the data with every tool available in MapInfo
Professional
When editing coordinates of a XY-coordinate table, the
coordinates are updated in the columns with the X and Y
coordinates in the database table
Saving
Click Save Table to save the pending edits to the DBMS table
When saving the edits to the database, MapInfo checks if the
records you have changed, have been changed in the
database since you accessed these. If so, a dialog appears
asking you to solve the conflict
Saving changes offline (only for Linked tables) can be done
by closing the table. MapInfo will ask how to store the
pending edits:
Save locally
Save to the database
Discard
Querying - 1
Linked
Query is performed when
the table is opened the first time
the table is refreshed.
Live with cache
Query is performed when
the table is added to a map
you zoom or pan in the map
Live without cache
Query is performed when
the table is added to a map
you zoom or pan in the map
you click in the map with a select tool
you click in the map with the info tool
Querying - 2
You can specify which records to retrieve from the database
By attributes
Like and not like only available for
text columns
By geography
Selection only available when a
selection is active
Current_Mapper only available when
a map is active
Object is only available for mappable
tables
Querying - 3
Write your own SQL statement
Syntax depends on the database
MapInfo Professional will translate certain expression when
passing the query to the database:
Object
Within
Selection
Current_Mapper
You can save and open queries
5. Tips
Internet resources
Questions?