MapInfo UGuide
MapInfo UGuide
5 User Guide
(Unabridged)
Information in this document is subject to change without notice and does not represent a commitment on the part of the vendor or its representatives. No
part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, without the
written permission of MapInfo Corporation, One Global View, Troy, New York 12180-8399.
2003 MapInfo Corporation. All rights reserved. MapInfo, MapInfo Professional, MapBasic, StreetPro and the MapInfo logo are trademarks of MapInfo
Corporation and/or its affiliates.
MapInfo Corporate Headquarters:
Voice: (518) 285-6000
Fax: (518) 285-6060
Sales Info Hotline: (800) 327-8627
Government Sales Hotline: (800) 619-2333
Technical Support Hotline: (518) 285-7283
Technical Support Fax: (518) 285-6080
Contact information for North American offices is located at: http://www.mapinfo.com/company/contact_corporate.cfm.
Contact information for European and Middle East offices is located at: http://www.mapinfo.com/company/contact_europe.cfm.
Contact information for Asia Pacific offices is located at: http://www.mapinfo.com/company/contact_asiapacific.cfm.
Adobe Acrobat is a registered trademark of Adobe Systems Incorporated in the United States.
libtiff 1988-1995 Sam Leffler, copyright Silicon Graphics, Inc.
libgeotiff 1995 Niles D. Ritter.
Portions Copyright 1999 3D Graphics, Inc. All Rights Reserved.
HIL - Halo Image Library Copyright 1993, Media Cybernetics Inc. Halo Imaging Library is a trademark of Media Cybernetics, Inc.
Portions thereof LEAD Technologies, Inc. 1991-2003. All Rights Reserved.
Portions Copyright 1993-2003 Ken Martin, Will Schroeder, Bill Lorensen. All Rights Reserved.
This software uses patented LZW technology for .GIF image compression and/or decompression. (Unisys patent No. 4,558,302 and corresponding patents
in Canada, France, Germany, Italy, Japan and the United Kingdom). GIF images compressed or decompressed for transmission via the Internet or via any
other on-line communication capability may not be sold or licensed for revenue, or used by an Internet Service Provider or in paid advertisements unless
the user first enters into a written license agreement with Unisys. For information concerning licensing, please contact:
Unisys Corporation
Welch Licensing Department C1SW19
Township Line & Union Meeting Roads
P.O. Box 500
Blue Bell PA 19424
Blue Marble 1993-2003
ECW by ER Mapper 1993-2003
VM Grid by Northwood Technologies, Inc., a Marconi Company 1995-2003.
Portions 2003 Earth Resource Mapping, Ltd. All Rights Reserved.
MrSID, MrSID Decompressor and the MrSID logo are trademarks of LizardTech, Inc. used under license. Portions of this computer program are copyright
(c) 19951998 LizardTech and/or the university of California or are protected by US patent nos. 5,710,835; 5,130,701; or 5,467,110 and are used under
license. All rights reserved. MrSID is protected under US and international patent & copyright treaties and foreign patent applications are pending.
Unauthorized use or duplication prohibited.
Universal Translator by Safe Software, Inc. 2003.
Crystal Reports is proprietary trademark of Crystal Decisions. All Rights Reserved.
Products named herein may be trademarks of their respective manufacturers and are hereby recognized. Trademarked names are used editorially, to the
benefit of the trademark owner, with no intent to infringe on the trademark.
October 2003
Table of Contents
Chapter 1: Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What is MapInfo Professional and What Does it Do? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Mapping at a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Reviewing the MapInfo Professional Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Getting Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Using the Status Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Using the Help System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Whats New in MapInfo Professional 7.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Printing Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Database Enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Datum Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Mapping Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Add In Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Menu Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Tool Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
EasyLoader Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
MapBasic Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
20
20
21
21
21
23
23
25
26
26
27
28
29
29
29
30
31
34
37
39
40
41
43
46
48
49
49
50
50
51
iv
MI_UG.PDF
104
105
105
113
113
113
114
116
116
121
122
123
124
126
127
129
131
131
132
134
134
135
135
136
138
139
140
141
142
144
145
146
147
147
149
150
151
153
154
158
158
160
161
162
MI_UG.PDF
164
167
169
169
170
170
170
173
175
178
178
179
182
182
185
190
191
192
193
194
200
201
201
203
207
210
210
211
212
212
212
213
213
214
214
215
215
216
220
221
221
226
227
vi
MI_UG.PDF
234
235
236
237
242
242
243
244
246
249
249
253
254
255
255
259
261
261
265
266
267
268
270
271
272
273
275
276
278
279
281
284
285
287
288
289
289
289
290
vii
MI_UG.PDF
294
294
295
295
300
300
300
308
308
311
312
313
315
318
319
319
321
Chapter 11: Stylizing Your Map for Presentations and Publishing . . . . . . . . . . . . . . . 323
Changing a Maps Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Changing a Regions Style. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Changing a Lines Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Changing a Symbols Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Changing the Text Style. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Labeling Your Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Designing Your Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Choosing the Label Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using AutoLabeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Labeling Interactively . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using Text Objects as Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Removing Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Saving Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Layouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
What is a Layout Window? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working in the Layout Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Before You Create a Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating a Layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using Legends in a Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Moving Frames in a Layout Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Aligning Objects in a Layout Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Setting the Map Scale for a Layout Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Cloning a Map View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating a Cartographic Legend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
What is a Cartographic Legend? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the Legend Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
324
324
325
326
328
329
329
330
332
337
338
340
341
341
342
343
344
347
350
350
350
354
357
357
357
358
viii
MI_UG.PDF
368
368
369
369
370
371
371
372
373
375
377
380
381
384
384
385
386
386
387
390
390
390
391
391
392
392
393
394
397
397
399
399
400
404
405
405
ix
MI_UG.PDF
Creating Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Constructing Simple Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Constructing Complex Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Entering Specific Values (Constants) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Character Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Dates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operators - Mathematical Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operators - String Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operators - Comparison Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operators - Geographic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operators - Logical Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operator Precedence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
406
406
407
408
408
408
408
408
409
410
412
414
419
420
440
440
441
441
441
441
443
443
443
444
448
449
452
461
462
462
463
463
463
463
463
464
465
MI_UG.PDF
474
474
474
475
475
475
475
476
476
476
476
476
477
478
xi
MI_UG.PDF
xii
MI_UG.PDF
Introduction
Welcome to the MapInfo family of products! As the field of computer mapping continues to expand,
MapInfo leads the way with new products that are designed to fulfill users computer mapping needs from
the most basic to the most specialized with MapMarker, our premier address matching product.
MapInfo Professional, our flagship product, is a comprehensive computer mapping tool that enables you
to perform complex geographic analysis such as redistricting, accessing your remote data, dragging and
dropping map objects into your applications, creating thematic maps that emphasize patterns in your data,
and much more.
Among the new features are the inclusion of the Web Map Service Client, the integration of Vertical
Mapper, a new 3D graphics charting engine, and major enhancements to the Universal Translator. Whats
New in MapInfo Professional 7.5 on page 25 provides a full description of new and enhanced features.
This User Guide contains all of the information you need to learn about and be productive using MapInfo
Professional.
Chapter 1: Introduction
Mapping at a Glance
Huge quantities of information are available today, far more than ever before. Data abounds in
spreadsheets, sales records, and marketing files. Paper and disk store masses of information on
customers, stores, personnel, equipment, and resources. Thematic maps and graphs show
distribution of customers for a marketing campaign.
Nearly all of it has a geographic component. An estimated 85 percent of all databases contain
some sort of geographic information such as street addresses, cities, states, postal codes, or even
telephone numbers with area codes and exchange numbers.
Computer mapping can help you sort through all of this information, and using the geographic
components in your data, display your results on a map. This lets you see patterns and
relationships in the mass of information quickly and easily without having to pore over your
database.
14
MI_UG.PDF
Chapter 1: Introduction
Windows Compatibility
MapInfo Professional is Microsoft Windows 98, Windows 2000, Windows NT 4.0, Windows XP
Professional and Windows XP Home and Office compatible, so you will feel right at home with its
windowing environment. MI Pro is designed to fit smoothly into your work environment, so it only
changes the results you get, not the way you work.
Direct opening of files created with dBASE or FoxBASE, delimited ASCII, shapefiles,
Lotus 123, Microsoft Excel, and Microsoft Access; importing of graphics files in a variety
of formats; a function for creating database files from within the product.
Multiple views of your data in three formats: Map, Browser, and Graph windows. Hot
Views technology allows you to open multiple views of the same data simultaneously and
update all views automatically when you make a change to any one view.
Live ODBC access to remote database data such as Oracle and SQL Server.
MapInfo Professional 7.5
15
MI_UG.PDF
Chapter 1: Introduction
Seamless map layers that allow you to handle several map layers as if they were one
layer.
Cartographic legends, enabling you to create and customize legends for any map layer.
Thematic maps to create analyses of your data with high visual impact, including grid
surface themes, 3DMaps, and Prism maps.
Querying capabilities ranging from simple selections of data from a single file to complex
SQL queries from one or more files.
Workspaces that save all your settings and views so you can start where you left off at the
end of your last work session.
HotLinks that let you launch files or URLs directly from a Map window.
A comprehensive array of drawing and editing tools and other functions for customizing
your maps.
Thousands of ready-made maps and functions for creating your own maps.
Crystal Reports, the industry-standard report-writing program, allows you to create reports
of your tabular data directly in the product.
The ability to change the projection of your map for display or digitizing.
Object processing functions that help to correct errors in data, set node snap tolerances
for different objects, as well as thin nodes and polygons.
When its time to run MapInfo Professional, youll feel right at home with its windowing
environment. After youve organized your data visually, youll save the results to files, or send them
to your printer or plotter.
16
MI_UG.PDF
Chapter 1: Introduction
problems with Internet mail result in lost postings. If you are aware of recent postings that
are not in the database, please do not re-post to MapInfo-L! Instead, please forward a
copy of the posting to either Bill Thoen or the MapInfo Test Drive Center
(testdrive@mapinfo.com).
Utilize support along the way. When youre stopped at a critical point, Technical Support is here to
help. See Getting Technical Support on page 20 for details on contacting your local support
center.
17
MI_UG.PDF
Chapter 1: Introduction
Chapter 11: Graphing Your Data shows you the ins and outs of creating effective graphs using
the product. Here, you will learn what kind of graphs show your data in the most effective way and
how to create those graphs quickly and easily.
Chapter 12: Stylizing Your Map for Presentations and Publishing. If presentations are your
goal, this chapter demonstrates the use of Layout windows, which our users say are the most
effective way to create presentation materials. We review labeling and changing the styles of your
map.
Chapter 13: Registering Raster Images. This chapter shows you how to register raster images
so they line up properly with your vector based maps.
Chapter 14: Working with Coordinate Systems and Projections. Because the world is round,
you cannot talk about maps without talking about the curvature of the Earth. This advanced
chapter discusses the complexities of coordinate systems and projection in easy to understand
terms.
Chapter 15: Specialized Topics in MapInfo Professional covers the features that may not
pertain to all users but may be vital to helping you get your job done. Topics include: embedding
maps in other applications, Internet connectivity, redistricting, creating expressions, and working in
the MapBasic window.
Appendix A: Directory of MapInfo Professional Shortcuts lists the shortcuts we have created
to make you more efficient in using the product. You will probably want to refer to this directory
often as you get started.
Appendix B: Elements of a Coordinate System reviews the more advanced coordinate system
information that may not pertain to all customers.
Appendix C: Registering SPOT Images walks you through the use of raster and SPOT images
in computer mapping.
Appendix D: MapInfo Map Interchange Format discusses the Map Interchange Format which
can assist you in sharing MapInfo Professional maps.
Appendix E: Fill Patterns Used in MapInfo Professional contains the fill patterns used to shade
regions in MapInfo Professional.
Appendix F: Custom Datums. Most coordinate systems use one of MapInfos predefined
datums, listed in this appendix. If you are going to create your own coordinate system, you will
need to understand the information in this appendix.
Appendix G: Sample Data Copyrights lists the copyrights for the data we use in this manual.
Appendix H: New and Enhanced MapBasic Statements and Functions reviews the new and
enhanced MapBasic statements and functions for MapInfo Professional 7.5.
18
MI_UG.PDF
Chapter 1: Introduction
The MapBasic Reference is a complete guide to all MapBasic commands. Review the New and
Enhanced MapBasic Statements and Functions in Appendix H on page 588 for details on the
7.5 release.
We have created the MapInfo Professional 7.5 User Guide (Unabridged) to ensure that you
receive all of the information you need to use MapInfo Professional successfully. If you cannot find
information you are looking for in the Abridged version of this guide, please refer to the
MI_UG.PDF file on your installation CD.
Getting Support
Everyone at MapInfo Corporation is committed to your success and we provide a wide range of
support to assist you in getting the results you are working toward. What follows in this section is a
statement of the resources we provide.
19
MI_UG.PDF
Chapter 1: Introduction
StatusBar Help: For instantaneous answers to What does that command do simply move
the cursor over the command. A brief description of the command displays in the left pane
of the StatusBar along the lower edge of your screen.
Zoom, Map Scale, Cursor Location: View any one of these settings in the StatusBar. You
can change which one is displayed directly from the StatusBar. Click the arrow on the right
side of the box to display a popup list of the three options. Click the setting you want to
display. The StatusBar automatically updates. These display settings are also controlled in
the Map Options dialog box (on the MAP menu, click OPTIONS).
Editable Layers: To keep track of which layer is currently editable, review the list of layers
that display in the StatusBar. You can change the editable layer directly in the StatusBar.
Click the arrow to the right of the box to display a popup list of the layers in the Map
window. Click the layer you want to make editable. The StatusBar automatically updates,
showing the new editable layer.
Selectable Layers: The StatusBar indicates which layer the current selection is from. If
there is nothing selected, the StatusBar reads: Selecting: NONE.
Browser window Records: When viewing a table in a Browser, the record count displays in
the StatusBar.
Snap-to-Node: This S-key toggle feature is in use when SNAP displays in the StatusBar.
Use the Help Contents screen to choose topics from books. Click a book to display its
topics, and choose a topic from the list.
Use the Search feature to search on a specific word. Type the word you want to search for
in the first field, select the matching word in the second, and then the topic in the third box.
MapInfo Professional displays the topic in the pane on the right.
Use the Index feature to find a topic quickly. Type the first few letters of the word you are
looking for. The index entry that most closely matches your entry is highlighted. Click the
index entry you want to display.
Context-Sensitive Feature: Press the F1 key to receive more information on any menu
command or dialog. The Help window for that item displays. Also click the HELP button in
the MapInfo Professional dialogs to display information on the current dialog.
See Also information: Click the green underlined text in any Help window to bring up
information on related tasks or key words and phrases.
Online Help has been designed to display in half of your window so that you can view your maps,
Browser windows, and dialogs alongside the Help window. Of course, you can always change the
size of the Help window to work the way you are most comfortable. On the HELP menu, click
ALWAYS ON TOP to keep the Help window on your screen so you can continue to work in the
product. Or use ALT-TAB to toggle between the Help screen and the products windows.
20
MI_UG.PDF
Chapter 1: Introduction
Technical Support is here to help you, and your call is important. This section lists the information
you need to provide when you call your local support center. It also explains some of the technical
support procedures so that you will know what to expect about the handling and resolution of your
particular issue.
MapInfo Corporation provides full technical support for MapInfo Professional for versions 6.0 and
later. Please remember to include your serial number, partner number or contract number when
contacting Technical Support.
Contact the technical support personnel for your area:
The Americas
Phone: 518.285.7283
Fax: 518.285.6080
E-mail: techsupport@mapinfo.com
Hours: Monday - Friday from 8:00am - 7:00pm EST, excluding MapInfo Holidays. Closed
between 10:30am - 11:30 am on Mondays for training.
Asia-Pacific Headquarters
Phone: 61.7.3844.7744
Fax: 61.7.3844.2400
E-mail: ozsupport@mapinfo.com
Hours: Monday - Friday from 9:00am and 5:00pm (EST) Australian Eastern Standard Time,
excluding MapInfo Holidays.
Europe/Middle East/Africa
Phone: 44.1753.848229
Fax: 44.1753.621140
E-mail: support-europe@mapinfo.com
Hours: Monday - Friday from 8am to 5pm GMT, excluding MapInfo Holidays.
Germany
Phone: +49 (0) 6142-203-400
Fax: +49 (0) 6142-203-444
E-mail: supportgermany@mapinfo.com
Hours: Monday - Friday from 9 am to 5 pm MEZ, excluding MapInfo Holidays.
To use Technical Support, you must register your product. This can be done very easily during
installation. To receive more information on MapInfos technical support programs, contact a
representative in your area or one of our technical support offices.
In the United States, call 1800FASTMAP for more information. To purchase MapInfo technical
support or renew your current contract, please contact MapInfo Customer Service at 1800552
2511, and press 3 at the main menu, or send an e-mail at custserv@mapinfo.com.
Extended support options are available at each of our technical support centers in the United
States, United Kingdom, and Australia.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
21
MI_UG.PDF
Chapter 1: Introduction
Error messages
Context in which the problem occurs
Consistency is the problem reoccurring or occurring erratically?
Exchanging Information
Occasionally a Technical Support representative will ask you to provide sample data in order to
duplicate your scenario. In the case of our developer tools (such as MapX and MapXtreme), a
small subset of sample code may be requested to help duplicate the issue.
The preferred method of exchanging information is either via e-mail or our FTP site. Use the
following e-mail addresses:
Europe support-europe@mapinfo.com
Australia ozsupport@mapinfo.com
22
MI_UG.PDF
CDs
Chapter 1: Introduction
Software Defects
If the issue is deemed to be a bug in the software, the representative will log the issue in MapInfo
Corporations bug base and provide you with an incident number that can be used to track the bug.
Future upgrades and patches have fixes for many of the bugs logged against the current version.
Trained contacts can place an unlimited number of support calls during the time period of
a valid technical support contract.
Other Resources
Here are some other resources available to you when you need assistance in using or learning to
use MapInfo Professional.
In addition to these resources, the following books are available to MapInfo users:
Johnson, Ian. Understanding MapInfo: A Structured Guide
Sydney, Australia: Archaeological Computing Laboratory, 1996.
Daniel, Larry, Paula Loree, and Angela Whitener. Inside MapInfo Professional. Sante Fe:
OnWord Press, 1996.
MapInfo-L Archive Database
MapInfo Corporation, in conjunction with Bill Thoen, provides a web-based, searchable archive
database of MapInfo-L postings. The postings are currently organized by Discussion Threads and
Postings by Date.
Disclaimer: While MapInfo Corporation provides this database as a service to its user community,
administration of the MapInfo-L mailing list is still provided by Bill Thoen.
23
MI_UG.PDF
Chapter 1: Introduction
Any messages sent to the list can be read by anyone on the list.
Thoens Web is a web page authored by MapInfo Partner Bill Thoen. There are many links to GIS
information in general and specific links to MapInfo resources. You can reach Thoens Web at:
http:/www.gisnet.com/gis/
24
MI_UG.PDF
Chapter 1: Introduction
25
MI_UG.PDF
Chapter 1: Introduction
Printing Enhancements
MapInfo Professional 7.5 Printing Guide. We have done extensive work to enhance printing for
this release and have updated our Printing Guide with those results. See the MapInfo Professional
7.5 Printing Guide for a complete summary of these changes and for specific coaching on how to
print high quality maps and layouts.
Additional Fill Patterns. We have increased the fill pattern image size (up to 32 x 32 pixels) and
added new fill patterns to enhance the look of your maps. To access these additional patterns on
the OPTIONS menu, click REGION STYLE and scroll to the bottom of the PATTERN drop-down list to
display the new patterns. These patterns were created in response to customer requests. For a
complete list of the new patterns, see New Fill Patterns (Added in MapInfo Professional 7.5) in
Appendix E on page 570.
Printing Fill Patterns to Match Screen Display. We have added a Scale Patterns check box to
scale non-transparent fill patterns in your print output to more closely match what you see on the
screen. This check box displays on both the Advanced Print Options and the Output Preferences
dialog boxes. You can only enable this option for printing (not when exporting or when using the
Clipboard).
Note:
When you export or copy to the Clipboard, we automatically scales the non-transparent fill
patterns to match the resolutions you requested, so there is no selectable option in that
case.
26
MI_UG.PDF
Chapter 1: Introduction
For more about how to use this feature, see Setting your Output Setting Preferences in
Chapter 2 on page 59. For assistance in choosing the best scaling option for your needs, see
Recommendations for Effective Pattern Scaling in Chapter 2 on page 62.
Database Enhancements
Reading Larger Excel Files into MapInfo Professional. We have expanded the range limit in
the product to support the 64K row limit currently supported in Excel. There used to be a 32K row
limit but we have been able to expand our support to include these larger files.
Read Oracle Tables in 8.1.7 like 9i. In the past, Oracle 8i clients could not open three
dimensional SDO objects in MI Pro. Traditionally, we have read these objects in Oracle 9i but not
for 8i. The product was only indexing tables on two dimensions for customers using Oracle 8.1.7.
We recommend that you index your columns with the default /3D index to ensure that your queries
do not fail.
Datum Enhancements
Enhanced KKJ Projection Algorithm. For this release, we have significantly improved the KKJ
projection algorithm using conversion formulas from the National Land Survey of Finland.
Japanese Geodetic Datum Conversion. In the late 90s, Japan started using new parameters for
its Tokyo datum, which are somewhat different from those in the previous version of the product. In
MapInfo Professional 7.5, we have added a new datum, which uses the JGD2000 conversion to
convert the old Tokyo datum (the NIMA Tokyo datum (1991)) and the new Tokyo datum to the
JGD2000 datum. If the JGD2000 conversion fails (for example, when a point is outside the
JGD2000 grid), we use the standard Molodensky transformation method. See Tokyo97 in
Appendix B on page 539 for the exact Ellipsoid information.
Mapping Enhancements
Clearing Default Workspace Name After Close All. We have corrected a file overwriting
problem you might have seen using the Close All option. In the past when you saved your
workspace, selected Close All, and then saved another workspace, MapInfo Professional failed to
recognize that you were working in a different workspace. It would automatically prompt you to
save with the same name as you had previously entered, running the risk of overwriting the other
saved workspace. We have changed this process to clear the name of the last saved workspace
after the Close All selection. The default workspace filename is now UNTITLED.WOR.
Moving and Offsetting Geographic Objects. We have made it easier and quicker to move and
offset an object or a group of objects in Version 7.5. The offset / move functionality is available
when any layer is editable however, you can only move an object within its editable layer. You can
always use the copy feature as long as a layer is editable. Instead of moving the selected object
one pixel at a time, the Arrow keys now allow you to pan the map. We have added keystroke
instructions to move objects more precisely on the map. To move an object one pixel at a time,
click it and press and hold the CTRL key and press the ARROW button corresponding to the
direction you want the object to move. To move the object 10 pixels at a time, press and hold the
27
MI_UG.PDF
Chapter 1: Introduction
CTRL and SHIFT keys and press the ARROW button corresponding to the direction you want the
object to move. See Moving Objects on the Map in Chapter 7 on page 230 and Offsetting
Objects on the Map in Chapter 7 on page 231 for more information.
System Settings Changes: New Memory Size and Export Resolution Settings. You can now
set the number of bytes for the process in the System Settings Preferences dialog box. There
used to be an processes limit of 100K, but we have set this new field to 1,000,000 bytes by default.
Now you can set the image resolution for export and Clipboard-placed graphics in the System
Setting Preference dialog. This change affects the resolution of all the export options including the
Save Window As option. For more about using these new fields, see Setting your System
Preferences in Chapter 2 on page 49.
Zooming, Panning, and Moving Changes. We have added new functionality to assist you in
zooming and panning more precisely in the Map window. We have changed the function of the
Arrow keys in the Map window to move objects in an editable layer.
In addition to the usual zoom keys on your Main Toolbar ( ,
- keys on the keyboard, to zoom in and out more precisely.
, and
You can pan in the Map window using the scroll bars, if enabled, or the UP, DOWN, LEFT, and
RIGHT ARROW keys.
Further, you can move an object in an editable layer more precisely using the following key
combinations. Previously, you would use these commands to pan your view of the Map window.
<CTRL SHIFT ARROW> - moves the editable, selected objects 10 pixels at a time
Zoom Layering Change. When you add an object, a region, a line or a polyline in the Map
window and zoom out beyond where the zoom layer would permit you to see that feature, MapInfo
Professional turns off zoom layering so you can continue to see what you are working on. When
you complete the add process, a message displays asking you if you want to leave zoom layering
off (so you will still be able to see the feature). If you answer CANCEL, the product cancels the
zoom layering. If you answer OK, you need to adjust your zoom settings to see this feature again.
Snap Enhancements. New to this release is the addition of a circle around the Snap Mode cursor.
This snap radius gives you a better idea of which node(s) you are snapping to. The circle is sized
based on the snap tolerance setting. The default setting of 5 pixels can be changed in the Map
Window Preferences dialog box. A larger snap tolerance creates a larger circle around the cursor
and snaps to nodes farther away than if the tolerance was smaller.
Note:
Snap tolerance cannot be set to less than 0 or greater than 50, nor accept any negative,
decimal, or non-numeric settings.
The snap radius is only visible when Snap mode in toggled on, (press the S-key). Once you snap
to a node, the radius disappears and a snap crosshair displays at the snapped point. Additionally,
when the Snap is on, the new functionality allows you to snap to visible centroids (which display in
region objects). You can read more about snapping in Using Snap To to Select Nodes and
Centroids in Chapter 7 on page 236.
28
MI_UG.PDF
Chapter 1: Introduction
Setting and Printing the Map Scale in Layout Windows. You can now change the map scale in
the Layout window by changing the frame size or by changing the zoom value to correctly create
the scale of the layout. This new option calculates the zoom required to create the requested scale
without changing the size of the frame. Keep in mind that while your current map frames may each
share a Map window, you will only be able to change the scale of one map frame at a time. See
Adding Windows to Current Layout Using the Frame Tool in Chapter 12 on page 395 for
more about this new feature.
Large Crosshairs. We have added a large crosshairs feature. You can use these crosshairs that
extend vertically and horizontally to the length and width of the Map window to show the relative
position of objects and map features in your Map window. You toggle the Large Crosshairs by
clicking C in the Map and Layout windows. The Large Crosshairs stay on for the duration of the
session, unless you turn them off.
Custom Symbol Enhancements. We have added enhancements which significantly improve the
implementation of custom symbols. We have:
Increased the bitmap file size from 128K to a virtually unlimited file size
Increased the color depth of the bitmaps from 8bit maximum to a 24bit color maximum.
Increased maximum symbol point size to 240 points and increased maximum label offset
to 200 points (to support large custom symbols in maps and legends).
Added a new "Display at Actual Size" option for all custom symbols, so you can display
the symbol in its actual dimensions to see if it is appropriate for your map.
Save more custom bitmap symbols than ever you used to be limited to 256 symbols but
MapInfo Professional can now handle 32,767.
These changes are now covered in more detail in Working with Custom Symbols in Chapter 7
on page 226.
Improved Object Rotation. MapInfo Professional 7.5 continues to improve on rotating object
functionality. For selected objects, you can now set a precise angle of rotation and choose the
anchor point on which to rotate. Additionally, we have changed the rotation handle from Pro 7.0
from a square symbol to a circle, to differentiate it from square edit handles. Multiple selected
objects can now be rotated. For more concerning the changes in rotating objects, see Rotating
Objects on the Map in Chapter 7 on page 232.
Data Disaggregation Dialog Changes. Now, when your editable table has a different table
structure from your input table, you can specify the column as well as the value information in the
Data Disaggregation dialog box. See Combining Objects with Different Table Structures in
Chapter 10 on page 333 for an explanation of this new feature.
Dot Density Theme Enhancements. When you create a dot density map, the size of the dots
have been changed. Large dots are now 3 screen pixels wide and small pixels are 2 pixels wide.
This change is evident in the Customize Dot Density Settings dialog box.
29
MI_UG.PDF
Chapter 1: Introduction
Object Clean Gaps Modification. We have changed the way we handle gaps in polygons. When
there is a gap between two adjacent regions, MapInfo Professional will add the gap to the region
with the longest shared edge. See Cleaning Objects in Chapter 10 on page 348 for this
procedure.
Setting Map Bounds for DBMS Tables. In this release you can specify the bounds for a RDBMS
table when you make the table mappable for live access databases. By allowing you set the map
bounds, you can better control the visibility of your data, which is particularly important when
downloading large tables. Also in this release, when you make an Oracle Spatial table mappable,
MapInfo Professional automatically determines the appropriate coordinate system and bounds,
based on the SDO_GEOM_METADATA for the selected table and spatial column. For other
RDBMSs, the product still requires the information to be specified in the Make Table Mappable
dialog. For more about the changes to the Make Table Mappable process for remote DBMS tables,
see Making a DBMS Table Mappable in Chapter 6 on page 199.
Table Buffer Changes. You can now save a buffer to its own table. On the TABLE menu, click the
BUFFER option to use this new capability. See Saving your Buffer as a New Layer in Chapter 10
on page 323.
New Voronoi Capabilities. Some of our cellular phone tower customers, who have been using
the Voronoi polygon feature, have asked to be able to save their Voronoi polygons into a new
layer. We have added this functionality to accommodate this request. To read more about this new
feature in MapInfo Professional, see Saving your Voronoi Polygon as a New Layer in
Chapter 10 on page 339.
Add In Enhancements
Crystal Reports Changes. As part of this release, the installer checks to see if you are also using
our popular TargetPro application. If you are, we have corrected a problem some MapInfo
Professional/TargetPro users reported that affected their access to the appropriate Crystal Reports
documentation.
Vertical Mapper Integration. MapInfo Corporation has purchased Vertical Mapper, a rasterbased tool for performing spatial queries and geostatistical analysis on grid layers. Vertical Mapper
has 3D features and analysis tools including:
Grid layer creation and reclassification (Square Area and Kernel Smoothing)
Cross-Sections
Grid Contouring
Point-To-Point Visibility
30
MI_UG.PDF
Chapter 1: Introduction
This is an excellent tool, particularly for customers who use grid layers for elevation studies or
need to show or demonstrate vertical information. Vertical Mapper does not ship with MapInfo
Professional automatically.
Menu Enhancements
Window Menu Changes. There are several changes to the Window menu in MapInfo
Professional. We have added a check mark to show the active window as shown in the next figure.
If there are more than nine windows open at the same time, the entry More Windows displays.
Note:
The only way to change the order of the windows in the Window menu list is to close open
windows.
Tool Enhancements
We have added tools and made changes to existing tools to help you work more efficiently.
31
MI_UG.PDF
Chapter 1: Introduction
Register Vector Tool. This tool allows you to put control points into a vector image and reference
points into a Map window and then performs an affine transformation to line them up. An affine
transformation changes the relationship between the coordinate system you use to draw a map
and the coordinate system you use to display it. The interface is similar to the Raster Registration
tool. You might use this tool after importing an Autocad or ESRI Shape file which contains the
wrong coordinate system, placing the table in the wrong geographic location. For more about the
MapInfo Pro tools, see What are the MapInfo Professional Tools? in Chapter 3 on page 109.
Workspace Packager. The Workspace Packager is a new tool that saves a copy of the current
workspace and saves a copy of all data referenced by the workspace in a new location. You can
use this tool to manage and update internal workspace references and update .tab files to point
only to the "packaged" copies of the data. You can open the new workspace no matter where the
folder has been moved or copied to, even a different computer. Add the Workspace Packager tool
using the Tool Manager (available in the TOOLS menu).
You cannot change the default view for a raster image table, unless it is a seamless table.
The Autoscroll option has been removed from this tool, since we now provide this functionality in
the Options window. For more about the MapInfo Professional tools, see What are the MapInfo
Professional Tools? in Chapter 3 on page 109.
TOC Utility Updated. The TOC Utility produces seamless tables from Table of Contents [TOC/
THF] files (formats defined by the National Imaging and Mapping Agency (NIMA)). To improve
conversion speed for large image sets, we added an option that prevents MapInfo Professional
from opening a new map window for each newly-created seamless table. We have also made
some internal changes to give programmers the tools they need to call functions in a separate
module, TOCCore.MBO. You can use this module to batch process large numbers of TOC/THF
files without having to locate each file using the GUI interface.
32
MI_UG.PDF
Chapter 1: Introduction
EasyLoader Changes
ODBC Drivers. Our company is no longer providing Merant ODBC Drivers for MapInfo
Professional. We have made enhancements to the EasyLoader program to perform the same role
with drivers provided by the standard ODBC install. This change in drivers is handled during the
MapInfo Professional installation process. To ensure that you install all of the necessary drivers for
ODBC Connectivity, see Custom Workstation Installation in Chapter 2 on page 38.
MapBasic Enhancements
New MapBasic Statements and Functions. See New and Enhanced MapBasic Statements
and Functions in Appendix H on page 588 for details on the new statements and functions
available in this release.
33
MI_UG.PDF
Installing, Configuring,
and Starting MapInfo
Professional
This chapter helps you install and set the basic preferences for MapInfo Professional. In addition, there
are instructions for fixing problems that come up as part of the installation process. We also cover starting
and exiting the product.
Memory
Disk Space
Monitor
Windows 98 SE,
Windows 2000 Professional SP 3,
Windows NT 4.0 Workstation SP 6a
32 MB of RAM
with a minimum
of a Pentium PC
Windows XP Professional SP 1
Windows XP Home
64 MB of RAM
with a minimum
of a Pentium PC
Note:
The Installer requires that your TEMP variable be set to a valid directory.
The latest versions of Oracle Spatial, 9i and 9i Locator, while continuing support for 8.1.6
and 8.1.7.
SpatialWare 4.6 on all of its supported platforms, including SpatialWare for Microsoft SQL
Server versions 7 and 2000 and Informix 9.21 with linked tables and live access.
Microsoft Access 2000 and SQL Server, versions 7.0 and 2000.
And, to make your database work more productive, MapInfo Professional 7.5 provides an interface
for opening remote tables; the ability to easily save tables to a remote database using Save Copy
As and to create new tables on remote databases; as well the means to create a new table from
existing tables.
Have a favorite connection setting? Use the new Startup preference setting to automatically use
that connection when beginning your session. Or, choose to make a connection from within three
dialog boxes: Open, Create New Table, and Save Copy As.
Additionally, resolving database conflicts is now simplified using the improved Conflict Detection
for Live Access.
Note:
Data Direct (Merant) ODBC drivers have been removed from the installation and from the
MapInfo Professional product.
35
MI_UG.PDF
If the MapInfo Professional 7.5 installer detects an existing version of the product, 6.0 or earlier, or
detects that the product had been installed at some time, the MapInfo 7.5 installer will copy
MAPINFOW.WOR, STARTUP.WOR and MAPINFOW.PRF from the operating system's system
directory to <user profile root>\Application Data\MapInfo\MapInfo.
Application data (appdata) files are the non-executable data files that MapInfo Professional uses
during operation.
Install Products: From this option you can install MapInfo Professional (including DBMS
support and translators), free data, access to the documentation, and Install Utilities,
including: ECW Compressor, GPS, and Meta Data Browser.
Whats New: Display a list and description of new and enhanced features.
Online Reference: MapInfo Professional 7.5 provides the following online reference
documents: MapInfo Professional User Guide (Unabridged), MapBasic Reference, Crystal
Reports User Guide, the MapInfo Professional Printing Guide, as well as the Adobe
Acrobat Reader.
Run MapInfo Tutorial: From this option you can run the MapInfo Tutorial to learn more
about the basic features of MapInfo Professional.
Other Products: Display information about MapBasic, MapInfo Discovery, and MapInfo
Pro for SQL Server.
Note:
To install the remote database connectivity tools, choose the Custom Installation option.
We strongly recommend that you exit from all Windows programs before
beginning the installation process.
You must have Administrator rights to run the Installer on NT/2000 and Windows XP.
If your Windows Start menu does not have a MapInfo program folder, the installation process
creates this folder. If your Windows Start menu already has a MapInfo program folder, the
installation process creates a new MapInfo icon within that folder.
MapInfo Professional now provides its application data files to each user. Called a Per-User install,
this functionality runs the first time you run MapInfo Professional or MapInfo Professional client on
a machine, and each time the MapInfo Professional Installer is run thereafter. The application data
files include, among others, the Pen Styles file, Custom Symbols files, Graph Support files, and
Thematic Legend templates. These files allow different users to have custom settings.
To install MapInfo Professional:
1. On the LAUNCHER menu, click INSTALL PRODUCTS from the MapInfo Professional CD
Browser.
2. Click MAPINFO PROFESSIONAL. The Install Shield Wizard dialog box displays. Click NEXT to
continue the installation process and display the License Information dialog box.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
36
MI_UG.PDF
3. Click I ACCEPT THE TERMS to accept the terms of the license agreement and click NEXT to
continue the installation process. The Customer Information screen displays.
4. Type your name, organization name, and serial number in these required fields. Click
NEXT to continue. The Setup Type dialog box displays.
5. Review the following installation types and determine which instructions are appropriate
for your installation. Click one of the following and click NEXT to continue:
Note:
TYPICAL WORKSTATION INSTALLATION. Click this option if you will be using MapInfo
Professional as a desktop application requiring no remote database access or
connectivity. See Typical Workstation Installation on page 37 to continue these
installation instructions.
CUSTOM WORKSTATION INSTALLATION. Click this option if you require ODBC or Oracle
Spatial connectivity support. See Custom Workstation Installation on page 38 to
continue the installation instructions.
NETWORK INSTALLATION. Click this option if you are installing MapInfo Professional on
a network. See Network Installation on page 39 to continue the installation
instructions. These instructions are for network administrators only. After you install
MapInfo Professional on the network, follow the instructions for installing MapInfo
Professional on client equipment in Setting Up Client Workstations on page 40.
After the installation is complete, the prompt: Would you like to check our web site for any
current updates to our product? displays. If you have an Internet connection, check YES
to be connected to the page of the MapInfo Corporation Web site containing information
about product updates.
Make sure you have completed the directions in Installing MapInfo Professional
on page 36 before beginning these directions.
If you have an earlier version (or versions) of MapInfo Professional installed and
you do not want to overwrite that version, create a new directory name in the next
step.
37
MI_UG.PDF
Make sure you have completed the directions in Installing MapInfo Professional
on page 36 before beginning these directions.
A feature description, and the space required for the feature and its sub-features displays
in the Feature Description area.
2. In the Custom Setup dialog box you decide what components are to be installed and the
directory you want them to install to. Click the feature icon to select the feature for
installation. The options for a Custom Setup include:
MAPINFO PROFESSIONAL
TOOLS (MAPINFO UTILITY TOOLS, CRYSTAL REPORTS)
TRANSLATORS (UNIVERSAL TRANSLATOR, ARCLINK)
HELP FILES
MAPINFO ODBC CONNECTIVITY SUPPORT
ORACLE SPATIAL OBJECT SUPPORT
3. When you select a feature by clicking the DOWN ARROW beside it, a menu displays.
For each feature you want to install, choose one of the following:
38
MI_UG.PDF
When you select option 1 or 2 described above, the feature will be installed on your local
hard drive in the default folder. To specify another path, select CHANGE button to display
the Current Destination folder dialog box.
To see if you have enough space on your hard drive or other mapped resources, click the
SPACE button. The Disk Space Requirement dialog box displays the disk size, the amount
of available space, and the amount of space the selected install would take.
Additionally, you can choose to not install a component.
4. After you select all the custom options you want to install, click NEXT to display the Ready
to Modify the Program dialog box.
5. Click the INSTALL button to install the features you selected.
6. Install MapInfo Professional according to your selections.
Network Installation
Installing MapInfo Professional on a network involves two separate procedures:
Installing the product on a network drive (presumably done by the Network Administrator).
Setting up users with program manager icons, etc. (presumably done by the user).
Make sure you have completed the directions in Installing MapInfo Professional on page 36
before beginning these directions.
Choose this installation if you are a Network Administrator and have full rights to the network.
To continue installing MapInfo Professional on a network:
1. Choose NETWORK INSTALLATION; the Administrator Selection Screen displays.
The options for a Network Setup include:
MAPINFO PROFESSIONAL
TOOLS, TRANSLATORS
HELP FILES
A feature description, and the space required for the feature, displays in the Feature
Description area. Click the option icon to select the option for installation.
2. When you select a feature, a menu displays allowing you to choose to install and/or run
the feature and its subfeatures from various locations, including your local hard drive or
from CD. If you select the hard drive option, the feature will be installed in the path
indicated; on your local hard drive in the folder indicated; to specify a different location,
choose Change to display the Current Destination folder screen.
If you choose to install an option to your hard drive, the SPACE button is enabled; choose
this button to display the Disk Space Requirement dialog box.
Additionally, you can choose to not install a feature.
See Installing MapInfo Professional on a Network Drive on page 40 for additional
details.
39
MI_UG.PDF
The Network Installation alone does not install any files to the local hard drive.
Click MODIFY to display the Custom Setup dialog box. See the instructions for Custom
Workstation Installation on page 38 for more about this process.
Click REPAIR to repair installation errors in the program.
Click REMOVE to remove an existing copy of MapInfo Professional 7.5 from your
system. The installer displays the Remove the Program dialog box. Click REMOVE to
uninstall the products programs from your system.
You can also access the Program Maintenance screen from the Start menu by clicking
CONTROL PANEL and then ADD/REMOVE PROGRAMS and finally MAPINFO
PROFESSIONAL 7.5.
Note:
For more information about upgrading MapInfo Professional from an earlier version, see
Data and Settings Management in Appendix H on page 579.
MapInfo Professional 7.5
40
MI_UG.PDF
Be very careful when editing the registry; damaging the registry can cause
serious problems in your operating system.
For example, to set MapInfo Professionals Dynamic Data Exchange (DDE) time-out setting,
locate the following key in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\MapInfo\MapInfo\Common
Within that key, edit the DDeTimeout value. If there is no value by that name, create a new value of
type string (this data type is referred to as REG_SZ on Windows NT), and assign the name
DDeTimeout to the value. Set the values data to be a number, representing the number of
milliseconds (e.g., enter 30000 to specify a time-out of 30,000 milliseconds, or 30 seconds).
For more information on editing the registry, see the online help for REGEDIT or REGEDT32.
41
MI_UG.PDF
then bring the Map window to the front again, the map redraws instantly. If you set this setting to
zero, MapInfo Professional will not process off-screen bitmaps. This means that when you bring a
Map window to the front, you may have to wait as MapInfo Professional redraws the map.
If you are using a video driver that is uncommon or buggy, and if you encounter video problems
with Map windows, you may be able to eliminate those problems by setting the OffscreenBitmap
number to 0.
MaxFiles = number
This setting must be an integer from 10 to 100, indicating how many files MapInfo Professional can
open simultaneously. This setting does not limit the number of tables you can open, but it does
limit the number of tables you can edit at one time (the number of tables that have unsaved edits).
The default value is 29. If you need to work with more files simultaneously, set number to 100.
MaxORACLETILES = number
A value from 0 = unlimited tiles to infinity.
Improving Performance
To improve MapInfo Professionals performance, increase the speed of the processor in the
machine. A video accelerator card will increase the speed of the redraw. It will not speed up the
initial draw of the map, but all subsequent redraws will be faster. A faster disk cache will also
improve performance, as will adding memory.
42
MI_UG.PDF
The following is a list of predefined locations for application data files supported by MapInfo
Professional, and the corresponding numeric code to be used in MODE.INI.
Code
Description
Location
per machine
program directory
<Install Dir>
The following is a list of application data files/groups and their default location:
Filename
Default Location
MAPINFOW.CLR
MAPINFOW.PEN
MAPINFOW.FNT
MAPINFOW.ABB
program directory
MAPINFOW.PRJ
program directory
MAPINFOW.MNU
program directory
custsymb
thmtmplt
graphsupport
per machine
43
MI_UG.PDF
Installing Data
To help you get started, MapInfo provides you with some United States-based and world-wide
maps you can use as a background to your data. Use these instructions to install this free data.
To install the free data provided with MapInfo Professional 7.5:
1. Choose INSTALL PRODUCTS from the CD Browser.
2. Choose FREE DATA to display the MapInfo Professional Data screen. In this screen, you
can also review the data specifications, access new data over the web and learn about
what data is available from MapInfo Corporation.
3. Choose INSTALL FREE DATA. The Welcome screen displays.
4. Choose NEXT to continue. The License Information screen displays.
5. Choose YES to accept the terms of the agreement and to continue the installation process.
6. Select the product for which you will be installing the data. Select one of the following:
MapInfo Professional
MapInfo Run Time
CUSTOM INSTALL: Choose which datasets to install. Select the check box beside each
dataset you want to install. The size of each dataset displays, as well as space
required and space available.
To see the subcomponents of the data you selected, click CHANGE.
Choose NEXT to continue. Respond YES to the Would you like setup to display workspace
Icons prompt if you want to create an icon for each data set you choose.
9. The Select Program Folder screen displays if you chose to set up Workspace icons.
Select the program folder where the icons will be created. Choose NEXT.
10. The Start Copying Files screen displays. Review the selections you have chosen and click
BACK to return to any screen to change your selections. When you are ready to begin the
installation, click NEXT.
11. The Setup Complete dialog box displays; click FINISH.
44
MI_UG.PDF
45
MI_UG.PDF
Document Panning: In the Map and Browser windows, hold down the wheel button on the
IntelliMouse and move the mouse to pan the document. Release the button to end the panning.
There are three panning speeds. The speed of the panning is based on the cursors distance from
the starting point, indicated by the origin mark. In the Map window, the distance moved at each
speed is a percentage of the zoom distance.
For example, the amount to move at slow speed is. 005 * ZoomDistance, medium speed is. 01 *
ZoomDistance, and super speed is .1 * ZoomDistance. In the Browser, the window is scrolled by 1,
3, and 7 lines or columns for slow, medium and super speeds. When the cursor is within 15 pixels
of the starting point, there is no panning.
AutoScroll: In the Map and Browser windows, click and release the wheel button to activate
AutoScroll. When the mouse cursor is moved away from the starting point the document starts to
scroll in whatever direction you move the mouse. When the cursor is returned to the starting point,
scrolling stops. AutoScroll is turned off by any mouse click or key stroke. AutoScroll is also turned
off when MapInfo Professional loses the focus, for example, when you ALT-TAB to another
application.
Zoom; In the Map and Layout windows, move the wheel forward to zoom in on the document. Roll
back the mouse wheel to zoom out on the document. The wheel has a series of settings; each
click is the same as one click with a zoom tool. The mouse wheel does not recenter the view.
There are other keyboard commands that allow you to zoom in and out more precisely. See
Getting Around in the Map Window in Chapter 3 on page 84 for this information.
46
MI_UG.PDF
3. From Windows Explorer, double-click any of the PDF files to automatically launch the
Acrobat Reader and the online book.
Temp Variable
The MapInfo Professional Installer requires that your TEMP variable is set to a valid directory to
which the user can write.
Other Issues
The Installer must be run from a drive with a letter such as G: and not from an explicit UNC path.
For example, you might have the MapInfo Professional CD in your computer as USERSPC. Other
users may share this device as USERSPC; however, it would not contain a drive letter. The
MapInfo Professional Installation program requires a drive letter. To remedy this situation:
1. Right-click the shared directory or CD-ROM and select MAP NETWORK DRIVE.
2. Choose a drive letter to map.
3. Run the Installation Program again from the newly mapped drive letter.
47
MI_UG.PDF
48
MI_UG.PDF
2. Click one of the preference buttons to display the specified preferences dialog box.
3. Set your preferences in that dialog box and click OK to save them and return to the
Preferences dialog box.
4. Click OK to close the Preferences dialog box.
What follows in this section are details to assist you in setting your preferences.
49
MI_UG.PDF
COPY TO CLIPBOARD Click the Copy to Clipboard check boxes to specify what items
you want to copy to the Clipboard: text, bitmaps, or metafiles. MapInfo Professional
now copies metafiles in Enhanced Metafile format (EMF). All three are copied to the
Clipboard by default. Clear the appropriate check box(es) to prevent the item from
being copied to the clipboard.
COLOR DEFAULTS Select one of the Color Defaults preferences described below to
control how MapInfo Professional shades thematic map layers.
By default, MONITOR SETTING is selected. MapInfo Professional uses the color settings
of the monitor to shade the map when this option is selected.
Click the BLACK & WHITE radio button if you are using a color monitor and want to
shade your thematic map in gray-scale.
Click the COLOR radio button if you are using a black and white monitor and want to
print a thematic map in color on a color printer.
ASPECT RATIO ADJUSTMENT Select the Aspect Ratio Adjustment options so that
your map maintains the appropriate aspect ratio on your screen. Enter the dimensions
of your screen in these fields.
PAPER AND LAYOUT UNITS Specify the Paper and Layout Units used when you
measure the size of objects in a Layout window and the size of paper in the Print
dialog boxes. The default is set to inches. You can choose: inches, picas, points,
millimeters, and centimeters.
NUMBER OF OBJECTS You can only undo the last action. Set this option to the
number of objects in the last action you want the system to undo. For example, if you
moved 10 objects at the same time and enter 10 in this field, MapInfo Professional
restores all 10.
Note:
You cannot use the Undo capability for the following operations: Revert, Save,
Save As, or Modify Table, or any operations whose effects are primarily cosmetic.
50
MI_UG.PDF
The default is 10 objects. You can set it from 0 to 800. Setting the number of objects to
0 deactivates the system. After you use the Undo option, the system toggles to REDO.
MEMORY SIZE FOR UNDO Type the number of bytes of memory you want to set aside
for the Undo feature. This entry is set to 1,000,000 bytes by default. You can enter up
to 10,000,000 bytes into this field. Increasing this entry may result in slower response
time.
DISPLAY PRE-VERSION 4 SYMBOLS USING THE TRUE TYPE FONT Select this check box
to indicate how you want to draw symbols from versions of MI Pro earlier than 4.0.
Select this check box to draw vector symbols with characters from the MapInfo
Professional Symbols font. By default, vector symbols are drawn.
WINDOW EXPORT AND CLIPBOARD RESOLUTION To set the image resolution for
exporting and Clipboard purposes, type the resolution in this field. MapInfo
Professional uses this preference whenever you copy windows to the Clipboard,
export your work to metafile and raster formats and the Save Window As export
process as well. If you do not set this resolution manually, the product assumes 96
DPI. The maximum setting for this field is 1200 DPI.
DATE WINDOW FOR 2 DIGIT YEARS Select the appropriate Date Window for 2-Digit
Years option for your purposes:
Click the TURN DATE WINDOWING OFF radio button to use the current century for all 2digit years. This option is selected by default.
Click the SET DATE WINDOW TO radio button to refer to dates in both the current century
and the previous century. You need to use this setting if your data uses dates in the
1900s.
For example, if you type the number 30 in the Set Date Window field, 2-digit years
from 0029 are set in the 21st century (2000-2029), and 2-digit years from 3099 are
set in the 20th century (1930-1999).
51
MI_UG.PDF
TABLE PROJECTION To set the Default Projections for the current map, designate a
default table projection for creating new tables, importing MIF, MBI, and IMG files, and
for Choose Projection options in dialog boxes. Override the defaults by accessing the
Choose Projection option. This feature is not available for Universal Translator,
ArcLink, or Importing DXF files.
SESSION PROJECTION To set the option to designate a default MapBasic projection
for returning coordinate values using a MapBasic window or Update Column.
Compiled MapBasic applications are not affected by this preference.
3. Set the WARN PRIOR TO LOSS options to display warning messages before you leave the
currently open map window and lose cosmetic objects, map labels, and thematic layers
you have created. After the warning, you can save these objects, labels and layers as part
of a table or workspace. These boxes are selected by default.
You can turn off the display of these warning messages by clearing the desired check
boxes from the Warn Prior to Loss of group.
4. Set the WHEN RESIZING MAP WINDOW options to control the default behavior of Map
windows when you resize them. Select one of these options:
Click the FIT MAP TO NEW WINDOW to draw the map to fit the resized window. You see
the same view of the map that you saw before you resized the window. This is the
default setting.
Click the PRESERVE CURRENT SCALE button to change the view of the map when the
Map window is resized. As you shrink or enlarge the window, you will see a smaller or
larger area of the map.
This setting does not affect Map windows that are already open.
52
MI_UG.PDF
To override the preference settings for the currently open Map window, make different
selections in the Map Options dialog box.
5. Select the MOVE DUPLICATE NODES IN settings to specify whether MapInfo Professional
will move duplicate nodes when you use the Reshape command (on the EDIT menu, click
RESHAPE) to edit objects that are adjacent to each other, such as regions. Select one of
these options:
Select the NONE OF THE LAYERS button to prohibit the product from moving duplicate
nodes. This is the default setting
Select the SAME LAYER button to move duplicate nodes that are in the same layer
when one of the connected nodes is moved.
6. Select the APPLY CLIP REGION USING settings to specify how you want the product to clip
regions. Select one of these three choices:
WINDOWS DEVICE CLIPPING (ALL OBJECTS) The clipping is controlled by the Windows
Device Display. All objects (including points, labels, text, raster and grid images) will
be clipped at the Clip Region boundary. This is the default setting.
WINDOWS DEVICE CLIPPING (NO POINTS, TEXT) Use this method to emulate the Erase
Outside clipping method used in previous versions of MapInfo Professional. All
objects are clipped using Erase Outside except points and labels. Points and labels
will be completely displayed only if the point or label point lies inside the Clip Region
object. Text objects, raster files, and grid files are always displayed and never clipped.
ERASE OUTSIDE (NO POINTS, TEXT) This method uses the Erase Outside functionality.
This clipping method is used in all versions prior to MapInfo Professional 6.0. The Clip
Region object is the Cutter object, and all other objects are Target objects for this
operation. All objects are clipped using Erase Outside, excepts points and labels. In
addition, points and labels will be completely displayed only if the point or label point
lie inside the Clip Region object. Text objects are always displayed and never clipped.
7. Select the DISTANCE/AREA CALCULATIONS settings to specify the default type of distance/
area calculation that MapInfo Professional uses for new Map windows.
8. Select the following check boxes as appropriate. You may select as many as are
appropriate.
METRIC DISTANCE AND AREA UNITS To use metric units, such as kilometers and
square kilometers, select this check box. By default, MapInfo Professional displays
distance in miles and area in square miles (or kilometers and square kilometers).
SCROLLBARS To display scrollbars, select the Scroll Bars check box. By default,
MapInfo Professional does not display scrollbars in Map windows.
AUTOSCROLL To scroll the layout automatically, select the Autoscroll check box.
INFOTIPS To display one or two word tips when you cursor over a button, select the
InfoTips check box. By default, MapInfo Professional displays InfoTips. Clear the
Show InfoTips check box to deactivate their display.
MapInfo Professional 7.5
53
MI_UG.PDF
AUTOMATIC ZOOM LAYERING FOR RASTER AND GRID LAYERS To choose the default
mode for automatic zoom layering for raster layers, select this check box. Raster
zoom layering is turned on by default.
AUTOMATIC GRID ZOOM LAYERING To choose the default mode for automatic grid
zoom layering when adding a grid layer to the map, select this check box. Automatic
Grid Zoom Layering is turned off by default.
3DMAP WINDOW HARDWARE ACCELERATION This check box controls whether to use
your video card acceleration capability to display 3DMaps. Clear the box to display the
3DMap without using your video card acceleration capability. Turning the acceleration
off will reduce performance, but it will avoid failure with certain graphic adapters and
drivers.
9. To change the format in which coordinates display, select one of the options in the Display
Coordinates group. You can select only one:
10. Type the appropriate SNAP TOLERANCE setting to specify the default tolerance in pixels
within which Snap to node operates when you are drawing objects (click the S key to turn
Snap to node on).
The default is 5 pixels. Type in a smaller value to obtain a tighter snap tolerance, so that
you do not snap to other objects nodes as you draw. Type in a larger value to obtain a
looser snap tolerance, when you want to snap to a node even though you are relatively far
away from it. For more information about Snap Tolerance, see Using Snap To to
Select Nodes and Centroids in Chapter 7 on page 236.
11. Select a GRID HANDLER to allow you to select the output grid file format. By default,
MapInfo Professional uses the MapInfo Professional handler (*.MIG). The available
formats depend on which grid handlers are installed. When you change the grid file
format, the file extension on the grid file name changes to reflect the selected format.
12. Click OK to save these settings and return to the Preferences dialog box.
13. Click OK to close the Preferences dialog box.
54
MI_UG.PDF
For more information on legends, see Working with Legends in Chapter 9 on page 303.
2. Use the options in this window to set the Legend Frame Defaults.
To set the TITLE PATTERN, type the text that you want to display at the top of each
legend frame in this box.
By default, the Title Pattern is # Legend, where # is the name of the layer on which
the frame is based. So, if the frame is based on the States layer, the default Pattern
title would be States Legend. You can change this pattern to Legend of # or simply
#.
You may wish to have no default pattern. In that case, leave the box blank.
Choose a title pattern default that suits your needs. The # character can be used in
any of the pattern text boxes as a shortcut key for the layer name.
To set the SUBTITLE PATTERN, type the subtitle text you want in this box. The entry in
this box is blank by default, but you can set your own default title pattern for subtitles.
To set the STYLE NAME PATTERN, type the text you want to display beside each symbol
in this box. The default pattern is the % character. The Style Name is the text that
describes each symbol in a legend frame. The % character is used as a placeholder
for the type of object the legend symbol corresponds to: point, line, or region.
You can type in your own default Style Name Pattern, either using the % character or
not. For example, in a legend frame based on the States layer, a Style Name Pattern
that reads % of # will display as Region of States next to the symbol in the legend.
The % character can only be used in the Style Name Pattern box.
To set the BORDER STYLE, select this check box to place a border around the legend
and select the appropriate style by clicking the X box beside the Border Style option.
55
MI_UG.PDF
3. To change the defaults of the style attributes for the titles, the style name, or the legend
frame border, click the desired style box to display the corresponding style dialog box and
make your changes.
4. Click OK to save these settings and return to the Preferences dialog box.
5. Click OK to close the Preferences dialog box.
2. Select the following boxes to enable the indicated functionality; clear the check box to
disable this functionality. You may select all that apply.
SAVE MAPINFOW.WOR WHEN EXITING MAPINFO Select this check box to save your
setup to the MAPINFOW.WOR workspace when you exit MapInfo Professional. When
you clear this check box, MapInfo Professional does not save the MAPINFOW.WOR
unless you save it explicitly.
LOAD MAPINFOW.WOR WHEN STARTING MAPINFO To display MAPINFOW.WOR
when you enter MapInfo Professional, select this check box.
Note:
To enable this check box, you must clear the Display Quick Start Dialog check
box.
SAVE QUERIES IN WORKSPACES To save the queries you create during a mapping
session in the workspace.
SAVE PRINTER INFORMATION INTO WORKSPACES To save the printer information in
the workspace, select this check box.
The Save printer information into Workspaces check box saves the printer name,
paper orientation, paper size, and the number of copies from your printer settings into
the workspace. This also includes any overrides you might have made to the default
printer settings in the Printer preferences.
MapInfo Professional 7.5
56
MI_UG.PDF
When this preference is on, the workspace is written as a version 6.0 workspace. We
recommend that you leave this preference on. However, if you will be sharing
workspaces with other users, particularly if they are using earlier versions of MapInfo
Professional, you may want to leave the preference turned off.
Note:
If this preference is turned off, or if the printer indicated is not available, the printer
settings for the workspace revert back to the default printer set in the Printer
preferences.
3. Click OK to save these settings and return to the Preferences dialog box.
4. Click OK to close the Preferences dialog box.
2. Click OK to save the Address Matching preference and return to the Preferences dialog
box.
3. Click OK to close the Preferences dialog box.
57
MI_UG.PDF
2. To set a preferred directory for each type of file, highlight the file dialog type and click the
MODIFY button. The Choose Directory dialog box displays.
3. Select the appropriate directory for the file type you highlighted and click OK.
4. Repeat this process until you have specified all of the directories you need to.
5. Click OK to save these settings and return to the Preferences dialog box.
6. Click OK to close the Preferences dialog box.
Use this setting to specify the default directories that display in the File menu dialog boxes when
you open or save different files. You can specify directories for:
Tables
Remote Tables
Workspaces
MapBasic programs
Import files
DBMS SQL queries
Theme templates
Saved queries
New grids
Crystal Report files
Graph support files
MapInfo Professional 7.5
58
MI_UG.PDF
Shapefile Tables
When you click OPEN, you can select an icon from the MapInfo Places Bar. click the Workspace
Directory icon to display the workspace directory you designated in this preference.
Additionally, use this preference to search for raster and grid tables. If you open a *.tab file for a
raster or grid image and the image file cannot be found an attempt is made to find the image in the
same location as the .tab. If the image file is not found, it will then use the Search Directories.
Use the Search Directories for Tables and Workspaces to specify search paths that MapInfo will
use to look for tables referenced in workspaces or MapBasic programs that do not have fully
qualified paths.
To search directories for tables and workspaces:
1. To specify a search path, in Search Directories for Tables group, click ADD.
Note:
You can use the ADD and REMOVE buttons to add or remove paths from the list.
2. Specify a drive and directory in the Choose Directory dialog box and click OK.
You can set up to four paths. Use the UP and DOWN keys to change the search order.
3. Click OK to save these settings and return to the Preferences dialog box.
4. Click OK to close the Preferences dialog box.
You can get additional printer advice in the MapInfo Professional Printing Guide on the
installation CD.
59
MI_UG.PDF
2. The DISPLAY settings control the on-screen display of a raster or grid file. Click the
appropriate output settings based on your output requirements.
These entries explain the display settings, the printing options, and window export options
in this dialog. Some of the options appear in more than one dialog so we have grouped all
of the like explanations together.
DISPLAY RASTER IN TRUE COLOR WHEN POSSIBLE Click this check box to display
your 24-bit raster or grid file images in true color (make sure your display settings are
set to greater than 256 colors). Clear this check box if you only want your images to
display using 256 colors. This box is checked by default.
DITHER METHOD Dithering is a technique that blends pixels electronically to improve
the look of an image. Click a dither method when you are converting a 24-bit image to
256 colors.
Dithering creates the illusion of complex colors by using a pattern of finite (fixed) color
dots. For example, to create the color green using dithering, the color would consist of
a pattern of yellow and blue dots.
HALFTONE dithering calculates a series of half tone differences in color between highcontrast elements in your image to create a smooth transition of color. This option is
selected by default for display, print, and export options.
ERROR DIFFUSION dithering calculates an interim color between contrasting colors and
shades the surrounding pixels to blend evenly toward that interim color.
Note:
You can select dither method options in the display, printing, and exporting
sections of this dialog box. The same definitions apply to each area.
3. The PRINTING settings control the printing options for Map windows, Layout windows and
all other output file types. Select the appropriate printing settings based on your output
requirements. Remember that resetting these printer options locally overrides these
preferences.
60
MI_UG.PDF
OUTPUT METHOD/PRINT DIRECTLY TO DEVICE Click this option to print your image file
directly from MapInfo Professional as you did when you were using MapInfo
Professional 6.0 or earlier. This check box is checked by default.
OUTPUT METHOD/PRINT USING ENHANCED METAFILE Click this option to generate an
enhanced metafile of your MapInfo Professional image before sending it to the printer.
This setting takes advantage of current printer technology to shrink the spool size and
print your file quicker without sacrificing quality.
Note:
You must use this setting if you are printing a map containing a translucent raster
or grid layer. If you do not use this setting, the image will not print translucently.
PRINT BORDER FOR MAP WINDOW Click this check box to print a black border
around the image you are printing. Clear this check box to leave the image
unbordered. This check box is checked by default.
INTERNAL HANDLING FOR PRINTING TRANSPARENT VECTOR FILLS AND SYMBOLS
Special programming has been added to handle transparent fill patterns and bitmaps
for vector images when printing or exporting. Click this check box to use this
functionality or clear it to let the printer or Windows export functions to handle this.
This check box is checked by default.
SCALE PATTERNS Select this check box to match the non-transparent fill patterns in
your print output to more closely match what you see on your screen. This check box
is checked by default. Clear this check box to let the printer driver have exclusive
control over rendering the pattern fills.
Note:
The Scale Patterns check box does not affect transparent fill patterns because
transparent fill patterns are always scaled.
USE ROP METHOD TO DISPLAY TRANSPARENT RASTER Click this check box to allow
the internal ROP (Raster Overlay by Pixel) to manage the transparent pixel display
and printing in raster images. Since the ROP Method is largely a display method, not
all printers, plotters, and export programs can use it. We recommend that you either
check with the printer manufacturer before using this setting or try a few test prints or
exports to get the results you want. This check box is cleared by default.
Using the ROP method may not produce problems unless you print the metafile.
PRINT/EXPORT RASTER IN TRUE COLOR WHEN POSSIBLE Click this check box to print
and export your 24-bit raster or grid file images in true color (make sure your printer
settings are set to greater than 256 colors). Clear this check box if you are not working
with a color printer. This check box is checked by default.
Note:
See the Dither Method setting above for details about this option.
4. The WINDOW EXPORT settings control the export options for Map windows, Layout
windows and all other output file types. Select the appropriate window export settings
based on your output requirements. Remember that resetting these options locally
overrides these preferences.
EXPORT BORDER Click this check box to include a black border on images you are
exporting. Clear this check box to export the image without a border. This check box is
checked by default.
Note:
The preference setting definitions for Internal Handling for Transparent Vector Fills
and Symbols, Use ROP Method to Display Transparent Raster, Print Raster in
True Color When Possible, and Dithering Methods are the same for export as for
printing above.
5. Click OK to save these settings and return to the Preferences dialog box.
6. Click OK to close the Preferences dialog box.
61
MI_UG.PDF
You can get additional printer advice in the MapInfo Professional Printing Guide on the
installation CD.
WINDOWS DEFAULT This entry displays the path to the default printer specified for
your operating system. This button is selected by default.
MAPINFO PREFERRED Click this button to select a different default printer when
printing while using MapInfo Professional. This can be a printer or a plotter. After you
select this option you can specify the size of the paper that is appropriate for this
printer.
SIZE After you select a printer, this list prefills with the appropriate paper sizes
available. Select the requested paper size from this drop-down list.
62
MI_UG.PDF
ORIENTATION After you select a printer, you can specify the direction that the paper
faces. Portrait indicates that the paper is taller than it is wide (as shown in the previous
figure); landscape indicates that the paper is wider than it is tall.
NETWORK Click this button to locate the printer or plotter on the network that you
want to set as the default. This button only displays for users running under Windows
NT 4.0, Windows 2000 and Windows XP Pro. The Connect to Printers dialog displays.
Select the path of the printer you want to use as your default and click OK,
Double-click the printer in the list.
5. Click OK to save these settings and return to the Preferences dialog box.
6. Click OK to close the Preferences dialog box.
If you select the Windows Default printer, MapInfo will always use the printer that is currently set as
the default in Windows. The settings for that printer will display in the MapInfo Preferred Printer
Setup group. You will not, however, be able to change them in the Printer Preferences dialog box.
To change the Windows default printer, go back to the Windows Control Panel.
To use a printer other than the one indicated in the Printer preferences for a particular window
(Map, Layout, etc.), choose either:
On the FILE menu, click PRINT. You can change the printer you are using in the Print dialog
box, overriding the default printer settings.
On the FILE menu, click PAGE SETUP. In the Page Setup dialog box, click the Printer to
display the Preferences dialog box for the default printer. Select a different printer in the
Name drop-down list. This will override the default printer set in the Printer preferences.
Note:
The printer override applies only to the window you are currently printing. To actually
change the default settings, you must go back to the Printer preferences and specify a
new default printer.
63
MI_UG.PDF
DEFAULT OBJECT STYLES Click the Region, Symbol, Line, and Text buttons to set
these style options. These selections will serve to create the default settings for these
style elements.
HIGHLIGHT CONTROL Specify the Line, Region, and Multipoint styles of selected and
target objects, as well as highlighting specifications in the Map window. Additionally,
specify the style of selected and target Multipoint objects. The default settings are
shown in the Style boxes of the Highlight Control group. click one of the boxes to
display the corresponding style dialog box and change its settings.
3. Click OK to save these settings and return to the Preferences dialog box.
4. Click OK to close the Preferences dialog box.
64
MI_UG.PDF
Here you can choose how you want to start your mapping session. The Quick Start dialog
box displays every time you start MapInfo Professional, but you can change this behavior
in the Startup preferences (On the OPTIONS menu, point to PREFERENCES and click
STARTUP) using instructions in Setting the Startup Preferences on page 56. In the
Startup Preferences dialog box, clear the Display Quick Start dialog box to deactivate the
display of the Quick Start dialog box.
If you are returning to MapInfo Professional, you can return to the previous mapping session by
choosing Restore Previous Session or use last workspace. If this is your first look at MapInfo
Professional, choose the Open a Table option to begin. The Open dialog box displays.
Opening a Table
Just about everything in MapInfo Professional starts with opening a table. You can display the
information in your tables in a number of ways in MapInfo Professional, as a table, in a browser,
and on a map.
To open your table:
1. On the FILE menu, click OPEN. The Open dialog box displays.
2. Choose the drive and directory for the table you want to open.
3. Choose the appropriate table (.tab file). When opening multiple tables, use Shift-click to
select adjacent tables and Control-click to select non-adjacent tables.
4. Choose NEW MAPPER from the Preferred View list.
You can also open tables without displaying them, making the data available for other
uses. In this case, choose No View from the Preferred View list box in the Open dialog
box.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
65
MI_UG.PDF
5. Click OPEN. A window containing the data from the table displays as a map.
You can open additional tables to add more information (layers) to the Map window. If you want the
second table to display in the current Map window, leave the Automatic option selected in the
Preferred View list. MapInfo Professional displays the table in the current Map window
automatically.
If you do not want the table to display with the first map, choose NEW MAPPER. MapInfo
Professional opens a second table in its own Map window.
To set a default path you want MapInfo Professional to use when opening tables, click select new
directories in the Directories Preferences dialog box. See Setting your Directory Preferences on
page 58 for more information on this process. Here, you can also set default paths for
workspaces, MapBasic programs, Import files, and DBMS SQL queries.
Note:
If your data file does not contain graphic objects, you will not be able to display the table in
a Map window. You can only bring it up in a Browser. You must first geocode the table to
display it as a map. Geocoding is discussed more fully in Geocoding - Assigning
Coordinates to Records in Chapter 4 on page 130.
Use the Places Bar to quickly access a specified directory. There are four MapInfo Professional
Professional Places options: Table; Workspaces; Import Files; Remote Tables. Designate each
directory path in the Directories Preferences dialog box.
If you are using the Windows 2000 operating system, select MapInfo Places to display MapInfo
Professional specific folders, or choose Standard Places to display the default places.
To enable this option, clear the DISPLAY QUICK START DIALOG check box when you
enter MapInfo and select LOAD MAPINFOW.WOR.
3. Click OK to save these settings and return to the Preferences dialog box.
4. Click OK to close the Preferences dialog box.
66
MI_UG.PDF
67
MI_UG.PDF
Now that you have installed MapInfo Professional, you are probably anxious to get mapping. But, if you
are new to MapInfo Professional, take a few minutes to read this chapter to familiarize yourself with the
concepts, components, and tools for successful computer mapping.
Select the FLOATING check box for each toolbar that you want to have float and be
able to move around.
Clear the FLOATING check box for each toolbar you want to dock.
Note:
To display or hide the toolbars, select or clear the SHOW check box. You can also
choose whether you want to display color buttons or larger buttons for each
toolbar.
3. Choose SAVE AS DEFAULT to save your arrangement. To remove a toolbar from the
screen, click its control box.
New Table
Open
Save Table
Cut
Copy
Paste
Undo
New Browser
Help
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
69
MI_UG.PDF
Accesses the Change View dialog box so you can specify settings for Map window width, map scale, resizing, and centering.
Grabber *
Accesses the Grabber tool so you can reposition a map or layout within its window.
Info tool *
Accesses the Info tool so you can view the tabular data that is
associated with a map object.
Label
Accesses the Label tool so you can label objects with information from the related database.
HotLink
Layer Control
Accesses the Layer Control dialog box so you can specify how
the various tables in a Map window are layered and displayed.
Legend
Marquee Select
Boundary Select
Polygon Select
Unselect All
Accesses the Unselect All tool so you can clear all of your
object and record selections. Performs the same operation as
the Unselect All command.
Invert Selection
Selects all objects or records not included in the current selection, and cancels the current selection.
Graph Select
Radius Select
Accesses the Radius Select tool so you can select and search
for map objects within a circular region.
Ruler
Select
Assign Selected
Objects
70
MI_UG.PDF
Set Target District from Sets the target district from the map during a Redistricting sesMap
sion.
Statistics
Zoom-in *
Zoom-out *
Accesses the Zoom-out tool so you can get a wider area view
of a map or layout.
* These tools are also available when you access your MapInfo map within a container application
such as MS Word, PowerPoint, etc.
Accesses the Add Node tool, which allows you to add a node to regions,
lines, or polylines when you are in Reshape mode.
Arc
Accesses the Arc tool, which allows you to draw an arc the size and shape
of one quarter of an ellipse.
Ellipse
Accesses the Ellipse tool, which allows you to create elliptical and circular
objects.
Frame
Accesses the Frame tool, which allows you to create frames in the Layout
window to display maps, graphs, browsers, and legends.
Line
Accesses the Line tool, which allows you to draw straight lines.
Line Style
Accesses the Line Style dialog box where you can change the style, color,
and width of line objects.
Polygon
Accesses the Polygon tool, which allows you to draw polygons (a closed,
connected sequence of lines).
Polyline
Accesses the Polyline tool, which allows you to draw polylines (an open,
connected sequence of lines).
Rectangle
Accesses the Rectangle tool, which allows you to draw rectangles and
squares.
71
MI_UG.PDF
Region
Style
Accesses the Region Style dialog box where you can change the fill pattern,
color, and background, plus the border style, color, and width of region
objects.
Reshape
Toggles in and out of Reshape mode. Reshape allows you to edit regions,
polylines, lines, arcs, and points by moving, adding, and deleting nodes that
define them.
Rounded
Rectangle
Accesses the Rounded Rectangle tool, which allows you to draw rounded
rectangles and squares.
Symbol
Accesses the Symbol tool, which allows you to place point symbols on your
map like push pins.
Symbol
Style
Accesses the Symbol Style dialog box where you can change the style,
color, and size of a symbol object.
Text
Accesses the Text tool, which allows you to add titles, labels, and annotation
to maps and layouts.
Text Style
Accesses the Text Style dialog box where you can change the font typeface,
size, style, color, and background of text objects.
DBMS Toolbar
The DBMS Toolbar contains tools and commands that are used to access tables residing on a
remote database. These tools are only available if you have installed a relational database
manager.
Open DBMS Table
Accesses the Unlink DBMS Table dialog box, which allows you
to unlink a downloaded table from its remote database.
DBMS Disconnect
72
MI_UG.PDF
Using Workspaces
A workspace is a list of all the tables, windows, and settings you are using, stored in a file with the
extension .WOR. Workspaces are a convenient way to return to a previously created map without
having to open each table file individually. The workspace keeps track of the following elements:
Map, Browser, Graph, 3DMap, and Layout windows, including their size and position on
the screen
Query tables created from base tables using either the Select or SQL Select statements
(queries on queries will not be saved)
Graphs
Thematic maps
Legend windows
Cosmetic objects
Labels
Styles for fonts, symbols, lines, and fill patterns used to display objects
To view the contents in the workspace file, open the .WOR file in MapInfo Professional, a text
editor or word processor.
Note:
When you save a workspace, you cannot save any references to selections or queries
made by the Selection tools or the Query options.
You can use the Workspace Packager tool to create a copy of your current workspace in a new
folder, and copy all the data referenced by the workspace in the same folder. Using this tool, the
workspace looks to these internal references to find the data and .tab file, so you can open this
workspace no matter where you have moved or copied that folder, even if you move it to a different
computer. You can access this tool by looking for it in the list in the Tool Manager (on the TOOLS
menu, click TOOL MANAGER).
Make any table name changes before you start to build workspaces.
Open the workspace file in any text editor and manually change the table names.
Open a workspace. Rename the table(s) using the Rename Table dialog box and
immediately save the workspace.
MapInfo Professional v. 6.0.0.32 and later places an interactive clause after each open table
statement to prompt you for the file location if the table is not found in the original workspace path.
73
MI_UG.PDF
We recommend that you leave this preference on. However, if you will be sharing
workspaces with other users, particularly if they are using earlier versions of MapInfo
Professional, you may want to leave the preference turned off.
To restore printer information from a workspace, check the RESTORE PRINTER INFORMATION TO
WORKSPACES box. When you open the workspace, the printer name, paper orientation, paper size,
and the number of copies are restored. This is useful if you are sharing workspaces with other
MapInfo Professional 6.0 or later users who are also using the same printers. You may want to
leave it off if you want to send the workspace to someone who is using a different printer. If this
preference is turned off, MapInfo Professional uses the default printer selected in the Printer
preferences.
Note:
You can get additional printer advice in the MapInfo Professional Printing Guide on the
installation CD.
74
MI_UG.PDF
Everything you do in MapInfo Professional begins when you open one or more tables, whether
they are maps or data from a database.
FirstName
Address
ZIPCode
Fraser
Mark
212 Hudson St
12205
Donaldson
Eva
459 Yates St
12208
Espinosa
Kim
200 Broadway
12180
Smith
Charles
1 Redbird Ln
12065
Chang
Elizabeth
53 Crescent Rd
12077
To understand the database concepts we are about to discuss, consider the table above.
Each row in the list contains information about one person. In database terms, each row is a
record. Each different box of information (Last Name, First Name, etc.) within a record is called a
field. Fields correspond to the columns so that the table shown above contains four different fields.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
75
MI_UG.PDF
Database fields are ordered (first, second, third, fourth, etc.), and the basic convention is that the
first field displays as the first column in the database. The second field is in the column to the right
of the first, and so on to the last field, which is displayed in the rightmost column.
Since the data in a database isnt usually in alphabetical order or postal code order or any other
pattern which would make it easy for the computer to find the information, the computer needs a
way to organize the information. A database uses an index to keep track of what information is
where and what record it is tied to. Without indices it would be tedious to find anything in a
database with hundreds of records, not to mention databases with thousands and tens of
thousands of records.
A database index works on the same principle as a book index. A book index is an alphabetical list
of topics that appear in the book and the page number or address of the information. Database
indices work in a similar way, except that they generally work behind the scenes. You dont ever
see them. But the computer constructs them and allows you to use them in your work. An index
allows the computer to work with the records according to the order of items in the key field.
MapInfo Professional requires fields to be indexed in order to use the Find command. Indices are
also used to improve performance in SQL Select and joins.
A query is just another word for a question. You query data to collect a particular type information
from your database. For example, if you wanted to know how many customers live within a certain
number of miles of your store, (and you had that kind of information in your database), you could
query the database to find out that information. The result of the query is query data. You can think
of query data as a subset of your data as in the example a list of all the customers within 5 miles
and none of the customers who live further away. MapInfo Professional has tools to help you query
your data and display it on a map. For more about querying your data, see Selecting and Using
Queries in Chapter 8 on page 251.
If you are at the Quick Start dialog box (the first dialog box you see after starting
MapInfo Professional), choose the OPEN button. The Open dialog box displays.
76
MI_UG.PDF
2. Navigate to the data file you want to open. Use the Files of type drop down to select the
type appropriate for your data.
3. Select the view you want of this data from the Preferred View drop-down list. For more
information about the Preferred View options, see A Note about the Preferred View
Options on page 78.
AUTOMATIC MapInfo Professional chooses the most appropriate view. If the data is
mappable (i.e., graphic objects are attached to the data), for example, MapInfo
Professional opens the table in a Map window. If you have a Map window displayed
and the table you want to open is mappable, MapInfo Professional will automatically
open the table in the current Map window. If the data is not mappable, MapInfo
Professional will attempt to open the table in a Browser window. If the table cannot be
mapped or browsed, MapInfo Professional opens the table using the No View option
(no data is displayed).
BROWSER MapInfo Professional attempts to open the table in a Browser window.
CURRENT MAPPER MapInfo Professional attempts to add your data to the current
Map window.
NEW MAPPER MapInfo Professional attempts to open the table in a new Map
window.
NO VIEW MapInfo Professional opens the table, but no data is displayed.
77
MI_UG.PDF
Raster tables are graphic images that you can display in a Map window. These computerized
pictures do not have the same table structure of record, field, and index as data tables do, and
therefore, will not be discussed in this chapter. For more on raster images, see Registering
Raster Images in Chapter 13 on page 422.
You can see what windows are currently open by reviewing the list at the bottom of the Window
Menu. If one of these More Windows windows is the active window, the check box displays
beside the More Windows entry. To make another window active, click the entry in the Window list.
The window you selected comes to the forefront of the MapInfo Professional screen. When you
select the More Windows entry, the Select Window dialog box displays. To activate a window from
this list, either double-click the entry in the Select Window list, or click the entry and click OK.
If Current Mapper or New Mapper is selected and the data is not mappable, MapInfo
Professional will try to open the table in a Browser window.
If the table cannot be mapped or browsed, MapInfo Professional will open the table using
the No View option (no data is displayed).
Microsoft Access
Microsoft Excel
dBASE DBF
MapInfo Professional 7.5
78
MI_UG.PDF
ESRI Shapefiles
Raster Image
Grid Images
Lotus 123
Workspace
When you choose a particular file format, the File Name box will only list files that have the
appropriate extension. For example, if you choose dBASE DBF from the File Format drop-down
list, MapInfo Professional will only list files that are in dBASE format.
When you choose a file other than a MapInfo-formatted file type, MapInfo Professional creates a
table structure for that data based on the type of file that it is.
Note:
During the .tab file creation process, the original file is in no way altered. The file retains its
original properties.
When you open that table in future work sessions, MapInfo Professional will treat these files as if
they were in MapInfo Professionals native format. The next time you want to open the table, you
should choose the .tab format for the table. If you accidently attempt to open the file again with its
original file format, MapInfo Professional prompts you with the message:
Table definition already exists. Overwrite it?
This message displays because MapInfo Professional has already created a table for that file. To
use the file you have already created, press CANCEL and open the associated .tab file.
Also keep in mind that MapInfo Professional supports long filenames and UNC paths. The UNC
paths allow you to access your data without having to remember your drive mappings from one
session to another.
To display your table in the Map window, your data must contain X and Y coordinates. If it doesnt
already, you can add them using MapInfo Professional. Assigning these coordinates is called
geocoding. More about geocoding follows later in this chapter and in Chapter 4: Putting Your
Data on the Map.
Support for Raster Images
MapInfo Professional supports raster image display. Raster images are computerized pictures.
These graphic images can be used as backgrounds for maps you create in MapInfo Professional
and can serve as a reference for your displayed data.
When you bring in a raster image to MapInfo Professional, you may need to register it (specify its
map coordinates) so MapInfo Professional can display it properly. Choosing the Raster Image file
format from the Open dialog box will bring you to the Image Registration dialog box where you can
specify the appropriate map coordinates. Once you register the image, a process that creates a
.tab file for the image, you can open it as you would open any table in a Map window. Images that
you purchase from MapInfo Professional will already be registered.
If a raster image is georeferenced it will be automatically opened. If a raster image has an
associated world file, you will be prompted to choose the projection. If you open a raster image
that does not have any georeferencing data, you will be prompted to display or register the image.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
79
MI_UG.PDF
For a full discussion of raster image display, see Registering SPOT Images in Appendix C on
page 544.
<SOMEFILE>.tab: This file describes the structure of your table. It is a small text file
describing the format of the file containing your data.
Your data may also contain graphic objects. Once you assign X and Y coordinates to your data
records, your table will also contain graphic objects. In Geocoding - Assigning Coordinates to
Records on page 130, you will learn how to assign X and Y coordinates to your data records so
you can display them on a map. If you already have graphic objects in your table, there are two
more files associated with the table:
<SOMEFILE>.ID: This file is a cross reference file that links the data with the objects.
For a Microsoft Access table, there will be a file SOMEFILE.AID associated with the table instead
of SOMEFILE.ID. This file is a cross reference file that links the data with the objects for a
Microsoft Access table.
Your table may also include an index file. The index file allows you to search for map objects using
the Find command. If you want to locate an address, city, or state using the Find command, those
fields must be indexed in your table. The index is located in:
<SOMEFILE>.IND
80
MI_UG.PDF
Double click the directory that contains the data you want until you see a list of .tab
files.
Select the .tab file you want to open and click OPEN to display it.
81
MI_UG.PDF
6. Complete the entries in this dialog box and click OK to display the shapefile.
Projection
Select the appropriate projection for this file by clicking this button, selecting the category
and projection and clicking OK.
Style
Select any line or region style overrides that are necessary for this image by clicking the
STYLE button. When you select this option, the appropriate style options dialog box
displays. Make your changes and click OK to save them.
82
MI_UG.PDF
If after you open the Shapefile in MapInfo Professional, you edit the file in ESRI
ArcView and save the file, the contents of the *.MAP and *.DAT files are recreated
to retain these edits even if you selected SAVE OBJECT CACHE before.
83
MI_UG.PDF
Graph windows present information arranged as graphs, allowing you to visualize and
make comparisons of the purely numerical patterns.
Layout windows present information in a polished and attractive way and can be
embedded in other applications such as Microsoft Word or PowerPoint.
, and
You can pan in your Map window using the scroll bars or the ARROW keys UP, DOWN, LEFT, and
RIGHT.
Further, you can move an object in an editable layer more precisely by selecting it and using the
following key combinations.
84
MI_UG.PDF
Note:
<CTRL + SHIFT ARROW> - moves the editable, selected objects 10 pixels at a time
These tools also apply to the Layout window.
To create a report of your data, use the Crystal Reports functionality included with this version of
MapInfo Professional (on the TOOLS menu, click CRYSTAL REPORTS).
85
MI_UG.PDF
MapInfo Professional has some excellent tools to assist you in moving around the Layout
window. See Getting Around in the Map Window on page 84 for these details.
Legend Windows are the key boxes at the bottom of the map that explain what the map
symbols mean. There are two different kinds of legend windows:
a. The Theme Legend window is automatically created and details the meaning of
colors, symbols and styles on a thematic map. Display or hide this legend in the
OPTIONS menu, by clicking the SHOW/HIDE THEME LEGEND WINDOW menu option.
b. The Cartographic Legend displays legend frames for any map layer, not just thematic
map layers. The legend window displays the legend, or key, to the cartographic data
on your map.
MapInfo Professional 7.5
86
MI_UG.PDF
The legend frames can all be in one window, or can be split among several legend
windows for the same map. Therefore, each map can have one or more cartographic
legend windows containing the frames of your choice. Additionally, you can customize the
text and style of the information presented. Modifications to the legend can be made
through shortcut menus you access by right-clicking in the legend window or through the
Legend menu. You can learn more about legends in Working with Legends in Chapter 9
on page 303.
Redistricting Windows are allow you to create groupings of spatial information. This is a
little more complex than these other options. For more information about redistricting
windows, see Redistricting Grouping Map Objects into Districts in Chapter 15 on
page 470.
What is a Layer?
In MapInfo Professional you begin by opening your table of data and displaying it in a Map window.
Each table displays as a separate layer. Each layer contains the table plus any map objects, such
as regions, points, lines, and text. Additionally, the layer contains style overrides and zoom
layering characteristics that you can add to give the layer more or less prominence in the Map
window.
For example, one layer may contain state boundaries, a second layer may have symbols that
represent capitals, a third layer might consist of text labels. By stacking these layers one on top of
the other, you begin to build a complete map. You can display one, two, or many tables at a time.
Map layers form the building blocks of maps in MapInfo Professional. Once you have created your
map of layers, you can customize the layers in a variety of ways, add and delete layers, or reorder
them.
87
MI_UG.PDF
Regions: closed objects that cover a given area. These include polygons, ellipses, and
rectangles. For example, country boundaries, postal code boundaries, sales territories.
Point objects: represent single locations of data. For example, customer locations,
restaurants, parking meters. Points can also be combined into multipoint objects.
Line objects: open objects that cover a given distance. These include lines, polylines, and
arcs. Examples are streets, rivers, power lines.
Text objects: text that describes a map or another object, such as labels and titles.
You can have each type of object in a separate layer (most common), or you can combine objects
in the same layer. MapInfo Professional lets you create, edit, customize, and display these objects
to make maps that meet your needs.
For information about drawing and editing map objects, see Drawing and Editing Objects in
Chapter 7 on page 220.
Layer Control enables you to manipulate the layers and their attributes to control the map
display.
88
MI_UG.PDF
Check these
boxes to display
a layer
Check these
boxes to label a
layer
automatically
Check these
boxes to make
a layer
selectable
Check these
boxes to make
a layer editable
2. When you have completed your selections and changes, click OK to display the changes
on the map.
Reordering Layers
Map layers display in the order that they are listed in the Layer Control dialog box, with the bottom
layer drawn first and the top layer (which is always the Cosmetic Layer) drawn last. It is important
to order your layers correctly.
For example, you have a layer of customer points and a layer of census tracts. If the layers are
incorrectly ordered in the Map window, MapInfo Professional might draw the customer points first
and then display the census tract layer second. Your points would be obscured by the census tract
layer.
You can reorder how layers are displayed in a Map window two ways.
To reorder the layers in a map:
1. Click
Select the layer or layers you want to reorder and use the UP and DOWN REORDER
buttons to position the layer(s) where you want them.
Click the layer or layers and drag it (or them) to the new position. When you use the
click and drag method, the cursor changes and as you move the cursor, a marker
displays indicating the layers new position.
If you cannot move a layer to a particular position (e.g., attempting to move a layer
above the Cosmetic layer), the cursor changes to a circle with a slash through it to let
you know that you cannot move the layer to the proposed position.
Note:
Since the Cosmetic layer is always the top layer, reordering has no effect on it.
You cannot move a layer above the Cosmetic layer.
3. To display the new layer order on the Map window, click OK.
Layer order is also important when you use the Select tool. The Select tool selects objects from the
topmost Selectable layer. If you have several objects at the same location, it is difficult to select the
exact one you want. You can reorder your layers in Layer Control so that the layer you want to
select from is the new topmost layer.
89
MI_UG.PDF
MapInfo Professional does not allow you to control the front-to-back ordering of objects within a
single map layer. If you are editing a table, and you draw a line on top of a circle, the line might
appear in front of or behind the circle; you cannot control whether it is in the front or the back. You
can, however, control the front-to-back ordering of objects in a Layout window.
Note:
If you need to control the ordering of objects (e.g., you need to make sure that your lines
display on top of your regions), put the different object types in separate layers. Put your
line objects in one table, and put your region objects in another table. Then use the Layer
Control dialog box to order the layers.
You can only add layers from tables that are open. If you want to add a layer and you do
not see it in the list, make sure the table that contains that layer is open.
2. Click the layer or layers you want to remove, using the SHIFT key to select adjacent layers
or the CONTROL key to select random layers.
3. Click the REMOVE button. MapInfo Professional removes the layers from the list.
4. Click OK in the Layer Control dialog box to redisplay the Map window without the removed
layers.
Display settings for each layer are available in the Display Options dialog box, discussed in the
next section.
90
MI_UG.PDF
Double-click a layer.
Here, you can change the default styles for the layer, set the zoom at which a layer
displays, and show line direction, object nodes and centroids.
3. To make changes to the Style Override or the Zoom Layering options, select the check
boxes.
The Zoom Layering options allow you to determine zoom levels at which the selected
layer displays, so that the map layer displays only when the maps zoom level falls within
this preset distance.
For more about zoom layering, see Setting the Zoom Layering on page 92.
The Show options at the bottom of the Display Options dialog box, allow you to set the
way points, lines and regions display on the current layer. See Displaying the Lines,
Nodes, and Centroids on page 93 for more about these options.
4. When you make style override changes, click the STYLE button to display these options:
You can make changes to every aspect of the symbol styles in this layer.
5. Make your new selections in this box and click the OK button to return to the Display
Options.
6. In the Display Options dialog box, click OK to return to the Layer Control dialog box.
7. Click OK to see your changes on the Map window.
91
MI_UG.PDF
For example, you have a layer of streets and a layer of postal code boundaries. When you zoom
out past 10 or so miles, the streets look like a black smudge in the window. This is because the
zoom (window width) is too wide to show detailed street maps.
Use Zoom Layering to tell MapInfo Professional to display the street layer only when the zoom is
set to a distance that allows you to see the street detail properly, for instance, less than 5 miles.
The first map doesnt have zoom layering set for its street layer. At a zoom of 15 miles across,
notice how difficult it is to see any detail. The second map has zoom layering set to display the
streets when the zoom is less than five miles. Therefore, the streets layer does not display when
the window is set at 15 miles.
To set zoom layering:
1. Make the layer editable.
2. Open the Layer Control box and highlight the layer you want to set the zoom layering for.
3. Choose the DISPLAY button. The Display Options dialog box displays.
4. Click the DISPLAY WITHIN ZOOM RANGE box to activate the zoom distance boxes.
5. Specify a minimum and maximum distance within which you want the layer to display.
Note that you cannot change Display settings for more than one layer at a time.
Note:
If you have more than one layer selected, the Display, Label, and Thematic
options are unavailable.
6. Click OK to save your settings and click OK again to return to the map window.
You can display different layers in the same Map window at different zoom levels. For example,
you have a layer of streets, a layer of county boundaries, and a layer of state boundaries. You
want the streets layer to be visible only when the zoom level is less than eight miles. You want the
92
MI_UG.PDF
county boundary layer to display when the zoom level falls between 20 miles and 200 miles. You
want the states boundary layer to be visible only when the zoom level is greater than 100 miles.
You can set a different zoom level for every layer in your Map window.
Note:
When you add an object, a region, a line or a polyline in the Map window and zoom out
beyond where the zoom layer would permit you to see that feature, MapInfo Professional
turns off zoom layering so you can continue to see what you are working on. When you
complete the add process, a message displays asking you if you want to leave zoom
layering off (so you will still be able to see the feature). If you answer CANCEL, MapInfo
Professional cancels the zoom layering. If you answer OK, you need to adjust your zoom
settings to see this feature again.
2. In Layer Control, select a layer and click the Label button. The Label Options dialog box
displays.
Use the options in this window to customize the labels for the selected layer on your map.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
93
MI_UG.PDF
3. Make your changes in this dialog box and click OK to return to the Layer Control dialog
box.
You can select a new autolabel for this layer from the Label with drop down list.
You can set the visibility options for the labels in this layer based on zoom criteria, and
allow/disallow label duplication, label overlap, and partial labeling of objects. You can
even set a maximum number of labels.
You can set the label styles in the Styles box.
You can determine the labels position relative to the object/line in the Position box.
4. In the Layer Control dialog box, click OK to display these label changes in the Map
window.
You can only make the Cosmetic Layer editable or selectable. Other Layer Control options
(labeling, zoom layering, display mode) are not available for the Cosmetic Layer. To select fill
patterns, line types, symbols, and text font for the Cosmetic Layer, use the Line Style, Region
Style, Symbol Style and Text Style commands from the Options menu. When the Cosmetic Layer
is editable, you can access the style options from the Drawing Toolbar.
The contents of the Cosmetic Layer are linked proportionally to the map. Map objects (except for
symbols) and text in the Cosmetic Layer are proportionally linked to the zoom level of the map. If
you draw objects in the Cosmetic Layer and then change the maps zoom from 30 to 100 miles,
the size of the objects will appear smaller.
94
MI_UG.PDF
When you close a table without saving the Cosmetic objects first, MapInfo Professional prompts
you with the Save Map Objects dialog box to encourage you to do so. You can turn this prompt off
in Map Window Preferences.
To save the objects in the Cosmetic Layer to a table:
1. Click the CLOSE button in the upper right hand corner of the table. The Save Map Objects
dialog box displays.
2. Select the layer to which you want the objects to be transferred from the drop-down list.
3. Click SAVE to save the table and transfer the objects to the new layer.
2. Place a check in the Editable column beside the layer you want to edit.
3. Click OK to return to the Map window.
You can also control the editability of the layer via the Status Bar at the bottom of your screen.
To change the editable layer from the Status Bar:
1. Click the Editing box to display a list of the layers used in the Map window.
95
MI_UG.PDF
2. Choose the layer you want to make editable. Its name displays in the Status Bar.
3. To deactivate editability for all the layers, choose NONE.
96
MI_UG.PDF
2. Place a check in the Selectable column beside the layer in which you want to make
selections.
3. Click OK to return to the Map window.
To make more than one layer at a time selectable, select the layers you want, and select the
Selectable check box for one of the layers.
For example, if you want to find all customers who live within a fifty kilometers radius of Paris,
make the Street layer selectable. If the map also includes a layer of hospitals (which you do not
want to include in the radius search), turn off the Selectable option for the hospital layer.
Keep in mind that the Editable or Selectable options only apply to the Map window itself. You can
always select objects using the Select or SQL Select commands regardless of whether a layer is
selectable.
in the Main toolbar and click the object you want information about.
If the information that displays is not what you were looking for, check to see that
the layer you are interested in getting data for is selected.
When you click a map location using the Info tool where two or more selectable map objects
overlap, the data tied to the objects on each layer display in the Info tool window. If you do not want
the information for all layers to display, turn off Selectable for those layers in the Layer Control
dialog box.
You can also view an objects label expression in an InfoTip when you use the Select, Info, or
Label tools. InfoTips work very much like ToolTips. Using one of these tools, place your cursor over
an object. An InfoTip displays the label expression for the object in the topmost selectable layer. To
set InfoTips for a particular layer, adjust the Selectable attribute in the Layer Control dialog box so
97
MI_UG.PDF
that the Tips display for the layer you want. InfoTips are active by default, but you can turn them off
in the Map window preferences (on the OPTIONS menu, point to PREFERENCES and click MAP
WINDOW).
Graduated symbol thematic maps do not require that your base layer contain point
objects. Instead, graduated symbol objects are built regardless of the map object type.
Therefore, even if your base layer contains region or line objects, you will still be able to
create a graduated symbols map.
You can have multiple thematic layers per base layer. In some cases, you do not have to
add another base layer to the map to create another thematic layer. You can display more
than one thematic layer at a time, as well as perform bivariate thematic mapping.
You can use Layer Control to turn the display on or off for a given thematic layer. The layer
it is based on can continue to display. You can also set individual zoom layers on thematic
maps.
98
MI_UG.PDF
Thematic layers are displayed in the list with this naming convention:
<Thematic type> with/by <variable-list>
The type of thematic map is noted first, followed by the list of variables used to create the map. For
example, a pie thematic layer that uses commuting data is listed this way:
Pies with ComAlone, ComCarpool...
The variable list is truncated if there is not enough room to display each variable used in your
thematic analysis.
For more information about thematic mapping, see Using Thematic Mapping to Analyze
Information on page 281.
If you are going to work with the raster image, you need to register it and specify a
projection within which to work. For a complete definition of registration and projection,
see Registration on page 616 and Projection on page 615 in the Glossary.
5. Do one of the following:
99
MI_UG.PDF
2. Highlight the raster layer in the Layer list and click the DISPLAY button.
3. In the Display Options dialog box, select the STYLE OVERRIDE check box and click the
STYLE button. The Adjust Image Styles dialog box displays, where you can make changes
to the transparency, brightness, contrast, and translucency settings.
4. Click OK to save your changes.
In MapInfo Professional, raster images are used as display layers only. They cannot have any data
attached to them like vector map images. Raster images are particularly well-suited for use as a
backdrop for vector map layers because they provide a much greater level of detail than vector
maps. For more information about raster image files, see Registering Raster Images in
Chapter 13 on page 422.
100
MI_UG.PDF
Notice at first glance that the seamless layer looks like any other MapInfo Professional table.
However, the DCMETROW seamless map layer is made up of the following base tables:
The structure of each seamless layer includes the path name of each base table plus a description
that defaults to the table name (alias). To view the table structure, turn the seamless layer off and
display the seamless table in a browser. Refer to Turning the Seamless Layer On and Off.
Other sample seamless tables include DC_WATER and are in the mapinfo\data\USA\ seamless
directory.
Layer Control. Use any of the functions except Thematic Mapping from the Layer control
dialog box on your seamless layer. Add, Remove, or Reorder layers or set Display, Zoom
Layering or Label options for the seamless layer (all base tables) at one time. However,
you cannot make a seamless layer editable.
Select Tools. Select objects from the seamless layer. You can only select a group of
objects if they reside in the same base table. Press the Shift key while clicking the Select
Tool to do so. If you attempt to select several objects that reside in different base tables,
MapInfo Professional will only select objects in one base table. If you use the Marquee or
101
MI_UG.PDF
Radius select tools and the selected area spreads across two different base tables,
MapInfo Professional selects the objects in the center of the circle or polygon.
Browse Table. Display a Browser window of a particular seamless table. You will be
prompted to select a base table.
Notice the seamless layer is referred to by one name, DCWATER, in the Layer Control dialog box.
You can add, remove or reorder seamless layers as if they were a conventional MapInfo
Professional layer. You can also set Label and Display options for all the tables in the seamless
layer as if they were one table. Notice the editable option for the seamless layer is grayed.
Choose your seamless layer and experiment with order, display and labeling options.
To retrieve information from a seamless layer:
1. From the Main Toolbar, click the INFO tool.
2. Click the object for which you want information.
102
MI_UG.PDF
The Info Tool Window displays. It contains the information about the object you selected
including the name of the base table in which it is stored.
To browse the seamless layer:
1. On the WINDOW menu, click NEW BROWSER WINDOW. The Browse Table dialog box
displays.
2. Select a layer (table) from the list and click OK. The Select Base Table dialog box
displays.
3. Type the name of the base table you want to browse. We typed XX to indicate an unknown
table. A Browser window with the base table you selected displays. If a base table
matching your description is not found, a list of possibilities displays.
Keep in mind, base tables are treated like any other MapInfo Professional tables. Once a
base table from a seamless table is browsed, it will be opened as any other regular
MapInfo Professional table.
4. To select a base table from the list, highlight it and click OK.
103
MI_UG.PDF
You can set up to four paths. Use the UP and DOWN keys to change the search order and
use the ADD and REMOVE buttons to add or remove paths from the list.
4. Click OK to close the Preferences dialog box.
Saving a Workspace
If you work with the same tables repeatedly, you know that opening each one individually every
time you use it can be tedious. With MapInfo Professionals workspace feature, you can automate
this process so you can get back to the business of creating maps and analyzing data sooner.
When you work with MapInfo Professional you generally use many different tables and windows. A
Map window, for instance, is likely to be built of several layers. MapInfo Professional uses
workspaces to save your work setup from session to session. Workspaces prevent you from
having to reassemble all the pieces of your earlier setup from scratch. So, you dont have to
reopen tables, re-create maps or layouts, resize windows, or do anything else just to duplicate
what was on your desktop the last time you were using MapInfo Professional.
To save your current work setup:
1. On the FILE menu, click SAVE WORKSPACE. MapInfo Professional displays the Save
Workspace dialog box in which you name the workspace and set the directory to which it
should be saved.
2. Once you have entered the file name and selected the directory to which you want to save
this workspace, click SAVE.
104
MI_UG.PDF
When you start your next session, you can open this workspace right from the Quick Start
dialog box and continue where you left off.
You can change the directory path that MapInfo Professional uses for opening or saving
workspaces in Directories preferences.
To change the directory path for opening/saving workspaces:
1. On the OPTIONS menu, click PREFERENCES and select the DIRECTORIES button.
2. In the Directory Preferences dialog box, click the WORKSPACES path in the Initial
Directories for File Dialogs group, and do one of the following:
Click MODIFY
Double-click the path
Saving a workspace will not save edits you have made to tables in the
workspace.
If you close a window or table and you have thematic maps, graphs, label settings or label edits, or
cosmetic objects pending, MapInfo Professional will prompt you to save the session to a
workspace.
Closing a Table
Closing a table removes it from active use in your current session. Choose the CLOSE command
from the FILE menu to close tables. When you close a table, you automatically close all views of
that table. If you close a table that is displayed in a Map window with other tables, MapInfo
Professional removes that table from the window, but the Map window remains open.
In addition, any subset tables of the original table (known as query tables) also close. You can use
the Close command for any table, whether or not it is displayed in a window.
Opening and closing tables is different from opening and closing windows in which you view your
tables. You can open a table without opening any views of the data. Similarly, closing a window
does not close the table (or tables) you are viewing in the window. They are still open and available
for use. To close a window, click the Control-menu box in the upper-left corner of any window and
select CLOSE.
If you have made changes to a table but have not yet saved those changes, MapInfo Professional
will ask you if you want to save them before closing the table. To save your changes, choose SAVE
TABLE from the FILE menu.
105
MI_UG.PDF
You can also save a copy of the table under a new name, using SAVE COPY AS. This, in essence,
creates a new table. This is helpful in several instances:
When you want to retain any changes while preserving the original table.
When you want to save a table with a temporary column (from Update Column).
When you want to create a new table before you make editing changes to the original
table.
When saving spreadsheet files that you wish to modify in MapInfo Professional.
MapInfo Professional does not maintain some objects when saving a copy of a version 3.0
table in version 2.x format. These objects include multiple polyline objects and polygons/
polylines containing more than 8,000 nodes. In addition, region objects containing donut
objects, while maintained, are handled differently in MapInfo 2.x.
106
MI_UG.PDF
To export a file:
1. On the FILE menu, click SAVE WINDOW AS. The Save Window to File displays.
2. Type a name for this file and select the file format you want to export to in the Save as type
drop-down list. Click SAVE. The Save Window As dialog box displays.
3. Specify the image size settings. You can keep the image the same size as the window or
choose a custom size. If you choose CUSTOM, also make any desired changes to the width
and height of the image. You can make these changes in inches or in pixels.
If you are exporting a simple map or layout that does not contain raster or grid images, or
any transparent fill patterns, you may be able to bypass the advanced settings.
Note:
If you are saving the window to a raster format, select a resolution for the image.
Metafile formats do not use the resolution option (WMF, EMF files).
4. Click the ADVANCED button to display the Advanced Exporting Options dialog box. See
Understanding the Advanced Exporting Options on page 108 for details about these
options.
107
MI_UG.PDF
If you would like to include a border for your exported file, though, be sure to select the
Export Border check box.
5. Complete the dialog box according to information in the following section, and click OK.
The settings are the same as in the Advanced Printing dialog box. See Advanced Printing
Options in Chapter 4 on page 171 for a complete description.
Export Border
Select this check box to include a black border on images you are exporting. Clear this check box
to export the image without a border. This check box is selected by default.
You can select dither method options in the display, printing, and exporting dialog boxes.
Overriding the default settings also works the same way. As with the advanced printing options,
the options that are selected when you initially display the Advanced Exporting Options dialog box
are the default settings, which are set in the Output preferences. The Advanced Exporting Options
dialog box enables you to override the default export settings for individual file export operations.
To actually change the default export settings, you must go to the Output preferences (on the
OPTIONS menu, point to PREFERENCES and click OUTPUT) and change the settings there. See
Setting your Output Setting Preferences in Chapter 2 on page 59 for more information.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
108
MI_UG.PDF
109
MI_UG.PDF
Grid Tools Use these tools to create a MapInfo Professional native grid file from a table of
points, convert grids from any format that MapInfo Professional can read into MapInfo Professional
grid format (.MIG), and display x, y, and z coordinates, and row and column, of the grid you
selected.
HTML Image Map Use this tool to create an HTML image map from a MapInfo Professional Map
window for use in a Web page.
Labeler Use this tool to transfer layers labels into permanent text objects, label current
selection, and make individual labels created with the Label tool into permanent text objects.
Legend Manager Use this tool to take control of how MapInfo Professional displays Legend
windows. Includes the ability to have multiple Legend windows open, and associate each legend
with a specific Map window.
Mapping Wizard Tool Use this tool to open data, maps, perform analysis, and generate output
using a wizard. This tool is set to load automatically when you start MapInfo Professional.
MapX Geoset Tool Use this tool to read a MapX Geoset into a MapInfo Professional
Professional Map window, and write a MapX Geoset from the contents of the MapInfo Professional
Map window.
MDBLauncher Use this tool to launch the MapInfo Professional Metadata Browser.
Named Views Use this tool to save a Map windows current zoom and center as a named view.
Return to that view by selecting the view name from a dialog box.
North Arrow Use this tool to add a North Arrow to a Map or Layout window in various styles,
and, optionally, add a Magnetic Declination Arrow. Use the North Arrow tool to designate in which
corner to position the North Arrow, or use the North Arrow button on the Tools Toolbar to draw a
rectangle and place the North Arrow at the specified location.
Overview Use this tool to open a new Map window to provide an overview of another Map
window.
Register Vector This tool allows you to put control points into a vector image and reference
points into a Map window and then performs an affine transformation to line them up.
Rotate Labels Use this tool to rotate all the labels in a map layer at once.
Rotate Map Window Use this tool to rotate the contents of the current Map window a specific
number of degrees. It calculates and sets an Affine transformation for the Map window.
Rotate Symbols Use this tool to rotate all the symbols in a map layer at once.
ScaleBar Use this tool to create a custom distance scalebar to annotate a Map window. This tool
can also be used in Layout windows.
Seamless Table Manager Use this tool to create and manage seamless map sheets.
Search and Replace Use this tool to search a character column for a specific string and replace
it with another string.
Send to MapX Mobile Use this tool to write a custom MapX geoset and associated .tab files to
create a user-defined subset of a map windows background data for display on a mobile device.
110
MI_UG.PDF
Set the Minimum Bounding Rectangle Tool Use this tool to set the Minimum Bounding
Rectangle for ODBC live access based tables.
Shields Use this tool to draw decorative frames around text objects.
Spatialize SQLServer Table Use this tool to accommodate spatial data in an existing SQL table.
Symbol Maker Use this tool to create, edit, and delete MapInfo Professional symbols. These
symbols become part of the standard MapInfo Professional symbol set.
Table Manager Use this tool to get information about all currently open tables, including table
metadata.
TOC Tool Use this tool to build a seamless table of all the files listed in a TOC file and create one
or more seamless tables, grouped by zone and resolution.
Universal Translator Use this tool to import and export MapInfo Professional data to and from
other popular mapping files formats. This tool is set to load automatically when you start MapInfo
Professional.
Window Manager Use this tool to assign the title of Map, Browser, Graph, Layout, and
Redistricter window and the default table view. The Set Default View option allows you to select a
layer from an open map window and make the default zoom and center settings for the layer's
base table match those of the map window. The default center and zoom settings are written to the
table's .MAP file.
Workspace Packager Use this tool to create a copy of a workspace in a new location or folder,
and copies all the data referenced by the workspace to the same location. MapInfo Professional
updates the internal references in the workspace and .tab files to point only to the "packaged"
copies of the data, so you can open the new workspace no matter where the folder is moved or
copied, even if the folder is moved or copied to a different computer.
2. To load a tool in this list, select the check box beside it in the Loaded column.
111
MI_UG.PDF
Select the check box in the Autoload column to load this tool each time you open the
application.
To unload a tool in this list, clear the check box beside it.
3. Click OK to save your changes.
Click here
to locate
the tool
directory.
112
MI_UG.PDF
4. When you return to the Tool Manager dialog box, make sure you have selected the
appropriate LOADED and AUTOLOAD options for this tool and click OK to save your
changes.
Launch MetaData
Browser
Use the MapInfo MetaData Browser to search data clearinghouse Web sites for data products that meet your geographic
analysis needs.
North Arrow
Launches the North Arrow tool that has been loaded from the
Tool Manager. Use this tool to designate where the North
Arrow should
display. Click this button to draw a rectangle in which the North
Arrow will be placed.
113
MI_UG.PDF
Autoscrolling
When you use a tool in the Map or Layout window, the window scrolls if you drag the tool outside
of the window boundaries. The window will continue to scroll until you release the mouse or move
the cursor back into the window.
Press ESC to stop scrolling; the tool remains active.
To cancel the tool, press ESC after the scrolling has stopped. Autoscrolling works with any tool that
can be dragged; it does not work with single-click tools, such as the Grabber or Info tools.
114
MI_UG.PDF
115
MI_UG.PDF
As we saw in Chapter 3: Data - Where MapInfo Professional Begins, you can convert your existing data
to a format that MapInfo Professional can use to display it on a map. Now youre getting somewhere! But
how does MapInfo Professional know where to put the information on a map? That is the subject of this
section of the User Guide.
For more about the geocoding process, see Geocoding - Assigning Coordinates to
Records on page 130.
For more about the create points process, see Create Points - Putting Latitude/
Longitude Coordinates on a Map on page 158.
Note:
If your data is in non-MapInfo format before you geocode or create points, you must
convert it before using either of these processes.
d-Base (.DBF)
ASCII (.TXT)
Note:
The process for creating a .tab file from ASCII data is called registering instead of
creating because we are actually making a series of pointers to the ASCII data. The
process is different but your resulting files behave the same way.
117
MI_UG.PDF
If there are column headings above each column in this worksheet, select the USE
ROW ABOVE SELECTED RANGE FOR COLUMN TITLES check box. Then, select
OTHER from the drop-down box and specify the cell range of the data you want to
include in the MapInfo Professional table.
4. Click OK to convert your selected data to a MapInfo table (.tab) format. Now that you have
converted your data, you can plot your data; see the next section to continue.
2. Decide how you want to display the new table and select from the following check boxes.
You can choose more than one and MapInfo Professional will add the new windows
accordingly.
118
MI_UG.PDF
OPEN NEW BROWSER Select this check box to display the new table as a Browser
window.
OPEN NEW MAPPER Select this check box to display the new table as a Map
window.
ADD TO CURRENT MAPPER Select this check box to add the new table to the current
Map window.
3. Decide the table structure you want for your new Access table. Select one of the following:
4. After you complete these selections, click CREATE. The New Table Structure dialog box
displays.
Note:
If you selected the USING TABLE button in the previous step, the fields in the table
you copied display in the New Table Structure list.
If you are adding an entirely new table, click the ADD FIELD button and add the fields
you want this table to contain. Continue to add fields until your table is complete.
If you are copying an existing table, click the ADD FIELD button to add fields, or
highlight a field you want to remove and click the REMOVE FIELD as appropriate.
6. When the table structure is complete, click CREATE to create the table. The Create New
Table dialog box displays.
7. In the SAVE IN field, specify the location where you want to create the MapInfo
Professional table definition of your Access file. The MapInfo Professional table definition
is the .tab file. MapInfo Professional uses this to keep information about an Access file
registered in MapInfo Professional.
8. In the SAVE AS TYPE field choose MICROSOFT ACCESS DATABASE and click SAVE to display
the Save Access Table dialog box.
The default database displays in the dialog box. The default is determined by the name of
the .tab file you entered. The default has the same name as the .tab file. A database for
this file may or may not exist.
119
MI_UG.PDF
If the database you specified does not exist, you can use the Save Access Table dialog
box to specify the version of Microsoft Access you want to use for the database. Choose
either MICROSOFT ACCESS 2000 or MICROSOFT ACCESS 95/97 from the Version dropdown list.
If a database does exist, the Save Access Table dialog box indicates the version of the
database. It also lists the tables in the database.
9. To create your table in the default database, use the default file name or enter a new one
in the ENTER THE NAME OF THE NEW ACCESS TABLE field.
The default file name is the same name specified in the Create New Table dialog box.
Click OK to create the new table to the default database.
To save this table into another database, proceed to the next step.
10. Click the DATABASE button. The Select Access Database dialog box displays.
11. In the SAVE IN drop-down list, specify the location of the Access database. This is where
you will create the table.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
120
MI_UG.PDF
12. Click the database you want to create the table in. The name displays in the File Name
box. To specify a new database, enter the name in the File name box.
13. Choose SAVE. The Save Access Table dialog box displays again.
If you chose an existing database, the name and version display in the dialog box. Any
tables already in the database are listed in the Existing Tables box.
If you specified a new database, select the database version from the Version drop-down
list. Choose either ACCESS 2000 or ACCESS 95/97.
14. The file name you chose in the Create New table dialog box is displayed in the Enter the
name of the new Access table box. You can use this name or specify a different name.
Click OK. MapInfo Professional creates the table as a Microsoft Access table in the
database you specified.
Saving Access and MapInfo Professional Tables
You can save a MapInfo Professional table as an Access table, save an Access table as a MapInfo
Professional table, and save an Access table as an Access table using the Save Copy As menu
command.
Saving a MapInfo Professional Table as an Access Table
To save a MapInfo Professional table as an Access table, do the following:
1. On the FILE menu, click SAVE COPY AS. The Save Copy of Table As dialog box displays.
2. In the SAVE IN field, specify the location where you want to save the MapInfo Professional
table definition of your Access file. The MapInfo Professional table definition is the .tab file.
It is used by MapInfo Professional to keep information about an Access file registered in
MapInfo Professional.
3. In the SAVE AS TYPE field choose Microsoft Access Database.
4. Choose SAVE. The Save Access Table dialog box displays. The default database displays
in the dialog box. The default is determined by the .tab file you selected. It has the same
name as the .tab file. A database for this file may or may not exist.
If the database you specified does not exist, the Save Access Table dialog box enables
you to specify the version of Microsoft Access you want to use for the database. Choose
either Microsoft Access 2000 or Microsoft Access 95/97 from the Version drop-down list.
121
MI_UG.PDF
If a database does exist, the Save Access Table dialog box indicates the version of the
database. It also lists the tables in the database.
5. To save your table to the default database, use the default file name or enter a new one in
the ENTER THE NAME OF THE NEW ACCESS TABLE box. The default file name is the same
name specified in the Save Copy As dialog box.
Click OK to save the new table in the default database.
To save your table to a database other than the default, go to step 6.
6. Click the DATABASE button. The Select Access Database dialog box displays.
122
MI_UG.PDF
7. In the Save in drop-down list, specify the location of the Access database. This is where
you will save the table.
8. Click the database you want to save the table in. The name displays in the File Name box.
To specify a new database, enter the name in the File name box.
9. Choose SAVE. The Save Access Table dialog box displays again.
If you chose an existing database, the name and version display in the dialog box. Any
tables already in the database are listed in the Existing Tables box.
If you specified a new database, select the database version from the Version drop-down
list. Choose either Access 2000 or Access 95/97.
10. If you want to use a different file name, enter the name in the Enter the name of the new
Access table box, and click OK. MapInfo Professional saves the table as a Microsoft
Access table in the database you specified.
Saving an Access Table as Another Access Table
This option is used to save an Access table to a different database. The process is similar to
saving a native MapInfo Professional table. Use the Save Copy of Table As dialog box to specify
the database path and name, then use the Save Access Table dialog box to specify the name of
the new table.
Limitations of Working Directly with Access Tables
The following limitations apply when working directly with Access tables:
There is no decimal data type support. If you modify the table structure of a Microsoft
Access table within MapInfo Professional and change a FLOAT type to a DECIMAL, the
type changes to FLOAT.
The MapBasic Pack Table statement will save a copy of the original Microsoft Access
table without columns that MapInfo Professional does not support. If a MS Access table
has a MEMO, OLE, or LONG BINARY type column, it will be lost during a pack.
Compact your database. Each time a table is renamed disk space is used up. The space
used up is the space the original table was taking up. MapInfo Professional renames the
table when the structure is altered and when the rename statement is issued. An Access
database may be compacted using the ODBC Administrator or Microsoft Access. To
compact a MS Access database using the ODBC Administrator, see the ODBC
Administrators online help for compact database. To compact a MS Access database
MapInfo Professional 7.5
123
MI_UG.PDF
using Microsoft Access, see Accesss online help for Compact a database to de-fragment
and free disk space.
MapInfo Professional can only use and create Access tables compatible with Microsoft
Access 95, 97, 2000, and XP.
If there are column headings above each column in this worksheet, select the USE
ROW ABOVE SELECTED RANGE FOR COLUMN TITLES check box. Then, select
OTHER from the drop-down box and specify the cell range of the data you want to
include in the MapInfo Professional table.
Registering your data using MapInfo does not change the original data in any way.
If your delimited ASCII file has an extension other than .TXT (such as .ASC, .CSV, or .DAT, etc.),
rename a copy of the file to <FILENAME>.TXT before you begin.
To register your ASCII (.TXT) data:
1. Open the data file using Wordpad/Notepad (on the START menu, point to PROGRAMS and
click ACCESSORIES) or some other text editor. Check to see whether you have column
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
124
MI_UG.PDF
headings and what delimiter (character that separates each piece of data from the next) is
used in the data file.
2. In MapInfo Professional, open FILE menu and click OPEN to display the Open dialog box.
3. In the Files of Type list, select the format (.TXT), navigate to your data, and click OPEN.
4. Choose the type of delimiter and the character set you want for your MapInfo data table.
Select the USE FIRST LINE FOR COLUMN TITLES check box if you have column headings.
5. Click OK to register your data in MapInfo Professional.
6. On the FILE menu, click SAVE COPY AS to make an editable copy of your table. Then, on
the FILE menu, click CLOSE TABLE and close the original table. Finally open the editable
copy.
3. Click the SELECT GML LAYER TO IMPORT drop-down list to display the layer options.
Note:
When you select the DepartedFeature layer, MapInfo Professional imports only
the changed features of the selected layer.
125
MI_UG.PDF
Select the ALL LAYERS option to import all of the layers and convert them to individual
.tab files.
MapInfo Professional 7.0 Users: You may only see the Topographic Area feature type in
this list.
MapInfo Professional 7.5 Users: You may notice that both the TopographicArea feature
type and the LandformArea feature type display in this list. You can choose to save each
of these feature types as a separate table as of this version.
For more about these layers and feature types and how MapInfo Professional handles the
Topographic Layer, see Understanding MapInfo Professionals Use of the
Topography Layer on page 126.
5. Choose the style you would like to use to display the GML file. Choose one of the
following:
Click USE GML STYLE to display the selected file using the OSGB GML styles
Click USE MAPINFO CURRENT STYLE to display the selected file using your currently
established styles. MapInfo Professional uses the current styles established in the
Region Styles dialog box.
6. After you have made these selections, click OK. One of these dialog boxes displays:
If you selected one layer in step 4, the Import to Table dialog box displays. Choose
the directory and file name you want for this file and click SAVE. MapInfo Professional
saves the file to this directory. Go to step 7 to continue.
If you selected ALL LAYERS in step 4, the Choose Directory dialog box displays.
Select the directory you want MapInfo Professional to place the new .tab files in and
click OK. A status box displays showing the progress as each layer is converted and
saved into a separate .tab file.
7. To open the GML files that are now .tab files, choose OPEN from the FILE menu and
navigate to the directory you specified.
126
MI_UG.PDF
You must have a working Internet connection whenever you retrieve or use WMS data.
Note:
The WMS Servers that display in the WMS Server list are based on a list we have
compiled for you. MapInfo has no control over the availability of these servers at any given
time. The availability of WMS data depends upon the status of the server and the status of
the maps on those servers. You can customize this list to suit your needs.
2. To work with the layers from a particular server, select a WMS Server from the WMS
Servers drop-down list.
127
MI_UG.PDF
To see the details of a particular WMS Server, including the Server URL, the Server
Name, version, and usually a server supplied description, click DETAILS.
If you do not see the server you are looking for in the WMS Server drop-down list, click the
SERVERS button to display the WMS Servers List.
Default
Indicator
To add new WMS Servers to the WMS Servers List, click the ADD button to display the
WMS Server Information dialog box. Here you can add the new web server address and
description in the fields provided. The WMS Server Information dialog box also displays
when you click the EDIT button in the WMS Servers List to allow you to change these
entries.
Type the URL you want to add in the Server URL field. Click TEST URL to ensure that
MapInfo Professional can find the server. Click GET DESCRIPTION to get the server
provided description or type in a description. Click OK to return to the WMS Servers list.
In the WMS Servers list, click the SET DEFAULT button to select a default server in the list.
The default server will be selected the first time you open the WMS Table dialog box.
When you set a default WMS server, a check mark displays beside it. If you do not select
a default server, MapInfo Professional displays the first server in the list when you begin
your WMS Server session.
Note:
If you work with a WMS Server that is not the default, MapInfo Professional
remembers that new server for the rest of the session and returns to it whenever
you return to the Open WMS Table dialog boxes.
3. When you have completed your work in the WMS Servers List, click OK to return to the
Open WMS Table dialog box.
4. Review the list of available layers for the server you selected and do one of the following:
Double-click one or more layer(s) you want to retrieve in the WMS Layers list to move
them to the right pane
Click each layer you want to retrieve from the server and click ADD to move them to
the right pane
MapInfo Professional 7.5
128
MI_UG.PDF
Note:
5. Decide how you want to use these WMS server layers and do one of the following:
To create a single .tab file with several WMS layers in it, select all of the layers for that
.tab file so they display in the right pane. Then organize them in the order you want
them to display using the MOVE UP and MOVE DOWN buttons.
To create individual .tab files for the WMS server layers you want, select one layer at a
time, select the appropriate Style, Format, and Projection options from their dropdown lists and save the .tab file. Repeat this process for each layer you want to
retrieve.
Using either method, you move the layer(s) you selected to the right pane. The Style,
Projection, and Image Format information associated this layer or layers change to reflect
either the attributes of the single layer or the attributes that all the layers have in common.
We describe the process for changing and selecting these attributes below.
Note:
To remove a layer from the list in the right pane, select the layer you want to
remove and click the REMOVE button.
6. If there are styles associated with the layer(s) you selected, they display in the STYLE
drop-down list. Styles indicate the visual display options available with this layer and are
supplied by the web server. Initially, we display the selected layer in the servers default
style. The style that displays pertains to the currently selected layer.
To change the style of a layer, click it in the left or right pane and select the style from the
STYLE drop-down list. The styles you select for a layer do not pertain to any other layer in
the list.
Note:
You can also change these image display style attributes later (on the MAP menu,
point to LAYER CONTROL and click DISPLAY override options. In this dialog box you
can change the images translucency and transparency as well as other raster
display properties available in MapInfo Professional.
7. Choose a format for the layer from the IMAGE FORMAT drop-down list. The options that
display in this list may differ depending upon the formats the server supports and the
formats we support. We support: PNG, JPEG (JPG), TIFF (GeoTIFF and TIFF) and GIF
formats, in that order of priority.
8. To change the background options, specify them in the IMAGE BACKGROUND box. To make
the background of your layer transparent, click the TRANSPARENT check box and select the
color of the background. Click the COLOR button to display the list of colors.
Note:
The more color depth the image has, the more difficulty you have isolating the
background for transparency purposes. If you experience problems with
transparency with one image format, try another, if it is available.
9. The COORDINATE REFERENCE SYSTEM PROJECTIONS drop-down list displays all of the
projections that the selected layers have in common. This list is disabled when the
selected layers do not have any projections in common. If the PROJECTIONS drop-down list
is disabled, you cannot make a map request.
Note:
To enable this list, try removing layers one at a time to see if the problem is
caused by layers not having projections in common.
Click the
button at the end of the TABLE FILENAME field to display the Please
specify a TAB filename dialog box. Select the path and type the file name in the
FILENAME field and click OK.
Type the path into the TABLE FILENAME field
MapInfo Professional 7.5
129
MI_UG.PDF
Note:
There are three conditions that might prevent you from saving the .tab file at this point. To
save the .tab file you must:
a. Select at least one valid layer from the WMS Server list
b. Layer(s) must contain a supported projection
c. Type a valid .tab file name
11. Select the view for this map in the PREFERRED VIEW drop-down list to determine where the
WMS table should display after you open it. Options include: Automatic, Current Mapper,
New Mapper, and No View.
12. Click OK to generate the WMS map request.
Once you have saved a WMS table name, you can change its WMS layer settings using the WMS
Table Properties dialog box. To access this dialog box, go to the TABLE menu and click WMS
TABLE PROPERTIES. When the WMS Table Properties dialog box displays, select the layer you
want to edit and change the settings for that layer. You can also add, remove, and reorder the
WMS layers, change the projection, image formats, and background options of the layers.
Remember, you can edit the display attributes for the WMS table using Display Style override
commands in Layer Control.
130
MI_UG.PDF
For example, you want to assign X and Y coordinates to a customer record whose address is 127
Winston Ave. MapInfo Professional reads that address and looks for a matching address in the
search table, such as a StreetPro table. (This search table already has X and Y coordinates
associated with its records.)
When MapInfo Professional matches 127 Winston Ave in your table to 127 Winston Ave in the
search table, it assigns the corresponding X and Y coordinates to your record. The geocoded point
becomes part of your database. You can then view these points by displaying your table in a Map
window.
131
MI_UG.PDF
If, however, you are going to use your data to thematically shade postal code boundaries, town
boundaries, county boundaries, state boundaries, or country boundaries, you may not need a high
degree of accuracy.
In this case, geocoding against boundary files such as USZIPBDY.tab, which we provide, would be
sufficient for your needs. Since this file does not include point postal codes (postal codes assigned
to a single building or company), the hit rate may not be as good as when you geocode by street.
The name of your table for which you want to assign X and Y coordinates.
The column in your table that contains the geographic information that will be used for
matching.
The name of the search table containing the geographic information that will be used for
matching.
The search table column containing the geographic information for matching:
The dialog box also offers you the option of geocoding your data in two modes: automatically or
interactively. When you geocode a table automatically, MapInfo Professional geocodes exact
matches only and ignores all other records. It is the faster method, since MapInfo Professional
requires no user interaction once the geocoding process begins. When you geocode a table
interactively, MapInfo Professional pauses when it fails to match a record and lets you select from
a list of close matches. For more about the automatic and interactive geocoding modes, see
Modes of Geocoding on page 133.
Note:
We recommend that you geocode your table automatically first and then go back and
geocode interactively to match the remaining records.
MapInfo has to match an address in the target table with an address in the source table.
MapInfo Professional 7.5
132
MI_UG.PDF
and
Get geographic coordinates from the source table and use them to create a point object in
the target table.
Most of the problems in geocoding occur in the first step, matching addresses in the source and
target tables.
Modes of Geocoding
MapInfo has two geocoding modes: automatic and interactive. The process MapInfo uses to
match target addresses with source addresses is the same in both modes.
Automatic mode matches addresses based on the choices in the Geocode dialog box.
Interactive mode stops at each address that does not meet the geocode parameters and permits
you to assist in the matching process.
In most cases, the best geocoding strategy is to:
Geocode in interactive mode to deal with the records MapInfo was unable to handle
automatically.
Geocoding Automatically
For this example, we use the US_ZIPS.tab as a search file. This is a file that is included with
MapInfo Professional which contains the ZIP Code points for every postal code in the U.S. If your
data includes zip codes, this might be an effective way for you to geocode your data. Automatic
geocoding is the default mode.
Note:
Make sure you have created a .tab file for your data before beginning the geocoding
process. For more about this process, see Creating a .tab File from your Data on
page 117.
You can use a wide variety of tables to geocode against. Use a street map when
you are geocoding to addresses.
2. On the TABLE menu, click GEOCODE and complete the dialog box.
133
MI_UG.PDF
Geocoding Interactively
When you geocode interactively, you are not changing the data. You are merely redirecting
MapInfo Professional to look for different information.
For example, your data record reads Cherryville St. When you geocode interactively, you find that
the data record should read Cherry Vale St. You select Cherry Vale St from the list of alternatives.
Although MapInfo Professional assigns X and Y coordinates from Cherry Vale St to that record,
you have not altered the record in any way. To change the spelling in your database, you must edit
the record in a Browser window.
Geocoding Manually
Automatic and interactive geocoding work well for databases with clean data. Sometimes,
however, you know where a point should be on the map, but the location data does not allow for a
match. Manual geocoding is the process of placing your data records on the map by clicking its
location on the map. This method works best when you have a small table which contains data
that you are very familiar with.
To geocode a table manually:
1. Open the table with the reference map in it.
2. Open your table and add it to the current Map window.
3. On the MAP menu, click LAYER CONTROL.
4. Select your table and make that layer editable. Click OK.
5. On the WINDOW MENU, click NEW BROWSER WINDOW. Select the table to geocode.
6. On the WINDOW MENU, click TILE WINDOWS to display your Map and Browser windows side
by side.
134
MI_UG.PDF
7. Scroll through the Browser to find the record that you would like to geocode. Click in the
box to the left of the row to select the record.
8. Click in the title bar of the Map window. The Symbol tool on the Drawing Toolbar is now
available.
9. Select the SYMBOL tool.
10. Click the map where you want the point placed for the selected record.
11. On the FILE menu, click SAVE. The selected record is now geocoded. Repeat steps710
for each record you would like to manually geocode.
Methods of Geocoding
In addition to geocoding automatically and manually, you have choices in how precise you want
the geocoded record to be. Lets look at the variety of ways you can geocode your table.
Geocoding by Address
Street addresses typically consist of two or three components:
Street number
Street name
Apartment, Suite, Floor, Room number or some other piece of information. Many
addresses do not have this component
MapInfo has one procedure for dealing with the street number and another procedure for dealing
with the street name. MapInfo deals with the third component, if present, as though it were a part
of the street name.
When you geocode your table with street addresses, MapInfo Professional matches the addresses
in your table to the street names and address ranges in a street table, such as StreetPro
(MapInfos premier streets data product) and assigns X and Y coordinates to your records. When
you display your records, MapInfo Professional will spot the record at the location of the records
address. MapInfo Professional places the record on the proper side of the street, offsets it from the
side of the street to the specified distance, and insets it from the end of the street the specified
percentage of the line. The Options dialog box controls these parameters. For more about setting
the street offset in the Options dialog box, see Street Offset on page 138.
135
MI_UG.PDF
Geocoding by Boundary
In computer mapping, the term boundary is used to designate enclosed regions or areas such as
countries, cities, and postal codes. When you geocode your table with boundaries, MapInfo
Professional matches the boundary name in your table with the boundary name in the search
table. MapInfo Professional assigns the boundary centroid X and Y coordinates to your data
records. The centroid of a boundary is its approximate center point.
For example, you have a table of wholesale outlet stores. You want to assign X and Y coordinates
to each record according to county. MapInfo Professional reads the county name from your table,
matches it with the county name in the search table, and assigns the county centroid coordinates
to each of your records. The outlet locations will display at the county centroid in a Map window.
Target Address
Source
Address
Comment
Correctable
with
Abbreviation
File?
LaSal St
LaSalle St
No
La Salle St
LaSalle St
No
LaSalle Ave
LaSalle St
No
136
MI_UG.PDF
Source
Address
Target Address
Comment
Correctable
with
Abbreviation
File?
LaSalle Street
LaSalle St
Yes
LaSalle Ave
LaSalle Av
Yes
LaSalle St.
LaSalle St
Yes
LaSalle
LaSalle St
No
LaSalle St
LaSalle
No
LaSalle St North
LaSalle St
No
LaSalle St North
LaSalle St N
Yes
North LaSalle St
N LaSalle St
Yes
North LaSalle St
LaSalle St
No
LaSalle St Apt 3
LaSalle St
Yes
Tenth St
10th St
Yes
10th Av
Tenth Av
Yes
St Johns Lane
Yes
MapInfos matching process is not case-sensitive; it does not care whether a letter is upper case or
lower case. This means that MapInfo treats the following as the same: Main, MAIN, main, maIN.
MapInfo Professional has a file called the Abbreviations File (MAPINFOW.ABB), which you can
use to record acceptable alternate spellings for abbreviations. For example Av for Ave. or BL for
Blvd. etc. Using this file increases your hit rate because there are more acceptable spellings for
the same abbreviations. For more about the Abbreviations File, see Solving Problems with
Abbreviations and Substitutions on page 148.
137
MI_UG.PDF
Street Offset
The street offset is the distance the geocoded point is set from the side of the street. To set this
distance:
1. On the TABLE menu, click GEOCODE. The Geocode dialog box displays.
2. Fill in the table and column information for the dialog box.
3. Click the OPTIONS button. The Geocode Options dialog box displays.
4. In the Offset Address Location group, specify a distance and distance unit.
If you choose 12 meters, the point will be offset 12 meters back from the side of the street.
You can specify any distance from 032,767 and a wide variety of units including meters,
miles, yards, U.S. Survey feet.
5. You can also specify a street inset, or click OK to return to the Geocode dialog box.
Street Inset
The street inset is the distance a geocoded point is set from the end of the street. You can specify
a distance, or you can set the inset to be a percentage of the length of the street. To avoid skewing
the position of inset points, MapInfo Professional performs a proportional calculation that insets
the points located at either end of the street the specified percentage or distance, but that
decreases the inset as point locations approach the center. Points located at the center of the
street remain in their original position.
To set the street inset:
1. With the Geocode Options dialog box still open, choose how you want to specify the street
inset in the Inset Address Location group: as a percentage of the length of the street, or as
a distance.
2. Click the radio button next to the option you want. Specify one of the following:
138
MI_UG.PDF
Presents you with the closest matches (when it is geocoding in interactive mode). You
then pick the best match. MapInfo then goes to the next row.
At this point MapInfo will have done the best it can at identifying street names. The next step is to
deal with address numbers for those addresses where it has matched a name.
FromLeft
ToLeft
FromRight
ToRight
LaSalle St
269
331
268
330
LaSalle St
333
375
332
374
LaSalle St
377
401
376
400
139
MI_UG.PDF
To match 343 LaSalle St MapInfo would scan the address ranges until it finds the one where
343 goes. Since 343 is between 333 and 375, MapInfo will locate this address on that street
segment (the middle one in the table).
Once MapInfo has matched an address number to a street segment it moves to the next row.
When it fails to match a target street number to an address range on the appropriate street it:
Presents you with the closest matches if it is geocoding in interactive mode. You then pick
the best match. MapInfo will then go to the next row.
At this point MapInfo will have done the best it can at locating address numbers. Note that one of
the options (on the Geocode Options dialog box) is to have MapInfo automatically pick the closest
address range in those cases where there is no exact matchUse The Closest Address Number.
For example, you might have 412 as an address number, but no range which includes that
number. However, there is a range which goes from 346 to 400. Since that is the range closest to
412, that is where MapInfo will geocode 412 if you have chosen this particular option.
The next step is to deal with addresses which have been located on more than one street.
Matching to Region
When MapInfo is geocoding it checks to see how many occurrences of the target address exist. If
there is more than one, MapInfo must decide which source address to use. If the users target
table has a column with region data, MapInfo can refine geocoding within a boundary.
For example, assume that you are geocoding a database of records in Cook county, Illinois. The
address in the database reads 200 Washington St. Within the county of Cook, there are eight
towns. Four of these towns have a Washington St. Three of the four have a 200 Washington St.
MapInfo must now place the target address in the appropriate town. MapInfo uses region
information to do this. MapInfo now matches a region designation for the target address against
the region designator for the source addresses.
When you originally set up your geocoding operation, you had an opportunity to specify a region
(boundary) to use in refining your geocoding operation. This dialog box displays when you choose
Refine Search with Table and using Boundary Name Column. If you specified a postal code table
you enter the postal code and MapInfo Professional returns possible matches.
140
MI_UG.PDF
You could use any one of several different region types, including county name, town name, and
postal code. Since almost all addresses contain postal codes, this is the most reliable way to refine
your search.
When you set MapInfo to use postal codes to refine its address matching, MapInfo will match the
postal code of the target address against the postal code of the various matching source
addresses. When it finds the correct match, it is finished with the geocoding process. MapInfo can
now get coordinate information from the source table and use it to place a point object into the
target table.
However, once MapInfo has completed this process, many addresses may be unmatched. You
can match each one of them individually by geocoding in interactive mode. However, if you are
working with a large database, you want to do as little of this as possible. There are other ways of
improving MapInfos geocoding performance.
In the Geocode Options dialog box, you can specify that MapInfo automatically pick a different
boundary, providing there is only one, from the one you specify (Use A Match Found In A Different
Boundary). You might have had MapInfo geocode addresses to Northtown. One particular
address, 223 Locust Ct. is not in Northtown, but it is in Westville, and no place else. In this case,
MapInfo would geocode 223 Locust Ct. to Westville. However, if MapInfo had found a 223
Locust Ct. in Westville and another one in Center Valley, it would not geocode the address to
either town. It would leave 223 Locust Ct. ungeocoded.
After Geocoding
This section includes some tasks that will be useful in handling records after you have geocoded
your table.
141
MI_UG.PDF
Note:
Any columns from the CUSTOMER table that you would like to appear in the
CUSCOORD table should be listed in the Select Columns box; then add the
centroidX(obj) and centroidY(obj) functions to this list.
Resulting Table:
142
MI_UG.PDF
2. To add two new columns to your table, click ADD FIELD and name the columns. They
should be defined as decimal (13,6). For this example, the columns are called Xcoord and
Ycoord.
3. After adding the columns, click OK. When you return to your main MapInfo Professional
window, the file will not be displayed. To redisplay your table, on the WINDOW menu, click
NEW BROWSER WINDOW.
4. On the TABLE menu, click UPDATE COLUMN. Specify your table and your column to update.
In the next example, we are updating the Xcoord column. The Get Value from Table
portion of the dialog box will be the same table as specified in the Table to Update box. In
the Value portion of the dialog box, you can type in Centroidx(obj) or you can click the
ASSIST button to display the Expression dialog box. Click FUNCTIONS and choose
CENTROIDX from the list and click OK.
5. Fill in the Update Column dialog box and click OK.
143
MI_UG.PDF
the maps internal coordinates must reflect the same coordinate system. In MapBasic, the SET
MAP statement sets the coordinate system for the Map window, while the COORDSYS clause
sets the internal coordinates.
To extract coordinates from a projected map in the native coordinate system of the table:
1. Display a map of the geographic area that you are working in.
2. On the OPTIONS menu, click SHOW MAPBASIC WINDOW to open the MapBasic window.
3. Type: "SET COORDSYS TABLE <TABLENAME>". Tablename is the table that you are
extracting coordinates from.
4. Press ENTER. This sets the internal MapBasic coordinate system equal to the table given.
5. Now update the x, y values with the CentroidX and CentroidY functions.
Query
Read-Only
Seamless
Remote
Raster
It is recommended that you use float type columns for the coordinates. Other column types may
not be able to fit all the coordinate information in the column. If you select character columns, the
coordinate values will include six digits after the decimal place.
To take out the coordinate information after you have used Coordinate Extractor, revert the table.
144
MI_UG.PDF
145
MI_UG.PDF
Result Codes
When you are using the result code option (in Geocode Options dialog box) MapInfo will generate
a code for each record. These codes indicate the steps MapInfo Professional took to geocode the
record, whether or not the geocoding was successful, and whether or not the match was exact.
You can use return codes to diagnose MapInfos geocoding performance. It will help you spot
false positives resulting from using various geocoding options and to analyze why some records
have not been geocoded.
Ungeocoding a Table
Ungeocoding is the process of removing objects that have been attached to data records. There
are times when it will be necessary to ungeocode an entire table or selected records in a table. For
example, you have geocoded a database of customers using US_ZIPS.tab. Later, you want to
geocode the database again, using street addresses instead of postal code centroids since the
geocoding will now be more precise. MapInfo Professional allows you to delete all graphic objects
associated with this table. You can then geocode your database again, using more specific
coordinates. Ungeocoding only selected records from your table is useful when the location
information changes for a relatively small number of records, such as address changes in a
geocoded list of customers.
To ungeocode an entire table:
1. On the TABLE menu, point to MAINTENANCE and click TABLE STRUCTURE. The Modify Table
Structure dialog box displays.
2. Clear the TABLE IS MAPPABLE check box. Click OK.
CAUTION:
This action will remove all graphic objects from your table. This action cannot
be undone. If you are unsure of losing your points, save a copy of the table first.
3. A warning dialog box appears. If you are sure about removing all the objects, click OK.
All graphic objects have now been removed from your table.
Make sure that you dont ungeocode your source tables. Unless you have created a backup of that
table, you will no longer be able to display that table as a map or use it for geocoding.
146
MI_UG.PDF
147
MI_UG.PDF
Choosing the closest address does not change the address in your table. MapInfo Professional
only uses the coordinates from that address to spot your record at that location.
Incompatible Abbreviations
If you geocode automatically and find that you have an extremely low hit rate, your database of
street addresses may use abbreviations that MapInfo Professional does not recognize. For
example, all of your records might use Str as the abbreviation for Street. MapInfo Professional, on
the other hand, uses the abbreviation St for Street. Another example: Your database contains
addresses that spell out the street numbers (127 Fourteenth St) while MapInfo Professionals table
uses the numbers (127 14th St).
Instead of editing all your records, a potentially time-consuming task, you can change which
abbreviations are recognized. There is an abbreviation file (MAPINFOW.ABB) that you can modify
so that MapInfo Professional will recognize your abbreviations.
Suite
WK
Edit addresses in your target table so that it contains items MapInfo can handle.
or
Edit MapInfos abbreviation file so that it can deal with your addresses.
In many cases, the second alternative is easier. MapInfos abbreviation file consists of pairs of
items. The second item in each line is the abbreviation for the first. In working with street files
MapInfo searches through the address file to match an item in a target address with the first
element in one of the pairs in the abbreviation file. When it finds a match it replaces the matching
items with the proper abbreviation.
MapInfo supplies this abbreviation file:
!Version 3.0
FIRST
1ST
SECOND 2ND
THIRD
3RD
FOURTH 4TH
FIFTH
5TH
SIXTH
6TH
SEVENTH 7TH
EIGHTH 8TH
NINTH
9TH
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
148
MI_UG.PDF
TENTH 10TH
NORTH N
SOUTH S
EAST
E
WEST
W
ALLEY
AL
AVENUE
AV
AVE
AV
BOULEVARD BLVD
BRIDGE
BR
CIRCLE
CIR
COURT
CT
DRIVE
DR
EXTENSION EXT
HIGHWAY
HWY
INTERSTATE I
LANE
LN
MOUNT
MT
PARK
PK
PARKWAY
PKWY
PLACE
PL
PLAZA
PLZ
POINT
PT
RAILROAD RR
ROAD
RD
ROUTE
RT
SAINT
ST
SQUARE
SQ
STREET
ST
STR
ST
TERRACE
TER
!EOLNOSPACE
,
;
#
!EOLSPACE
FLOOR
SUITE
P.O. BOX
!NOSPACE
.
\
\!
\\
!SPACE
STATE HIGHWAYSTHWY
N STNORTH ST
S STSOUTH ST
E STEAST ST
W STWEST ST
N AVNORTH AV
S AVSOUTH AV
E AVEAST AV
W AVWEST AV
149
MI_UG.PDF
You can make additions to this file to take care of various problems. Most importantly, you can
make several different kinds of additions. MapInfo recognizes four classes of substitution items
and it interprets these classes differently. Each class is preceded by the keyword used to identify it
in the abbreviation file:
Substitution Class
Keyword
!SPACE
Simple truncation
!EOLNOSPACE
Space-delimited truncation
!EOLSPACE
Simple substitution
!NOSPACE
In order for MapInfo to know how to interpret a line, or set of lines, in the abbreviation file, you have
to precede the line with the keyword which indicates the appropriate interpretation strategy.
When all of the entries in the abbreviation file use the default interpretation, there is no need to
precede any of them with a keyword. When there is no keyword at the beginning of the
abbreviation file, MapInfo will treat the initial entries as requiring the default interpretation. Once
you add other types of substitution pairs, however, you have to start adding keywords.
150
MI_UG.PDF
If refining the search with a boundary is still not enough, you can tell MapInfo Professional to
search in additional boundaries for the match. Choose the Options button in the Geocode dialog
box to bring up the Geocoding Options dialog box. Select the item that is labeled Use a match
found in a different boundary.
Note:
Keep in mind that even though postal codes are more effective for geocoding than town
boundaries, you cannot use the US_ZIPS.tab file that comes with MapInfo Professional for
refining your search because it is a point file. Searches can only be refined using
boundaries. Use USZIPBDY.tab for this purpose.
151
MI_UG.PDF
!EOLNOSPACE is the keyword indicating that the following items are to be treated as cases of
simple truncation. After that we have one line with a comma and one with a number sign.
Whenever MapInfo encounters a comma or a number sign in an address it will ignore it and
everything after. The examples become:
123 Appian Way
7305 Van Zandt
!EOLSPACE is the keyword indicating that the following items are to be treated as cases of
simple truncation. After that we have one line with Suiteand one with a ROOM. Whenever
MapInfo encounters those tokens it will truncate the address. The examples become:
73 Appian Way
3033 Van Zandt
152
MI_UG.PDF
The goal is to strip out the hyphen and the apostrophe. Make the following entries to the
abbreviation file:
!NOSPACE
NOSPACE is the keyword calling for simple substitution, and the hyphen and apostrophe on the
following lines are the tokens to be removed. The examples become:
369 VanRensselaer
91 St Albans
For example, you might want to substitute STHWY for State Highway. To do that, use the
following line:
State HighwaySTHWY
This provides a solution to a subtle problem, that of street names which match items in the
abbreviation file. For example, North St and Park Av both have initial strings which match terms
in the abbreviation file. Consequently, MapInfo will substitute N for North to yield N St and Pk
for Park to yield Pk Av. You could add the following lines to the Abbreviation file to rectify these
substitutions:
N STNorth ST
PK AVPARK AV
Note that these lines have to come after the entries which substitute N for North and PK for
Park. If they came before, they would have no effect. Thus:
...
...
NORTH N
...
...
PARK
PK
...
...
N STNORTH ST
PK AVPARK AV
...
...
When MapInfo encounters NORTH N it will turn NORTH ST into N ST. When it encounters N
STNORTH ST it will then turn N ST into NORTH ST. PARK AV is treated similarly.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
153
MI_UG.PDF
Geocode interactively
When you are geocoding interactively, MapInfo displays a dialog box that lists close alternatives.
Use the Up and Down keys to scroll through the list and choose a street.
154
MI_UG.PDF
When you think there are too many errors in your target table, you can edit the target table before
geocoding it. MapInfos Update Column function is useful for editing tables.
However, it is possible that the street is spelled incorrectly in the source table.
You can enable the option to Use The Closest Address Number in the Geocode Options
dialog box. MapInfo will then geocode unmatched address numbers to the closest existing
range, placing the record at the center of that range.
or
You can deal with such cases in Interactive mode. MapInfo will give you a list of known
address ranges. Select the closest address range from the list or click Ignore to ignore the
record.
or
It is possible that the address is for a street segment that was added after your source
map was made. In that case, you may want to edit the source map so that it reflects the
full range of addresses for that street.
155
MI_UG.PDF
To find all the addresses containing Post Office Box numbers you need to have some way of
identifying them. One plausible indicator is the word box. Use MapInfos InString$ function to
select all records containing the substring Box . Note the spaces on either side of box. By
telling MapInfo that we want those spaces, we make sure we will not include, for example,
addresses on Boxwood Street. Using either Select or SQL Select, you want all records which meet
this test:
InString$(1,ADDRESS, BOX )>0
The number 1 tells MapInfo to search address entries starting with the first character.
ADDRESS is the column containing the street address. BOX is the substring MapInfo is
searching for. When MapInfo finds BOX in an address, it returns a number indicating the
position of the first character of BOX in the address. It follows that, for any record where the
value of Instring$ is greater than zero, that address contains
Box .
You can now geocode this Selection to postal code. That will take care of those records. Then you
can geocode the whole database to addresses. Since those with Post Office boxes have already
been geocoded, MapInfo will skip over them.
156
MI_UG.PDF
MapInfo scores each record on each aspect and adds the three numbers together to get the
result code for that record. For example, a result code of 122 means:
Not matched
Not tried
Exact match
>1
Inexact match
The return codes have been designed so that non-matches will have a negative value and
matches will have a positive value.
A record which has not been tried will have a return code of zero.
1
3 (-)
4 (-)
No street specified
Codes indicating how MapInfo has treated street names appear in the ones place of the result
code.
00
10
20 (+/-)
Address range not found, but within minimum and maximum ranges
30 (+/-)
Address range not found, but beyond minimum and maximum ranges
40 (+/-)
50 (-)
60 (-)
70
Codes indicating how MapInfo has treated address ranges appear in the tens place of the result
code.
157
MI_UG.PDF
Refining-Boundary Codes
100 (+/-)
Address range found in only one boundary other than specified boundary
200 (-)
Address range found in more than one boundary other than specified boundary
300 (+/-)
400 (-)
500
Exact street address found more than once in the specified boundary
600
1000000 (+/-)
Codes indicating how MapInfo has treated refining boundaries appear in the hundreds place of
the result code.
Once you have result codes, you need to find out how your records were handled. You can use the
following SQL Select statement to find out which result codes appeared in your table and how
many records were returned with each code value:
Select columns
Result_Code, count(*)
from tables
SomeData
group by columns
Result_Code
The resulting query table will have a row for each different three-digit result code and a count of
how many records had that code. You can then use Select or SQL Select to select all the records
with a particular code. You can then browse these various selections and determine how to handle
each class of records.
158
MI_UG.PDF
Note:
MapInfo Professional uses the coordinate fields in your table to create point objects.
Records that already have graphic objects associated with them will be skipped during the
Create Points operation.
For example, you have a table showing transmitter tower locations that was created by recording
coordinates using a global positioning system. You want to display the locations on a map in
MapInfo Professional. The table already has X and Y coordinate information but MapInfo
Professional cannot display this information until you create points for that coordinate data that
MapInfo Professional can read.
To create points:
1. Open the table for which you want to create points.
2. On the TABLE menu, click CREATE POINTS. The Create Points dialog box displays.
If you select the same table for the X and Y coordinates, a warning message
displays, prompting you to make a change. Click OK and change the selections in
these drop-downs.
5. The Multiply X and Y coordinates by options allow the user to place a multiplier on the
coordinate columns if necessary. To specify a projection other than longitude/latitude or
the default Table Projection preference, choose projection. In some cases you will need to
specify a negative multiplier depending on the locations quadrant. For locations in North
America the X coordinate is negative. In Africa and Australia, the Y coordinate is negative.
For locations in and around South America both coordinates are negative.
6. Select the appropriate check boxes:
DISPLAY NON-NUMERIC DATA Select this check box if the data you want to create
points for is in text fields in the original table. MapInfo Professional will attempt to
convert the text values to numbers. If the values are not numbers, MapInfo
Professional will not create an object for that record. This check box is automatically
selected and disabled when the table you have selected does not contain two numeric
fields.
OVERWRITE EXISTING POINTS Select this check box to replace the existing objects in
the current map with points based on the data contained in this table.
7. Click OK. MapInfo Professional updates the table to create point objects.
8. To display the table, on the WINDOW menu, click NEW MAP WINDOW, or choose MAP menu,
point to LAYER CONTROL and click ADD to add the table to an existing map.
159
MI_UG.PDF
Make sure that your coordinate information is in decimal degrees (if longitude/
latitude) and not in degrees, minutes, seconds. If your coordinates are in degrees,
minutes, seconds format, see Converting Coordinate Information with the
Degree Converter Tool on page 162 for conversion information. If it is a different
coordinate system, it must be in numeric columns.
If you are using the latest version of this application, MapInfo Professional can use your
numeric data even if it is in a non-numeric column. However, if you are using a version of
MapInfo Professional earlier than 7.5, you still need to change the table structure of your
original file to ensure that your coordinate columns are numeric. Many times, numeric
columns containing coordinate information are brought in as character columns because
the first row is used as a header.
5. On the TABLE menu, point to MAINTENANCE and click TABLE STRUCTURE. The Modify Table
Structure dialog box displays listing each field name and type.
If the coordinate fields are decimal, integer or float, click OK and go to step 10.
If your coordinate fields are listed as character, go to step 6.
160
MI_UG.PDF
6. On the FILE menu, click SAVE COPY AS. Give your table a new name, e.g.,
SAMPLES2.tab. Click SAVE. A copy of your worksheet is saved.
7. On the FILE menu, click CLOSE and close the worksheet that was opened.
8. On the FILE menu, click OPEN. Choose the new table that you saved, e.g.,
SAMPLES2.tab. Click OPEN. An editable copy of your original worksheet displays.
9. On the TABLE menu, point to MAINTENANCE, and click TABLE STRUCTURE. The Modify Table
Structure dialog box displays. Select your coordinate columns and change the type to
FLOAT. Click OK.
10. You will be asked to verify the changes. Click OK. Your browser closes, indicating that the
changes have been made.
11. Next, determine whether your points are in longitude/latitude or in another projection.
Follow the instructions in the next section for each of these cases. If you are unsure of
what projection your coordinates are in, contact the source of the data.
2. Determine the multiplier for the X and Y columns based on the quadrant of the Earth in
which the points fall. For example, if the points are expected to fall in Kansas, the X value
is expected to be between -102 and -94. In the above browser, the data for X (Lon) is
close to +98. The multiplier should be -1 to create the points correctly. The Y (Lat) values
are in the correct range and require a multiplier of +1 (+1 will not change the value).
3. On the TABLE menu, click CREATE POINTS.
The Create Points dialog box displays.
4. Insert the proper values in the Get X coordinates, Get Y Coordinates boxes, and the
Multiply X and Multiply Y boxes. Click OK.
161
MI_UG.PDF
2. On the TABLE menu, click CREATE POINTS to display the Create Points dialog box.
3. Click the PROJECTION button and choose the projection category and member.
4. Click OK.
162
MI_UG.PDF
Degree
Converter Tool
4. Enter the DMS SEPARATOR. You should be able to look at your table and identify the
character separating the degrees, minutes, and seconds entries.
5. Choose the column for the converted results and click OK. This must be a decimal or float
field in older versions (pre-7.5) of MapInfo Professional.
6. Browse your table to see the new column of coordinate information in decimal degrees.
Repeat this procedure for your other coordinate column. You are now ready to use the
TABLE menu to click the CREATE POINTS command.
Note:
You can also use the Degree Converter to convert decimal degrees back to degrees,
minutes, seconds format. Use this feature if you must return the data to its original format.
163
MI_UG.PDF
your data, you may want to disperse the points over a small area. There are three methods for
dispersing points: the Disperse Points tool (a tool that comes with MapInfo Professional), equal
dispersion, and dispersion to the right.
Dispersing Points in the Same Position using the Disperse Points Tool
You can disperse points in the same position either systematically or randomly using the Disperse
Points tool. This tool is a MapBasic program that ships with MapInfo Professional. For instructions
on loading this tool in the Tool Manager, see Accessing and Loading the Tool Manager Tools in
Chapter 3 on page 111.
To disperse points:
1. On the TOOLS menu, point to DISPERSE and click DISPERSE POINTS. A dialog box displays
showing your tables.
2. Choose the table containing the points to be dispersed. Click OK.
3. A warning displays suggesting that you save a copy of the table if you have not already
done so. If you are working with a copy of the original table, click CONTINUE.
4. Choose the appropriate method for dispersing points and click OK. Each method is
described:
SYSTEMATICALLY N, S, E, W, NE, SW, NW, SE: Points are dispersed roughly one
symbol width away from the original point in eight possible directions.
SYSTEMATICALLY AROUND THE CLOCK: Points are dispersed roughly one symbol
width away in a clockwise fashion.
RANDOMLY: Points are clustered around the original location in a random pattern. In
this case, the points can end up overlapping each other.
RANDOMLY WITH CALL OUT LINES: Random dispersion with a callout line to indicate the
original location of the point.
The program works slightly faster if you do not display the table you are dispersing.
This program permanently changes the table. Save a copy of the table before
running this program.
164
MI_UG.PDF
The dispersal weight, in the equation of the update statement above, is a number that
regulates the objects new X and Y coordinates. In the above example, the dispersal
weight is 0.01 degrees (longitude and latitude). The maximum X or Y distance (in miles)
that the point is dispersed is equal to (69 * the dispersal weight). The dispersal weight is
adjustable the larger the weight, the greater the dispersal distance. In the example
above, the dispersal weight is about right for dispersing points on a county-wide or statewide basis, but not for a street-level dispersal. If you find that your objects are not being
dispersed enough or are dispersed too much, increase or decrease the weight.
165
MI_UG.PDF
7. On the FILE menu, click SAVE COPY AS and save the resulting table.
8. Open the newest table and ungeocode it.
9. On the TABLE menu, point to MAINTENANCE and click TABLE STRUCTURE. Clear the TABLE
IS MAPPABLE box.
10. Then geocode the unmapped table to one of the copies of the street file.
Note:
You may have duplicate points at the same location if a street intersects another street of
the same name more than once.
You can review directions for extracting longitude and latitude from a geocoded table Extracting
Latitude and Longitude into a New Table on page 142. For more about querying and selecting
data, see Selecting and Querying Data in Chapter 8 on page 242.
166
MI_UG.PDF
167
MI_UG.PDF
2. If you need to change the size of the map, the orientation of your map or want to specify
the scale or a custom width or height, click the OPTIONS button. If you are printing a map,
the Map Print Options dialog box displays.
Note:
If you are printing a graph or a browser or a 3DMap, your options will be different.
See Graph/Browser/3DMap Printing Options on page 169 for more
information.
168
MI_UG.PDF
3. Here you can specify the size of the map, how its contents will display, the scale, and its
width and height. For details on the other print options, see Graph/Browser/3DMap
Printing Options on page 169. When you have completed your selections in this dialog
box, click OK to continue.
MAP SIZE Select the size of the map you are producing in this group; the options
are Window Size, Fit to Page, and Custom. As you make selections, the Custom
Scale, Custom Width and Custom Height entries change.
WINDOW SIZE Click this button to print the map as it displays on your computer
screen.
FIT TO PAGE Click this button to fit the current map to the page size you have
selected in your preferences.
CUSTOM Click this button to enter your own custom scale, width, and height entries
in the fields provided. Then, type the appropriate entries in the Custom Scale, Custom
Width and Height fields.
MAP CONTENTS Select an option in this group to determine the map contents you
want to print; the options are Same as Window and Centered on Window.
SAME AS WINDOW Click this button to print the map contents as it appears in the
Map window, with the same proportions and content as you see.
CENTERED ON WINDOW Click this button to center as much of the current map that
fits on the page. When you select this option, the image may print on more than one
page depending upon fit. In general when you select this option, MapInfo Professional
assumes you want to select the Fit to Page radio button and selects this for you.
4. If your map is particularly complex (a large map, 3D, or one with 10 or more colors) there
are more options available using the Advanced button. The Advanced Printing Options
dialog box displays. (See Advanced Printing Options on page 171). When you have
completed your selections, click OK to continue.
5. After you complete your selections, click OK on the Print dialog box to print your results.
169
MI_UG.PDF
MAP SIZE Click the size of the graph you have produced; the options are Window
Size, Fit to Page, Full Page, and Custom. As you make selections, the Custom Width
and Height entries change.
FIT TO PAGE Click this button to fit the current graph to the page size you have
selected in your preferences or in your Print dialog box.
FULL PAGE Click this button to print the graph on the full page as set in the printer
parameters on the Print dialog box.
CUSTOM Click this button and enter your own custom width and height entries in the
fields provided.
ALL Click this button to print all of the rows and columns in your browser.
FROM/TO Click this button to specify the print range of the rows and columns in your
browser.
170
MI_UG.PDF
FIT TO PAGE Click this button to fit the current 3D map to the page size you have
selected in your preferences or in your Print dialog box.
CUSTOM Click this button and enter your own custom width, and height entries in
the fields provided.
OUTPUT METHOD There are two output methods, Print Directly to Device and
Printing using the Enhanced Metafile (EMF).
PRINT DIRECTLY TO DEVICE Use this option to print your image file directly from
MapInfo Professional. (We recommend that you use this option if you are using
MapInfo Professional 6.0 or earlier only.) This is the default setting.
PRINT USING ENHANCED METAFILE (EMF) Use this option to generate an enhanced
metafile of your MapInfo Professional image before sending it to the printer. This
option takes advantage of current technology to shrink the spool size and print your
file quicker without sacrificing quality.
PRINT BORDER FOR MAP WINDOW Select this check box to print a black border
around the image you are printing. Clear this check box to print the image without a
border. This check box is selected by default.
INTERNAL HANDLING FOR PRINTING TRANSPARENT VECTOR FILLS AND SYMBOLS
Special programming has been added to handle transparent fill patterns and bitmaps
for vector images when you print. Select this check box to use this functionality or
MapInfo Professional 7.5
171
MI_UG.PDF
clear it to let the printer or plotter to manage this type of work. This check box is
selected by default.
USE ROP METHOD TO DISPLAY TRANSPARENT RASTER Select this check box to allow
the internal ROP (Raster Overlay by Pixel) to manage the transparent pixels when
printing raster images. Since the ROP Method is largely a display method, not all
printers and plotters can use it. We recommend that you experiment with this setting
until you get the results you want.
SCALE PATTERNS Select this check box to scale the fill patterns you see on the
screen more closely to what the printer will produce. This option is selected by default.
For advice about setting this option, see Recommendations for Effective Pattern
Scaling in Chapter 2 on page 62.
PRINT RASTER IN TRUE COLOR WHEN POSSIBLE Select this check box to print your
24-bit raster or grid file images in true color. Make sure your printer settings are set to
greater than 256 colors. This check box is selected by default.
The options that are selected when you initially display this dialog box are the default settings,
which are set in the Output preferences. The Advanced Printing dialog box enables you to override
the default print settings for individual windows. To actually change the default print settings, you
must go to the Output preferences (on the OPTIONS menu, point to PREFERENCES AND CLICK
OUTPUT) and change the print settings there. See Setting the MapInfo Professional
Preferences in Chapter 2 on page 47 for more information.
Output Methods
You can choose from two types of output methods. Click the button next to the method you want to
use. The Print Directly to Device method is the printing method used in previous versions of
MapInfo Professional. The Print using Enhanced Metafile (EMF) method generates an Enhanced
Metafile from the print contents, which is then sent to the printer. This method produces good
quality output while reducing printing time and spool sizes, but your printer must be able to handle
the metafile.
Note:
If you are printing a map/layout that contains a translucent image, you must select PRINT
USING ENHANCEMENT METAFILE (EMF). The PRINT DIRECTLY TO DEVICE option does not
support translucent images.
172
MI_UG.PDF
Select a dither method from the DITHER METHOD list to use when your image must be converted
from 24-bit to 256 colors. Choose either the HALFTONE or ERROR DIFFUSION dither methods.
You can get additional printer advice in the MapInfo Professional Printing Guide on the
installation CD.
To use a printer other than the one indicated in the Printer preferences to print a particular window
(Map, Layout, etc.), choose either:
On the FILE menu, click PRINT. Click the NAME drop-down list to see a list of the printers
you have access to, and select the one you want to use. This selection overrides the
default printer settings for this print job.
On the FILE menu, click PAGE SETUP. In the Page Setup dialog box, click the Printer to
display the Preferences dialog box for the default printer. Click the NAME drop-down list to
see a list of the available printers, and select the one you want to use. This selection
overrides the default printer settings for this print job.
Note that the printer override applies only to the window you are currently printing. To actually
change the default settings, you must go to the Printer preferences and specify a new default
printer. See Setting the MapInfo Professional Preferences in Chapter 2 on page 47 for more
information.
You can get additional printer advice in the MapInfo Professional Printing Guide on the
installation CD.
When we discuss printer issues, we make the following assumptions about your print environment:
There is sufficient memory (on the print device and on the computer) to print your files
Any of these issues can affect your ability to print/plot your MapInfo Professional output. Our
Technical Support professionals may be able to identify the these difficulties, but they are not
within their control.
Note:
173
MI_UG.PDF
174
MI_UG.PDF
button.
Note:
If you do not have administrative rights to your computer, you may not be able to
use the spooling option. Contact your IT department if you want to make this
change.
175
MI_UG.PDF
You cannot work for long in MapInfo Professional without wanting to add more or enhance your own data
in some way. This chapter teaches you how to get the most from your MapInfo tables and how to create
reports with your data.
On the TABLE menu, point to MAINTENANCE and click TABLE STRUCTURE. The View/Modify
Table Structure dialog box displays.
Adding to a Table
One important operation in maintaining tables is the ability to update the data contained in the
table. MapInfo Professionals Update Column feature allows you to:
Add a temporary column or update an existing column with data from another table
Update a table
177
MI_UG.PDF
You can use this dialog box to create a temporary column in the original data
source file. To do this, select the same table in both the Table to Update dropdown list and the Get Value from Table drop-down list.
2. At the Calculate list box, choose SUM for purposes of this example. You can also select:
VALUE, AVG, COUNT, MIN, MAX, SUM, WTAVG, PROPORTION SUM, PROPORTION AVG, and
PROPORTION WTAVG from this list. (For a discussion of these functions, see Aggregating
Data on page 264.)
178
MI_UG.PDF
At the Of list box, MapInfo Professional automatically defaults to the first numeric field in
the table when you choose any function other than value. You can select another column,
as appropriate.
3. Click OK to begin the update. MapInfo Professional updates the STATES table and
reports the order amount by state in a Browser or in the table you selected.
When the order amount of a customer changes, you can simply make the change in the
Order_amt table. MapInfo Professional automatically updates the sum of the order
amount for that state in the STATES table.
4. To save the temporary column, on the FILE menu, click SAVE COPY AS.
You can also save the information if the table is part of a workspace that you save. If the
information is saved with SAVE COPY AS, the values will remain the same. If saved in a workspace,
MapInfo Professional recomputes the column whenever you open the workspace. Also, the
Update Column dialog box defaults to the last column that was updated and the last expression
that was used for updating the column, whenever you run the command.
For additional details about saving a table, see Saving a Table or Saving a Copy of a Table on
page 105.
Updating a Table
For a quick visual way to update your table, select the objects in the Map window and use Update
Column to update the table with the new value. This would be useful when you want to update a
number of objects with the same value.
To include the District column in the STATES table:
1. Create the District column (on the TABLE menu, point to MAINTENANCE and click TABLE
STRUCTURE) in the States table.
2. Add a field for Districts.
3. Re-display the STATES table in a Map window.
4. Select the appropriate states with the Marquee tool (or other selection method).
5. On the TABLE menu, click UPDATE COLUMN and fill in the dialog box as illustrated in the
next figure. Be sure to put the value in quotes so MapInfo Professional does not treat it as
a new column name.
179
MI_UG.PDF
6. Click OK. MapInfo Professional creates a query table of the southeastern states with the
District column containing the value Southeast.
7. Save the table to preserve the new information.
If tables are mappable, the bounds of the map in one table must be large enough to allow
objects from the other table to fit within it. Otherwise, the objects will be distorted to the
bounds of the Map window. Use the Check/Set Coordsys Bounds tool to alter the map
bounds of the table if this occurs. SeeUsing the Tools in the Tool Manager in Chapter 3
on page 109 for more about the Coordsys Bounds tool.
180
MI_UG.PDF
The Column to update is LAST, and we get the Value from the column that has the full
name in it. Remember we are only working with one table, so the Table to Update and Get
Value From Table should be the same table. In the following example, the table is TABLE1
and the full name column is your_full_name_column. You should fill in your own values for
these two items.
4. To parse the first name out of the full name column, choose the TABLE menu and click
UPDATE COLUMN. Fill in the Update Column dialog box.
181
MI_UG.PDF
5. To parse the last name out of the full name column, on the TABLE menu, click UPDATE
COLUMN. Fill in the Update Column dialog box.
182
MI_UG.PDF
183
MI_UG.PDF
9. Repeat the process to retrieve the latitude coordinates using the expression
CentroidY(obj).
10. On the FILE menu, click SAVE TABLE to permanently store the coordinates in the
RADIOLOC table.
Note:
If you edit the objects, which, in effect, changes the coordinates, you must go back into the
columns to make the changes. It will not automatically update.
2. Choose OPEN NEW BROWSER so that the new table will be open in its traditional tabular
form in a window.
3. Choose OK. The New Table Structure dialog box displays.
4. Choose ADD FIELD to begin building the databases structure. Give the field a name, type,
width, and specify whether the field will be indexed.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
184
MI_UG.PDF
5. Continue to add fields until you have the number you want.
6. Use the UP and DOWN buttons to reorder the fields. Keep in mind that the order of fields in
this dialog box (top to bottom) will actually display as columns (left to right) in the Browser
window.
7. Choose CREATE. The Create New Table dialog box displays.
MAPINFO (*.TAB)
DBASE DBF (*.TAB)
MICROSOFT ACCESS (*.TAB)
11. Click SAVE. If you chose either of the MapInfo Professional formats, MapInfo Professional
creates your table. You are finished. If you chose dBASE DBF, proceed to step 12.
If you chose dBASE DBF, the dBASE DBF Information dialog box displays, asking you to
specify a file character set. Choose the one appropriate for your language and click OK.
12. Click SAVE in the Create New Table dialog box. MapInfo Professional creates the new
table.
Note:
Do not use Districts as a name for your base tables. MapInfo Professional uses
Districts internally as a system table when beginning a redistricting session.
See the section on Microsoft Access Tables later in this chapter for information on creating a new
Access table.
Editing a Table
You can make changes to the structure of your table directly in MapInfo Professional. You can add
or remove fields, change the order, name, type, width, or index of any field. You can also specify or
determine the projection of the table from this dialog box. You can also check if the table is
mappable (contains map objects).
185
MI_UG.PDF
Keep in mind that you can only view the structure of a spreadsheet file that you bring into
MapInfo Professional.
Deleting a Table
Deleting a table allows you to remove the .tab file and all component files associated with the
table.
To delete a table:
1. On the TABLE menu, point to MAINTENANCE and click DELETE TABLE.
2. Choose the table to delete and click OK.
A message displays to inform you that the table will be permanently deleted and the
operation cannot be undone.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
186
MI_UG.PDF
Packing a Table
Packing a table allows you to compress tables to take up less disk space. You can choose to pack
only tabular data or graphic objects or both. Packing tabular data removes deleted records.
When you pack a table, MapInfo Professional requires that you have twice as much free space as
the table takes up to handle a copy of the database as a scratch file.
To pack a table:
1. On the TABLE menu, point to MAINTENANCE and click PACK TABLE. The Pack Table dialog
box displays.
2. Choose the appropriate table and whether you want to pack tabular or graphic data, or
both.
3. Click OK.
Note:
Packing a table can corrupt customized labels saved to a workspace. If you are going to
be working with customized labels, pack the table before you create the labels.
Description
AVERAGE
COUNT
MINIMUM
MAXIMUM
SUM
WEIGHTED AVERAGE
PROPORTION SUM
PROPORTION AVERAGE
PROPORTION WEIGHTED
AVERAGE
187
MI_UG.PDF
Note that average, count, min, max, sum, and weighted average operate on data values only. The
proportion functions take geographic relationships into account.
Note:
To find instructions for using the Update Column feature, see Adding a Temporary
Column using Update Column on page 178.
188
MI_UG.PDF
For example, you want to find the best location in the area to build a new upscale shopping mall.
You believe the mall will draw people from a 20-mile radius. You are considering five potential sites
and you want to place the mall where you can find the optimum combination of population and
income.
To do this, create a temporary column in your Mall table with data from your Towns table that
contains the proportion of each towns population affected by the potential mall. Use the median
income for each town as the weighing factor. In this example MapInfo Professional determines the
join automatically to be where the town boundaries intersect the 20-mile buffers around the
potential sites.
The best location of the mall will be at the site that returns the highest value of the temporary
column, as shown in the Browser in the next figure.
Browsing a Table
There are times when viewing the tabular data in a table is necessary. In MapInfo Professional,
this is called browsing the table.
To browse a table:
1. On the WINDOW menu, click NEW BROWSER WINDOW.
2. Choose the table you wish to browse and click OK.
The Browser shows the fields of the data table (column headings) and the records of data (rows).
189
MI_UG.PDF
A Browse menu item gives you further functionality. On the BROWSE menu, click PICK FIELDS to
display only the columns of data you want to see. If you wish to show information that is only
implicit in the base table, in the Pick Fields dialog box choose Expression from the Fields in Table
list. For more on expressions see Deriving Columns in Deriving Columns in Chapter 8 on
page 261, or Creating Expressions in Chapter 8 on page 251.
If you wish to show or hide the Browser window grid, on the BROWSE menu, click OPTIONS.
You can add new records to the Browser.
1. On the EDIT menu, click NEW ROW to add a row (or use CTRL-E).
2. Enter text directly into each field. As you type, press TAB or SHIFT-TAB to move from field
to field.
3. You must remember to save the new information to the base table before exiting the
program.
The square box to the left of each record in the Browser window is the select box. Click it to select
the record in the Browser window. If the Map window for the table is open, the record is selected
as well.
To add records to the selection, SHIFT and drag to select consecutive records, or SHIFT-CLICK nonconsecutive records.
Selecting records creates a subset of the table that you can browse, map, or graph, just like the full
table. More on selecting is found later in Chapter 8: Selecting and Querying Data. You can also
create a report of your tabular data using the Crystal Reports functionality included with MapInfo
Professional. The Crystal Reports User Guide has also been included on the installation CD to
help you get the most out of this powerful report writing program.
190
MI_UG.PDF
191
MI_UG.PDF
When your data is remote, whether it is a remote Excel file or an Oracle table, the issue of retrieving data
gets more complex. This chapter addresses the special circumstances that surround remote data access
for use with MapInfo Professional.
MapInfo Professional installs the following as part of the custom installation process:
If the prerequisites which MapInfo Professional does not install are not in place when you install
the MapInfo Professional portion of the DBMS support, various warning messages will appear
explaining that you do not have the required DLLs. It is safe to finish your MapInfo Professional
installation, then add the prerequisite support. You can then customize your data sources in the
DBMS Administrator instead of returning to the MapInfo Professional installation media.
Note:
MapInfo Professionals support for live access to remote tables includes SpatialWare 4.6
on SQL Server 7 and 2000.
Coordinate values for the objects must be stored in columns of the remote table as
numbers, or as a spatial column if the database supports it, such as SpatialWare, Oracle
Spatial, or Sybase. See Prerequisite 1 Storing Coordinate Values in a Remote Table
on page 194 for these instructions.
A spatial index column may be included to increase performance on queries against the
coordinates. See Prerequisite 2 Creating a Spatial Index Column on page 196 for
these instructions.
You must create a special table on the DBMS system known as the MapInfo_MapCatalog.
(MapInfo Professional creates this automatically when you use the EasyLoader.) You
create only one catalog per database. See Prerequisite 3 Creating a
MapInfo_MapCatalog on page 197 for these instructions.
You must supply information about mappable tables to the MapInfo MapCatalog using the
Make Table Mappable command. (This is for tables the EasyLoader does not upload.) See
Prerequisite 4 Making a Remote Table Mappable in MapInfo Professional on
page 199 for these instructions.
193
MI_UG.PDF
Make a remote table mappable in order to geocode. See Making a DBMS Table
Mappable on page 199 in this chapter.
Add coordinate values to an MapInfo Professional table, export it to a text file, and import
it to your database.
INFORMIX Dynamic Server (IDS) with the SpatialWare DataBlade (The IUS driver must
have a version of 2.8 or higher.)
EasyLoader has been expanded to run with the following spatial schemas on standard databases:
194
MI_UG.PDF
When you connect to a server using ODBC, select a data source (see Creating New Data
Sources (ODBC) on page 204). To connect to the Oracle Spatial server, you must have
the Oracle client installed.
When you connect to a server, the SOURCE TABLES button enables. It displays a dialog box
that enables you to select the MapInfo Professional tables to upload. The selected tables
display in the MapInfo Professional tables list. To change the tables in this list, you must
use the SOURCE TABLES button.
The UPLOAD button becomes available after you have selected the tables to upload. Be
sure to specify your table options before you upload the tables using the OPTIONS button.
APPEND TO TABLE The MapInfo Professional table will be appended to the server table if
the server table exists and the structure of the two tables match. Otherwise, you will get an
error and the table will not be uploaded.
195
MI_UG.PDF
REPLACE/CREATE TABLE The server table of the same name is first dropped if it exists,
then a new table is created to match the MapInfo Professional table being uploaded.
APPEND ALL TO ONE TABLE All MapInfo Professional tables listed are uploaded to a
single server table. The server table name is the one visible in the Server Table box. This
feature is meant to be used to upload tables with the same structure and symbology to
one table.
For example, instead of creating a new table for each street layer, select the APPEND ALL
TO ONE check box, and only one table will be created. Then all of the tables will be
appended to this table.
Note:
It is possible that some tables will not be appended if their structure differs.
When used with the APPEND TO TABLE option, the tables will all be appended to the
existing server table.
When used with the REPLACE/CREATE TABLE option, the server table will be dropped, a
new table created, and all tables listed will be appended to that one.
Note:
GRANT PUBLIC ACCESS TO TABLE PUBLIC is granted all access to the server table.
EXCLUSIVE USE OF TABLE You can speed up load time on large tables significantly if you
know that you will be the only one attempting to update the table. Note, however, that
specifying this option does not guarantee that the loader will obtain exclusive use, you
must guarantee that to the loader.
The loader checks on the current maximum value of the primary key column (prinx) after
each commit to ensure that it detects any other entries that may have been made by other
processes. This option will prevent that check from occurring, which can make a
significant change to the run time for large tables.
CREATE UNIQUE INDEX A unique index is created on the column sw_member for
SpatialWare or mi_prinx for Oracle Spatial. The mi_prinx column is a sequential number
that is generated by the loader.
CREATE SPATIAL INDEX For SpatialWare tables the index is created on the geometry
column and is called HG<TABLE_NAME>IND. A spatial index is created and Update
Statistics is executed after an rtree index is created for SpatialWare.
For Oracle Spatial tables the spatial index is created on the geometry column and is called
<TABLE_NAME>_SX. 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 8. After the index is built the ANALYZE table function is run
on the index table.
You may also build your own spatial index to suit your specific needs. If you choose to do
this, clear this check box to save time in loading.
For more information on how to run EasyLoader, please view the online help provided with this
tool, EasyLoader.HLP.
196
MI_UG.PDF
2. Click CREATE CATALOG, and select the database for which you want to create a
MapCatalog.
Float,
TABLENAME
Char(32),
MapInfo Professional 7.5
197
MI_UG.PDF
OWNERNAME
Char(32),
SPATIALCOLUMN
Char(32),
DB_X_LL
Float,
DB_Y_LL
Float,
DB_X_UR
Float,
DB_Y_UR
Float,
COORDINATESYSTEM
Char(254),
SYMBOL
Char(254),
XCOLUMNNAME
Char(32),
YCOLUMNNAME
Char(32),
RENDITIONTYPE
Integer),
RENDITIONCOLUMN
VarChar(32),
RENDITIONTABLE
VarChar(32),
NUMBER_ROWS
Integer
It is important that the structure of the table is exactly like this statement. The only
substitution that can be made is for the databases that support varchar or text data types.
These data types can be substituted for the Char data type.
3. Create a unique index on the TABLENAME and the OWNERNAME, so only one table for
each owner can be made mappable.
4. Grant Select, Update, and Insert privileges on the MAPINFO_MAPCATALOG to Public.
This allows the users to make the table mappable. The delete privilege should be reserved
for database administrators.
Spatial Index Types
This table lists the supported Spatial Index types.
Spatial Index Type
Type Number
MapInfo IUS_MM_SW
MapInfo IUS_MM_XY
10
11
Oracle Spatial
13
198
MI_UG.PDF
In previous version of MapInfo Professional, the bounds were not reset if new objects outside the
current bounds were added to the table. The bounds are now automatically adjusted when
inserting or updating spatial objects. If the object is outside the MBR, it will expand the MBR and
update the MapInfo_MapCatalog. Deleting objects from the table does not alter the bounds.
The column(s) containing the spatial data to map the table (not applicable to relational
Oracle SDO)
The spatial index column from the remote database table (used by MapInfo Professional
to speed access of the spatial data and improve performance)
Per row styles, if your table is set up for it, and the MapInfo_ MapCatalog has the
appropriate column structure
Table Bounds (control the extent of the bounding rectangle for the Map window)
MapInfo Professional takes this information and stores it in a table called the
MapInfo_MapCatalog. Every time you use a DBMS table MapInfo Professional checks the catalog
to see if the table is mappable. As a result, you only have to make a DBMS table mappable once.
It will always remain mappable. However, one spatial index column entry per table is allowed in the
Map Catalog. Therefore, only one spatial column can be mappable at a time. If the table has more
than one spatial column and you want to map another spatial column, you must drop the spatial
column currently in the Map Catalog and make the table mappable using the new column.
199
MI_UG.PDF
2. Open the appropriate remote connection if you have not done so already. The Open Table
dialog box displays.
3. Select the table from the list and click OK. The Make Table Mappable dialog box displays.
4. Complete the appropriate selections and entries in this box and click OK to make the table
mappable.
INDEX TYPE Select the spatial index type of the column that has the spatial
information in the DBMS table. The spatial index provides a fast way for MapInfo
Professional to access the spatial data in the table. The seven index types to choose
from are SpatialWare, Oracle Spatial, IUS SW Blade, IUS MM XY Blade, IUS MM SW
Blade, MapInfo Professional, and XY Coordinates. (You use the XY Coordinates
option when there is no index.)
INDEX COLUMN Required for all index types except XY COORDINATES. Choose the
name of the spatial column, or in the case of a MapInfo Professional index type,
choose the name of the MICODE column.
X Coordinate, Y Coordinate
Required only if you chose the XY Coordinate or MapInfo Professional index type.
Choose the X and Y columns that contain the point data you wish to map.
200
MI_UG.PDF
OBJECT TYPE For spatial databases, select point, linear, or region object types.
(Defaults to point object type for ORACLE SDO, MAPINFO PROFESSIONAL, and XY
COORDINATES index types.)
POINT: indicates the table only can contain point objects
LINEAR: indicates the table can only contain lines and polylines
REGION: indicates the table can only contain region objects
OBJECT STYLE Depends on the object types that the mappable table can contain.
You can set the default style that the objects will use for display when they are
downloaded.
SYMBOL Displays the Symbol Style dialog box where you can select a default
symbol for the point data.
LINE Displays the Line Style dialog box where you can select a default symbol for
the line data.
REGION Displays the Region Style dialog box where you can select a default
symbol for the region data.
PER ROW STYLES Activates per row styles for the table, which enables you to use
different object styles on the remote table. You can modify the styles of individual
objects or groups of objects and save them to the DBMS table.
PROJECTION Activates the Choose Projection dialog box. Specify the projection for
the DBMS table. The projection must match the projection used by the corresponding
remote database table.
TABLE BOUNDS Allows you to choose the options that determine how your default
view and your entire view table bounds are calculated. The bounds options you
specify in this dialog box define both views. Select one of these options and click OK
to implement those bounds options.
USE DATA BOUNDS By default MapInfo Professional calculates the bounds as the
minimum bounding rectangle of all the data in the layer. This requires scanning the
table and calculating this value. This process can take some time so a progress bar
displays, showing you the progress of this operation. You can cancel it, if necessary.
USE COORDSYS BOUNDS You can use the coordinate system bounds, but usually
we do not recommend it. The coordinate system bounds are usually much larger than
the actual data bounds, which may make finding your displayed data difficult. You are
usually zoomed out too far to be able to locate your data easily.
USE CUSTOM BOUNDS Here, you can set your own custom bounds based on the
size and location of your data. Click this option to modify or set the bounds of your
data.
201
MI_UG.PDF
The MapCatalog must contain columns that support the use of styles. They are:
RENDITIONTYPE, RENDITIONCOLUMN, and RENDITIONTABLE. If you have created
the MapCatalog with EasyLoader version 6.6 or later, these columns are already in the
MapCatalog. If you are using a pre-v. 6.6 version of the MapCatalog, a script is provided
that will alter the definition of the MapCatalog to include these columns. Adding these new
columns will not cause problems for older versions of MapInfo Professional, MapX, or
MapXtreme.
The map table itself must have a character column wide enough to store the complete
style string. Style strings vary in width. We recommend a minimum of 50 characters be
provided. If you plan to use custom symbols, which use much longer strings, allow 200
characters.
MapInfo Professional 7.5
202
MI_UG.PDF
The entry for the table in the MapCatalog must be set correctly. This means that the
RENDITIONTYPE is 1, and the RENDITIONCOLUMN contains the name of the column
that will contain the style string. This entry is set by EasyLoader 6.6 or later if the
MapCatalog contains the new columns, or it may be set using the Make Table Mappable
function.
If you are using Oracle 8i and cannot open your three dimensional SDO objects in
MapInfo Professional, we recommend that you index your columns with the default /3d
index to ensure that your queries do not fail.
203
MI_UG.PDF
Supporting SpatialWare
SpatialWare is a MapInfo Corporation product that helps users store, access, manage, and
manipulate spatial data as a standard part of their business data. You can query both spatial and
non-spatial data within a single SQL Server query using SpatialWare. All of the strengths of SQL
Server as a relational database are extended to spatial data using SpatialWare. Spatial data may
for example be directly managed and edited by many different users simultaneously.
204
MI_UG.PDF
3. Click the driver you want to associate with the database to select it.
4. Click FINISH. A driver-specific Setup dialog box for the data source appears. (The source
of this dialog box is the ODBC Administrator.)
Since each driver is different, each data source requires a different configuration. Because
of this, each data source has a unique Setup dialog box.
In general, configuration usually includes the data source name, description, and server
name. Optional configurations might include server list, default logon ID and application
name. There is a help file for each driver distributed as part of MapInfo Professional and is
located in the Windows system directory. The help files are named as follows:
MIdrv17.HLP, where drv is the name of a driver. For example, MIINF17.HLP is the help for
Informix.
5. Type the required information about the data source in the Setup dialog box.
6. Click OK when you have finished configuring your data source. The driver writes these
values to the ODBC.INI file. These values are now the defaults whenever you connect to
the data source.
You can also create a data source on the fly when you are connecting to a data source.
205
MI_UG.PDF
You can perform most operations on a linked table that you do for a regular MapInfo Professional
table. For instance, you can view, edit, copy, save, and rename a linked table just as you could a
regular MapInfo Professional table. However, there are some things you cant do to a linked table.
For instance, you cant pack a linked table. You also cant modify the table structure of a linked
table (but you can modify its MapInfo Professional index structure).
You have live access to remote databases, enabling you to make changes to your remote
database directly.
206
MI_UG.PDF
The dialog box sequence that displays depends on what DBMS support components you have
installed:
The Open DBMS Connection dialog box displays and prompts you to select a table from the
connected data source:
1. Choose a CONNECTION TYPE from the Connection Type list. The connection types that
appear in the list depend on what types of DBMS Support you have installed: MapInfo
ODBC, Oracle, or both.
2. To make a new connection, click the NEW button. If your connection type is MapInfo
ODBC, the Select Data Source dialog box displays.
FILE DATA SOURCE Displays all file DSNs (data source names) and subdirectories
contained within the directory displayed in the Look In box. Double-clicking a DSN
connects to the data source.
LOOK IN Displays the current directory in which the subdirectories and file DSNs
display. Click the DOWN ARROW to the right of the text box to display the entire path.
DSN NAME Displays the file DSN name selected in the File Data Sources list, or
you can enter a new file DSN name.
NEW Adds a new file data source. If you click this button, the Create New Data
Source dialog box appears with a list of drivers. Choose the driver for which you are
adding a file DSN. After you click NEXT, you may specify the keywords for the file
207
MI_UG.PDF
DSN. See Creating New Data Sources (ODBC) on page 204, for instructions on
creating a new data source.
3. If your connection type is ORACLE SPATIAL, the MapInfo Professional Oracle Connect
dialog box displays.
4. Enter the server name, user name, and password, and then click OK.
When you have chosen or created a connection the Open DBMS dialog box displays. It
contains a list of tables for that connection, which displays in the Tables field. The directory
path of the database connection or the database name also displays. This field is not
present for data sources that do not provide this information.
5. Click the name of the table you want to download to highlight it.
6. As an optional step, use the FILTER button to select which types of tables to list. The
default shows Tables, View, and Synonyms, and hides System tables.
7. Click OPEN. The Open DBMS Table Options dialog box displays.
Note:
For data sources that make use of owners, such as Oracle, the Owner field is
activated. It allows you to list tables owned by different users.
208
MI_UG.PDF
Note:
The default location of the *.tab file is set in Remote Tables preferences.
To use the Standard Mode, click the COLUMN FILTER button if you want only certain
columns downloaded. The Column Picker dialog box displays.
Move the columns you want from the table from the Available group to the Selected
group using the arrow buttons. The single arrow keys move one selected column at a
time. The double arrow buttons move all the columns at once from one list to the
other.
Change the order of the selected columns in the Selected list using the Up and DOWN
buttons. Click a column to highlight it, and then move it up or down in the list by
clicking the appropriate button.
Click OK.
To use the Expert Mode, click the EXPERT radio button to create a SQL query that
selects data from the table.
209
MI_UG.PDF
If the table is mappable, the Available list also displays an additional column called
OBJECT, which refers to the spatial column. You can select it to download point
objects from the table. If the table is spatialized, it will download lines and polygons
depending on what the table contains.
At the initial display of this dialog box, an asterisk (*) appears in the Selected list. If
you leave the asterisk, all the columns will be selected from the table.
For additional coaching in using the Expert Mode, see Entering SQL Queries with
the Expert Button on page 212.
When you have completed executing your query, continue to Completing the Open
DBMS Table Options Dialog Box on page 211.
2. Click the ROW button to restrict the downloading of data from rows that match the criteria
you specify. (This is the same as specifying the WHERE clause in a SQL query.) If you
select no filtering criteria in this dialog box, all rows will be selected. The Row Picker
dialog box displays.
3. In the Column list, choose the column(s) from which you want to filter rows.
If you are filtering rows for one column, select a column, operator, and value. If filtering
rows on more than one column, select a column from the next drop-down list. This will
also activate the next row of fields for data entry.
4. Choose how you would like to filter the rows using the Operator and Value boxes.
Note:
If you clicked the EXPERT button, you bypass the wizard and write a SQL query to
select the rows from the table. Continue with Completing the Open DBMS Table
Options Dialog Box on page 211.
210
MI_UG.PDF
MBR of the objects. This would usually return more data than expected. Now multiple
objects are automatically combined into a single object before performing the spatial
query, which returns the correct results. The object is stored in the .tab file so that it is reused the next time you open the .tab file to the remote database.
String values are enclosed in single quotes, e.g., New York. Numerical values are
entered without any quotes. For example, for a numeric column, the user might select the
operator >, and enter a value of 0. This would select only rows in which that column
contained a value greater than 0.
There are two wildcard characters that can be used with the LIKE operator: % and _.
The % wildcard character matches zero or more characters. The _ wildcard character
matches only one character.
When rows are being filtered from more than one column, Conjunction becomes available.
Choose one of these boolean operators: AND, OR, AND NOT, OR NOT.
Connect to a database.
211
MI_UG.PDF
This dialog box allows you to enter more complex queries than the wizard allows using the
standard DBMS SQL syntax.
To type in multi-line formatted SQL, do the following:
To cut and paste from the clipboard, use <CTRL X> to cut, <CTRL C> to copy, and
<CTRL V> to paste.
LOAD Loads an SQL statement that has been saved in a file. The Load button
activates the Load SQL Query dialog box. This dialog box provides you with access to
existing files containing SQL statements (*.SQL files). When you load an SQL file, its
format will be preserved.
SAVE Saves the SQL statement in a file for later use. The SAVE button activates the
Save SQL Query dialog box. Use this dialog box to save newly constructed SQL
statements, or modifications to existing statements. When you save an SQL file, its
format will be preserved. Once saved, the SQL statement appears in the list of
available *.SQL files in the Load SQL Query dialog box.
LAST QUERY Loads the last query that was executed in this session of MapInfo
Professional.
212
MI_UG.PDF
If cache is on, another users updates may not appear until the cache is invalidated by
a pan or zooming out.
Clear the CACHE check box and all data will be fetched from the database. This will
give the most up-to-date data, but it is less efficient because the data must be re-read
from the database.
With MS Access if the key is character, it will not display rows where the key value is less
than the full column width e.g., if the key is char(5) the value aaaa will look like a deleted
row.
Changes made by another user are not visible until the data is refreshed from the server.
In addition, if cache is on another users updates may not appear until the cache is
invalidated by a pan or zooming out.
There will be a problem if a client-side join (through the SQL Select menu item or
MapBasic) is performed against two or more SpatialWare tables that are stored in different
coordinate systems. This is inefficient (it is better to do the join in the SQL statement that
defines the table), but it is a problem in the current release.
Deleting records creates problems. Records are deleted; however, the table structure is
not packed, causing problems with selecting and labeling.
213
MI_UG.PDF
If the total number of rows stored in the MapCatalog is out of sync with the actual number of rows
in the table, problems occur. The map will always include all of the map objects, but other things
may not work correctly. For example:
The MapBasic statement to fetch last will not return the correct row.
The original server state of the record (the record as it appeared when initially extracted
from the database).
The current local state of the record (the record as it appears in the session of MapInfo
Professional making the update, possibly after editing by the user).
The current server state of the record (the record as it appears in the database at the time
of the update).
A conflict exists when the original state of the record does not match the server state. This implies
that another user has updated this database since it was extracted by MapInfo Professional.
The Conflict Resolution dialog box displays once for each conflicting record. At any point in this
process, you may choose to leave this interactive mode and have the rest of the conflicts resolved
automatically. In that case, you can use all local values or all server values to resolve the conflicts
in the records.
For each conflict found during a commit, a modal dialog box displays. This box will display enough
information for you to decide which data values to use to update the row in question.
214
MI_UG.PDF
Type of conflict
Default resolution
Column
Shows the name of the column in the record that has data which is in conflict and needs to
be resolved. If the column name is too long and does not fit into the list box, a truncated
representation will be shown instead. Its full value displays in the Column field.
Original DBMS
Shows the original data as it appeared when extracted from the database.
If the original data is too long and does not fit into the list box, a truncated representation
will be shown instead. Its full value can be displayed in the Original field.
Current DBMS
Shows data as it appears in the remote database at the time of the update. (This data
might have been changed by another user since it was downloaded into an MapInfo
Professional linked table.) The Current field will be blank if the record has been deleted on
the remote database, after being downloaded into an MapInfo Professional linked table. If
the current data from the remote database is too long and does not fit into the list box, a
truncated representation will be shown instead. Its full value can be displayed in the
Current field.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
215
MI_UG.PDF
Current DBMS
Select to retain the current value on the remote database. If the current record on the
database or the MapInfo Professional record was deleted, then this check box is not
available. Instead, you must use the MAPINFO PROFESSIONAL or CURRENT button.
MI Pro button
This button selects all the MapInfo Professional values. If the record you are trying to
resolve was deleted from the MapInfo Professional database, selecting the MI PRO button
will delete the record from the remote database. If the record you are trying to resolve was
deleted from the remote database, selecting the MI PRO button will insert the new record
into the remote database.
Current button
This button selects all the current DBMS values. If the record you are trying to resolve was
deleted from the MapInfo Professional database, selecting the CURRENT button will ignore
the deletion and retain the current record in the remote database. If the record you are
trying to resolve was deleted from the remote database, selecting the MI PRO button will
insert the new record into the remote database.
Column
Shows the full name of the column highlighted in the list box.
Original DBMS
Shows the full value of the original data highlighted in the list box.
Current MI Pro
Shows the full value of the MapInfo Professional data highlighted in the list box.
Current DBMS
Shows the full value of the current remote database data highlighted in the list box.
Stop Commit
The STOP COMMIT button terminates the entire update. A second dialog box confirms that
this is what you really want.
Automatic
The AUTOMATIC button causes the interactive conflict resolution to end. A dialog box
displays to allow you to select the automatic conflict-resolution modes you want to use for
the remainder of this update. You can select one two automatic modes from the dialog
box. You can accept MapInfo Professional values, or the values currently residing on the
remote database.
216
MI_UG.PDF
Both operations display the Close DBMS Connection dialog box. The Connection list
displays all the open connections.
2. Select the connection(s) you want to close and click OK. The selected connection(s)
close.
In new installations of MapInfo Professional 6.5 or later, use the EasyLoader tool to add the
NUMBER_ROWS column when it creates the MapCatalog.
To load the DBMS Count Rows tool, on the TOOLS menu, click TOOL MANAGER. Select the LOADED
check box next to the DBMS Count Rows in Table tool, and click OK. The tool is now located as a
command in the Tools menu.
217
MI_UG.PDF
There are no editable columns in the data downloaded from the server database.
The data downloaded from the server database does not contain a primary index.
If the data downloaded from the server database does not contain a primary index, you can create
one. Then the table will become editable. The next section explains how to create a primary index
on a remote table from MapInfo Professional.
Spatial data is not actually stored in a column on the table. This would happen if a function
were used on the spatial data that generated spatial data, such as buffering the object on
the server.
218
MI_UG.PDF
219
MI_UG.PDF
The drawing and editing capabilities in MapInfo Professional allow you to create and customize an
unlimited variety of objects for your maps. Easy-to-use drawing tools and commands are accessible from
the Drawing Toolbar. You can also display nodes, line directions and centroids to give you better control
when editing objects.
In this Chapter:
You can only draw and edit objects on a map when the layer the object is on is editable.
We have covered making a layer editable in depth elsewhere in this User Guide. See Making the
Layers Editable on page 95.
Tool Button
Use Description
Arc
To draw a circular arc, hold down the SHIFT key while using the Arc tool.
Ellipse
The ellipse is drawn from the center outward at the point where you click. To
draw a circle, hold down the SHIFT key while dragging the ellipse cursor. To
begin an ellipse (or circle) from a corner, use the CTRL key in combination
with the Ellipse tool.
Line
Use the Line tool to draw straight lines (streets, pipelines, cables). To draw a
horizontal, vertical or 45 line, hold down the SHIFT key when using the Line
tool. Note that borders around regions or boundaries are not lines.
Therefore, if you use the Line tool to draw a square, MapInfo Professional
does not recognize the square as a region. You cannot shade its interior or
perform searches within it.
Polygon
Unlike the Ellipse, Rectangle, and Rounded Rectangle tools (which only
create shapes), the Polygon tool creates regions. You can perform many
more editing functions with regions, such as merging and reshaping.
Polyline
Similar to the Polygon tool in that polylines can be reshaped and smoothed
(replacing angles with curves). Neither option is available with objects drawn
with the Line tool.
Rectangle
To draw a square, hold down the SHIFT key while using the Rectangle tool.
The object is drawn from a corner. To draw a rectangle centered on the point
at which you click, use the CTRL key with the Rectangle tool.
Rounded
Rectangle
To draw a rounded square, hold down the SHIFT key. As with the Rectangle
tool, use the CTRL key with the Rounded Rectangle tool to draw the object
from the center outward.
Symbol
Text
You can customize the font, point size, and rotation angle. You can also
create text by using MapInfo Professionals labeling tools and commands.
MapInfo Professional 7.5
221
MI_UG.PDF
Tool Button
Description
Reshape
Toggle in and out of Reshape mode with this button when you want to add,
delete, or move nodes in an editable layer (also available on the Edit menu).
Add Node
The Add Node button allows you to put additional nodes on an object for more
precise editing.
Line Style
Displays the Line Style dialog box where you can change the color, width, and
type of selected line objects or set new defaults for future objects.
Region Style
Displays the Region Style dialog box where you can change the fill pattern and
border of selected region objects or set new defaults for future objects.
Symbol Style
Displays the Symbol Style dialog box where you can change the symbol type,
color, and size of selected symbol objects or set new defaults for future objects.
Text Style
Displays the Text Style dialog box where you can change the font, size, color,
and attributes of selected text or set new defaults for future text and labels.
Drawing Objects
Drawing objects in MapInfo Professional is easy. Once you have made the layer editable, choose
the appropriate tool. Using the shape tools, you can draw arcs, ellipses, circles, lines, rectangles,
and rounded rectangles on your map. You can either draw the object directly on the Cosmetic
Layer (and save it to another or new layer later) or make a map layer editable now and draw the
objects there.
Once you have drawn the object, you can move the object, delete it, copy it to the Clipboard, or
paste it to another Map window.
Also, you can delete the last node of the object by pressing the BACKSPACE key. If there is only one
node left in the object, it will not be deleted.
Arc
Ellipse
Rectangle
Rounded Rectangle
222
MI_UG.PDF
You can also use the Ruler window with the Marquee Select and Radius Select tools. Just click the
Ruler tool to display the Ruler window.
If the Ruler window is not active, the drawing and selection tools noted above do not display
distance. The rubber-banding line does not display.
Object Styles
MapInfo Professional draws objects using the default color, fill pattern, line type, symbol, and text
settings for the layer you are drawing on. The default style can be set in the Styles Preferences
dialog box.
To change the style of an existing object:
1. On the MAP menu, click LAYER CONTROL and make the layer editable.
2. Select the object and choose the appropriate style command from the Options menu.
The style commands are also available on the Drawing Toolbar. These commands also
set the styles for any subsequent objects to be drawn on the layer.
3. Save your changes.
For closed shapes such as circles and squares, you can change the fill pattern and color, the style
and color of the border, and the line width of the border. For arcs and lines, you can change the
type of line, its color, and the width of the line. In addition, you can use interleaved line styles to
create the appearance of intersections for overlapping intersections and lines within a single layer.
Interleaved line styles are available for use with lines of the same style and color (they can be
different widths). Interleaved line styles are not available for solid lines or borders.
Any edits to an objects default settings will be applied during the entire work session until you
make new changes. To save the settings, you must save the table where the object resides.
You can also change the display of an object in Layer Control. In the Layer Control dialog box,
click the DISPLAY button to bring up the Display Options dialog box. Click the STYLE OVERRIDE
check box to activate the STYLE OVERRIDE button. Click the STYLE button to bring up the
appropriate Style dialog box.
Note:
The settings you specify through the Display Options dialog box are temporary unless you
save the table to a workspace.
223
MI_UG.PDF
If there is only one node left in the object it will not be deleted.
You can then use the Combine command to combine this region with another, reshape the region,
etc.
Polylines are made up of multiple line segments that are treated as one object. Unlike lines
created with the Line tool, you can smooth polylines into a continuous curve using the Smooth
command. Again, you can delete the last node by pressing the BACKSPACE key.
Note:
If there is only one node left in the object it will not be deleted.
Drawing Symbols
Symbols on your maps make your map more expressive and easier to understand. This section
explains how to change a style currently used by MapInfo Professional and create your own
custom symbols. We also discuss in detail the rules governing symbols.
224
MI_UG.PDF
To draw symbols, make the layer you want to draw the symbols to editable and choose the
SYMBOL tool. Place the cursor where you want the symbol to be and click. The symbol displays
using the default symbol style settings.
The options in the Symbol Style dialog box may be different depending upon the
size and complexity of the image.
Here you can change the symbol, font, color, and size, as well as create background
effects and bold face for symbols.
Select the DISPLAY AT ACTUAL SIZE check box to see the symbol you selected at the size it
was originally created.
Click the RELOAD button to refresh the list of custom symbols stored in the Application
Data CUSTSYMB directory. Select this button if you added a new custom symbol and do
not see the symbol(s) in the list.
Click the FULL VIEW button to display the entire view of custom symbol in a separate
window. This button displays only when you select the Custom Symbols font type. You use
this button when the preview is too large to display completely in the sample area.
3. Make the desired changes, and click OK.
The symbol displays with the style changes you specified. These settings also apply to
any subsequent symbols you draw until you change the settings.
MapInfo Cartographic
MapInfo Transportation
MapInfo Miscellaneous
MapInfo 3.0 Compatible Symbols (vector symbols, available as a True Type font in
MapInfo Professional): the 36 shapes from the MapInfo symbol set offered in versions
prior to MapInfo Professional.
MapInfo Weather
MapInfo Arrows
MapInfo Professional 7.5
225
MI_UG.PDF
Installed font symbols: symbols available from the installed fonts that offer a symbol set
Custom symbols: from here you can access user-created bitmap symbols which you have
saved to the CUSTSYMB directory. This directory is created during MapInfo Professional
installation. See Working with Custom Symbols (page 226) for more about this process.
The MapInfo Symbols font is the same set of symbols offered in previous versions of MapInfo
Professional, but the symbols are now a TrueType font. The MapInfo 3.0 Compatible font contains
the same symbols offered in previous versions of MapInfo Professional in the same vector format.
When you use these symbols, the Background and Effects options in the Symbol Style dialog box
are unavailable.
CAUTION:
If you are creating a map that will be used by MapInfo 3.0 users, avoid using
TrueType symbols and custom symbols. Limit your point objects to the
symbols in the MapInfo 3.0 Compatible symbol set.
If you create a table that contains TrueType symbols or custom symbols, and you display the table
using MapInfo 3.0, the symbols will be invisible. If you then edit the table using MapInfo 3.0, the
point objects may be lost.
If you add custom symbols while you are working in MapInfo Professional, open the
Symbol Style dialog box and click the RELOAD button to ensure that the new symbol(s) you
have added display. Otherwise, you have to exit MapInfo Professional and re-enter it to
get the new symbols to display in the Custom Symbols list.
When you change the style of a custom symbol, the Effects options in the Symbol Style dialog box
change. You can either show a background or apply a color.
SHOW BACKGROUND displays the custom symbol with the background color with which it
was created.
APPLY COLOR replaces all non-white pixels with a color you choose from the color palette.
When you are creating extended custom symbols we recommend you check the Show
Background check box if you do not require transparency. This setting improves performance
significantly during exporting and Drag and Drop operations.
MapInfo Professional ships with custom symbols that you can use to enhance your maps. Here is
a list of the custom symbols we provide.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
226
MI_UG.PDF
Title
Image
File Size
Color Depth
AMBU-64.BMP
13 KB
24-bit
BANK-64.BMP
13 KB
24-bit
BUILDINGS.BMP
13 KB
24-bit
FIRE-64.BMP
13 KB
24-bit
FOOD-64.BMP
13 KB
24-bit
HOUS-64.BMP
13 KB
24-bit
PINB-64.BMP
13 KB
24-bit
PING-64.BMP
13 KB
24-bit
PINGY-64.BMP
13 KB
24-bit
227
MI_UG.PDF
Title
Image
File Size
Color Depth
PINR-64.BMP
13 KB
24-bit
RAIL-64.BMP
13 KB
24-bit
RED-CAR.BMP
13 KB
24-bit
TRUC-64.BMP
13 KB
24-bit
You can select the point size for custom bitmaps from 9 to 240 pt.
There is no a file size limit for custom bitmaps (other than what is required by your raster
engine and the amount of memory you have).
Extended custom symbols usually have their own complex color pattern (which is what
makes them extended) so the APPLY COLOR option is disabled.
When you are dealing with very large bitmaps, there are a couple of special rules to keep mind:
228
MI_UG.PDF
Some users have reported panning problems associated with very large symbols. When
you create a symbol that is larger than 36 points, the symbol may not completely redraw
as you pan across your map. To alleviate this problem, go to the system registry and add
or change your MBRExtraPoints registry entry.
There are times when the custom symbol you are trying to display is too large for the
Sample area.
To display this image, click the FULL VIEW button to display the entire image in a new
window. There may be times when the custom symbol you have created may be too large
for even the new window.
Using either method, the Text Style dialog box displays where you can change the font,
the size, color and create various effects such as haloing or drop shadows.
These settings will remain in effect for any text you subsequently draw on the map until
you change them.
3. To save changes, on the FILE menu, click SAVE. To save objects drawn to the Cosmetic
Layer, on the MAP menu, click SAVE COSMETIC OBJECTS.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
229
MI_UG.PDF
Editing Objects
In all likelihood, you will need to change or edit some of the objects you have drawn or mapped. To
begin this process, you need to make the layer that you want to change editable (on the MAP
menu, click LAYER CONTROL).
To edit an object:
1. Select the object with the SELECT tool.
If the object is a line, edit handles appear at either endpoint.
If the object is a boundary or region, edit handles appear at the outer corners of the object.
2. Drag the object to a new position or change its line style, fill pattern, or symbol.
3. On the FILE menu, click SAVE to save your changes.
To delete an object:
1. Click the object with the SELECT tool.
2. Do one of the following:
On the EDIT menu, click CLEAR or on the EDIT menu, click CUT.
Press the DELETE key.
230
MI_UG.PDF
If you select more than one object at a time to move, the objects move in the same way.
Take care to ensure that you do not move an object off the map or off land by mistake.
Note:
When you move the objects, you move them all at once, maintaining their
positions relative to one another.
To move the selected object(s) using the mouse, hold down the mouse button and
drag the object to its new location
To move the selected object(s) one screen pixel at a time, press and hold the CTRL
key and press the ARROW key in the direction you want the object(s) to move
To move the selected object(s) 10 screen pixels at a time, press and hold the CTRL
and SHIFT keys and press the ARROW key in the direction you want the object(s) to
move
Note:
Since the moves are made in screen pixels, the zoom level affects how far the
object is moved.
231
MI_UG.PDF
5. To move your selected objects, enter or select from the following options and click OK to
apply the changes.
To copy your selected objects to offset them, enter or select from the following options and
click NEXT. Then go to step 6.
ANGLE To offset your selected object at an angle, type the angle (in degrees) in this
field. The new object is created based on the original object and is offset in the
direction of the angle you specified, measured from the positive X-axis. If you enter a
positive angle, the object is offset counterclockwise; if you enter a negative angle, the
object is offset clockwise.
DISTANCE/UNITS To set the offset distance and units, type the distance and select
the units in the Distance box. The list of units is as follows: inches, links, feet, U.S.
Survey feet, yards, rods, chains, miles, nautical miles, millimeters, centimeters,
meters, and kilometers.
Note:
MapInfo Professional takes the default units from the map window in which you've
selected the object.
CREATE COPY Click this option to create a copy of the selected object(s) in the data.
When you complete this process, MapInfo Professional saves the copy to the editable
layer.
MOVE OBJECTS Click this option to move the object without creating a copy in the
data. You can only move an object within its own editable layer. When you move
objects, the Data Aggregation dialog box does not display, since you are only moving
the data within the layer.
COPY OR MOVE DISTANCE USING The option you select in this box depends largely
upon the projection of your source map. If your map has a latitude/longitude
projection, MapInfo Professional enables the SPHERICAL type only. If you are working
with a non-Earth projection, MapInfo Professional enables the CARTESIAN type only.
When you click SPHERICAL, MapInfo Professional calculates the copy/move distance
by mapping the data into a Latitude/Longitude On Earth projection.
When you click CARTESIAN, MapInfo Professional calculates the copy/move distance
by considering the data to be projected to a flat surface and distances are measured
using Cartesian distance calculations.
6. The Data Aggregation dialog box displays if one of these conditions are true:
You may notice that the only controls available to you in this dialog box are BLANK, VALUE,
and NO DATA.
Type a value you will remember in the VALUE field of this dialog box. For more information
about data aggregation, see Aggregating and Disaggregating Data in Chapter 10 on
page 331.
7. Click OK to copy the data and offset the objects you selected.
232
MI_UG.PDF
3. In this dialog box, you specify the angle and the anchor point of the rotation. Type the
rotation angle in the Rotation field.
Note:
Accept the default anchor point of the selected object(s) by leaving the X and Y
coordinates that display in these field as they are
Note:
The default anchor point varies depending upon how many objects you have
selected and the kind of objects they are. See Understanding an Objects
Default Anchor Point on page 233 for more about default anchor points.
Type new entries in the X and Y coordinate fields to select a new anchor point
Click the PICK FROM MAP button and click the anchor point you want on the Map or
Layout window. Click the mouse button only once to establish this point.
To return to the default anchor point, click the RESET ANCHOR button.
5. Decide whether or not you want to lock the anchor point. Click the LOCK ANCHOR POINT
POSITION check box to lock the anchor point.
When you lock the anchor point, you ensure that the anchor point will not be recalculated
when you return to the Map or Layout window. If you do not lock the anchor point, MapInfo
Professional recalculates the anchor point in the based on the rotated selection. Once the
objects are rotated, they may have a different anchor point.
Note:
You cannot maintain an anchor point lock when you change the selection from the
Map window to the Layout window or from the Layout to the Map window.
6. When you have completed these entries or selections, click OK to rotate your object(s).
Understanding an Objects Default Anchor Point
When rotating objects in an editable layer, the default anchor varies depending upon how many
objects you are rotating and the kind of objects you select. If you select:
A single object (not a polyline), the default anchor point is the object's centroid
A single polyline or several objects, the default anchor point is the center of the polylines
or the selected objects minimum bounding rectangle (MBR)
Multiple objects, the default anchor point is the center of the MBR of the selected objects
233
MI_UG.PDF
If the layer is Selectable but not editable, you can only view these attributes. If the layer is also
editable, then you can change these attributes by typing new values into the text boxes of the
dialog box. The illustration above shows the Object Attribute dialog box for a region object in an
editable layer. You can also access this dialog box on the EDIT menu (click GET INFO).
Changing an objects size and position with the Object Attribute dialog box gives you much greater
control over its exact size and position than you have through drawing it on the screen. For
example, you have a list of ten radio towers and their X and Y coordinates. You could geocode
these points using the Create Points command. However, if you bring up the Points Object
Attribute dialog box and type the new X and Y coordinates, you can create ten points with the
Symbol tool and then individually place them in the correct location.
You can also use the Text Object Attribute dialog box to change the points actual text. For
example, you have typed the title World Population on a Map window. You want to fix your
typographical error. Bring up the Object Attribute dialog box for the text object. You can correct
your error in the box that displays the text.
You are now in Reshape mode. MapInfo Professional draws nodes at every juncture
where two polyline or polygon line segments meet.
3. To reshape the object, move the nodes, add nodes, or delete nodes from the object.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
234
MI_UG.PDF
To move a node, click it and, while holding down the mouse button, drag the node to the
desired location. The line segments connected to the node are moved to a new position.
To add a node, click the ADD NODE tool from the Drawing Toolbar, position the cursor
where you want to add the node, and click the mouse button. MapInfo Professional adds a
node. You can now move this node or delete it, just as you would any node.
To delete a node, position the cursor over the node, click it, and press the DELETE key. To
delete the last node when creating a polyline or polygon, click the BACKSPACE key.
Note that the maximum number of nodes for regions and polylines is 1,048,572 nodes for a single
polygon region or polyline. The limit drops by seven nodes for every two additional polygons. If an
object with more than 32K nodes is saved and the table is read in a version of MapInfo
Professional prior to version 4.5, the object(s) will not be visible. Objects in the table that do not
exceed the 32K limit will be visible.
The Reshape command is very useful when you are creating sales territories or other merged
boundaries. For example, you are merging postal code boundaries together to create school
districts. Some postal code boundaries fall into more than one school district. Use the Reshape
command to reshape the school district to incorporate a section of a postal code boundary.
235
MI_UG.PDF
You can also use the snap to capability to snap to visible centroids in region objects.
In the Map window, regions, polylines, lines, arcs and rectangles all have nodes that can be
attached (or snapped) to each other. When the Snap mode is enabled, MapInfo Professional
searches for nodes and centroids as you move around a window. MapInfo Professional
automatically snaps the cursor to a node or centroid when the cursor comes within the snap
tolerance of the node. The crosshairs display when the node is snapped to.
To toggle Snap to Nodes, press the S key. The Status Bar displays with the word SNAP when
Snap mode is activated. When you activate the Snap mode, a circle displays around your cursor
showing the size of the tolerance of the Snap mode in pixels.
The S key acts like a toggle on/off switch. You can set the snap tolerance in pixels in the Map
Window Preferences dialog box. The Snap Tolerance field allows you to specify a tolerance within
which snap operates. For example, if you set the snap tolerance to 3 pixels, whenever you move
the cursor within 3 pixels of a node, the cursor will snap to the node.
Snap mode works in the Map Window and Layout window (but not raster layers). It works with all
MapInfo Professional tools in the Main and Drawing toolbars except Pan, Drag Map, and Text tool.
Additionally, snap mode works on object types, including regions, points, multipoints, collection
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
236
MI_UG.PDF
objects, lines and polylines, rectangles, and arcs. It is not available for text objects, ellipses, and
rounded rectangles. You set the Snap in one window at a time and can save it with your
workspace.
Snap to Nodes applies to all selectable layersthis is useful if you are drawing an object in one
layer and want to attach it to an object in another layer. If you do not want to snap to objects in
certain layers, make those layers unselectable.
As soon as you press either the SHIFT or CTRL key, MapInfo Professional highlights the
path to be autotraced. When you click, MapInfo Professional automatically traces all the
segments between the two nodes and adds them to the polyline/polygon you are drawing.
Note:
The SHIFT key autotraces the shorter path between the two nodes (the path with
the lessor number of nodes), and the CTRL key autotraces the longer path (the
path with the greater number of nodes). Autotrace works the same way as when
you are selecting multiple nodes in Reshape mode.
You can only autotrace one object at a time. The second node you SHIFT/CTRL-CLICK must belong
to the same object as the first node. If it belongs to a different object, MapInfo Professional will
draw a straight line between the two nodes. If you click a node thats shared by two objects (e.g., a
shared border), you can begin autotracing from either polygon.
237
MI_UG.PDF
Click a polyline with the Select tool and on the OBJECTS menu, click SMOOTH. MapInfo
Professional smooths the line so that it appears to be one continuous line with curves
instead of angles.
To undo the process choose either the Undo Smooth command or on the OBJECTS menu,
click UNSMOOTH.
Both the Smooth and Unsmooth command can be used only on polylines. A polyline is a line
drawn with the Polyline tool. Smooth and Unsmooth do not work with objects drawn with the Line
tool. If you attempt to smooth or unsmooth any object besides a polyline, MapInfo Professional
displays a warning message.
238
MI_UG.PDF
These two files are associated through a field called MI_REFNUM, which contains a reference
number. A segment with a reference number 23 in SF_STRT1 will be associated with the name in
SF_STRT2 that has the same reference number.
The other fields in the segments file are:
In either case the basic idea is that you have to add a new record to the segments file and
associate that record to the name file through the reference number. Assume we are working
in the Washington D.C. files; the procedure is the same for any StreetPro file.
1. On the FILE menu, click OPEN to open the DCWASHS, DC_STRTS, AND DC_ZIP files.
2. Choose Layer Control from the Map menu. Make the DCWASH layer Editable and the
DC_STRTS layer Selectable.
3. Using the FIND command or the Info tool, locate the street you want to edit.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
239
MI_UG.PDF
4. Click the street with the Info tool. Scroll through the Info window until you locate the
MI_REFNUM (MapInfo Professional reference number) field. Make a note of that number.
5. Go to the DCWASHS layer in the Map window and draw the new segment. By setting the
Snap to Node mode, MapInfo Professional will guide you to connect the node from the
existing street with the node from the new segment.
6. Click the new segment with the Info tool. Type the appropriate textual information, address
ranges, street type, and MapInfo Professional reference number.
7. Repeat the process for each additional new segment.
Renaming a Street
If you want to rename a street, simply change its name in the name file, which is the S2 file in
StreetPro. Note that changing a name in that way affects all segments that reference it.
For instance, if you want to change the name of Broadway in one town, you have to make sure
there arent other towns in the county that also have a Broadway. If there are, then you have to add
the new street name to the names file and give it a reference number. You would then go into the
segments file and give the new reference number to those segments you want to change.
If you want to rename only a part of the street, you have to add a new record to the names file,
give that record a new reference number, and then assign that new reference number to the
appropriate segments in the segments file.
How do you find those segments? One way would be to call up a Map window of the town and
select the segments using the Select tool. Those segment records will then be highlighted in the
Browser, where you can change their reference number.
240
MI_UG.PDF
241
MI_UG.PDF
This chapter presents the ins and outs of selecting records from tables. As you use MapInfo Professional
you will find yourself selecting records quite often. This chapter covers an overview of selecting and
querying methods using tools from the Main toolbar.
In this Chapter:
For example, you have a basket of fruit. You want to organize the fruit into different categories,
based on one or more variables:
Put all the citrus fruit into one group (oranges, lemons, grapefruit)
Put all the fruit that begins with a vowel into one group (oranges, apples, apricots)
There are many different ways that you could group the fruit. Some fruit would fall into more than
one category (oranges are citrus fruit and also begin with a vowel). You could also use more than
one variable to group your fruit put all the citrus fruit that begins with a vowel into one group.
MapInfo Professional can retrieve information or even individual records from within your data. We
refer to the record or records that are retrieved this way as selections. A selection is a subset of
data that has been collected based on one or more variables.
For example, you have a table of customer records. You could create a subset of all customers
who live within a 50 mile radius of Prague. Or, you could create a subset of all customers who
purchased over $1000 of merchandise. Or, you could create a subset of all customers whose last
name begins with the letter B.
The statements above used to create these subsets are known as queries. A query is just another
word for a question which of my customers spent more than $1,000? Which of my customers
lives within 50 miles of Prague?
As with the fruit example, there are many different ways to group your data. Some data records will
obviously fall into more than one category. You could also use more than one variable to group
your data. Which of my customers lives within 50 miles of Prague and purchased over $1000 of
merchandise?
243
MI_UG.PDF
This section gives you some examples and some practical applications of selecting in MapInfo
Professional.
Characteristics of Selections
Selections are temporary tables. When you make a selection, MapInfo Professional creates this
temporary table (called a selection) to store the records youve selected.
You can perform many of the tasks with a selection table that you can perform with a permanent
(base) table such as:
View it in a Browser, a Map window (if it has graphic objects), a Graph or a Layout window.
Cut and copy it into the clipboard and paste it into another table, or even into another
application.
Use it to edit a table. If you want to edit only certain records in a table, you can get those
records into a selection and then edit that selection.
To convert selections into permanent tables, on the FILE menu, click SAVE COPY AS. Once youve
saved the temporary selection table as a permanent table, you can treat the new table like any
other table.
Selection tables are totally dependent on the table from which they were created. If you close a
base table, all associated selection tables are deleted.
Selecting from the screen: Select tool, Radius Select tool, Boundary Select tool,
Polygon Select tool, Marquee Select tool, Invert Selection tool, Select All command. To
select records with the tools, click or encircle the associated graphic objects. To select
records from a layer at the same time, on the QUERY menu, click SELECT ALL.
Selecting with queries: Select, SQL Select. When you select records with either of these
methods, you create a logical expression that MapInfo Professional uses to select the
records. For example, the expression SALES > 20000 means that MapInfo Professional
will select only those records with sales higher than $20,000. We discuss Select and SQL
Select in more detail in Using Select to Create Queries on page 253 and Using SQL
Select to Query Data on page 256).
MapInfo Professional 7.5
244
MI_UG.PDF
Selecting Tools
MapInfo Professional includes several tools on the Main toolbar to allow you to choose records for
further viewing and analysis, including:
Select tool
245
MI_UG.PDF
Hold down the mouse button and drag the object to its new location
Press the UP, DOWN, LEFT and RIGHT Arrow keys to move the selected objects 1
screen pixel in the corresponding direction.
If you press the SHIFT key when the arrow key is selected, the object will move 10 pixels.
Since the moves are made in screen pixels, the zoom level affects how far the object is
moved.
246
MI_UG.PDF
You can rotate Lines, Polylines, Polygons, MultiPoints, Collections, Arcs, Ellipses,
Rectangles, Round Rectangles. You cannot rotate points.
247
MI_UG.PDF
5. When you have the desired radius release the mouse button. MapInfo Professional
highlights all map objects that fall within that circle.
6. To see a list of all the records that fall within that circle, choose New Browser Window from
the Window menu. Choose Selection from the list of tables. MapInfo Professional creates
a Browser of the new selection table.
248
MI_UG.PDF
249
MI_UG.PDF
To find a point in a polygon (perform a polygon search), two layers must be Selectable: the layer
containing the objects you are selecting, and the layer containing the boundary you want to use in
selecting those objects.
To cancel the selection of one object or record from a group of selected objects or records, hold
down the SHIFT key and click the object or record with the Select tool. When you click it, the
selection is cancelled.
To cancel the selection of all selected objects, you can either click the Map window where there
are no objects or choose the UNSELECT ALL command from the Query menu.
In the case of Select, you can pose a question of a single table. For example,
250
MI_UG.PDF
In the case of SQL Select, you can ask your question from one or several table(s) of information
and perform these tasks:
Derive new columns columns that calculate new values based on the contents of your
existing columns.
Aggregate your data so that you see only a listing of subtotals instead of seeing your
entire table.
Show only postal code regions where the average household income is above $65,000.
Show only postal code regions where the median age is 42.
Show only the postal code regions where the household income is above $65,000 and the
median age is 42.
When you are working in a Browser, MapInfo Professional highlights the records meeting the
criteria of the query. When you are working in a Map window, the graphic objects of the chosen
records are highlighted. When you are working in both windows, the objects in both are
highlighted. In all cases, MapInfo Professional automatically creates a working table called
Selection that contains the results of the query. You can browse, map, or graph this table like any
other table. The table can also be saved as a separate table with SAVE COPY AS.
Creating Expressions
To perform a Select query, you must create an expression. An expression is a logical statement
that is used to ask your question. For example, you have a table of apartments for rent. If you want
to create a temporary table of all apartments that cost less than $800 a month, you could use the
expression:
where RENT is the name of a numeric column that contains the per month rent rate.
MapInfo Professional searches the apartment table for all records that satisfy this condition and
puts those records in a temporary table that you can map, browse, graph or carry out additional
queries.
251
MI_UG.PDF
You can also perform mathematical operations on your data. For example, you want to create a
temporary table of all apartments that have a total cost of less than $800. Total cost is equal to the
sum of the rent and the monthly utilities.
You could use the expression:
You are telling MapInfo Professional to add the number in the RENT column and the number in the
UTILITIES column and then compare that number to 800.
There are two ways of creating an expression. The first method is to type in the expression
directly. When you are creating very simple expressions, this method is usually faster. The second
method is to press the ASSIST button in the Select dialog box and build your expression using the
pop ups in the Expression dialog box. This method is particularly useful when you are just learning
how to build expressions or when you are building very complex expressions.
The Expression dialog box gives you three drop-down lists that you can use to build your
expression: columns, operators, and functions.
Columns
This pop up lists every column in the table from which you are selecting. If the table contains
derived columns from previous queries, those columns will also be listed.
Operators
This pop up contains mathematical and logical operation symbols. The mathematical operators in
this pop up include addition, subtraction, multiplication, division, greater than, less than, and equal
signs. You can use these symbols to create mathematical formulas.
For example, from your table of sales representatives you want to select those sales
representatives who, on the average, gross more than $2000 per month. Gross sales is computed
by adding together sales and commission.
You have two columns in your table: TOTAL_SALES, which is total sales for the year for each
representative and COMMISSION, which is total commission for the year for each representative.
You could build the following expression:
This expression tells MapInfo Professional to add the number in the TOTAL_SALES column with
the number in the COMMISSION column. However, this gives you gross sales for the year. We
want average gross sales for the month. Therefore, we divide the sum by 12, which will give us a
monthly average. We then compare that figure with 2000.
252
MI_UG.PDF
The Operators pop up also includes logical operators conjunctions AND, NOT, OR and LIKE. The
LIKE operator can be used with two wildcard characters: % and _. The % character matches
zero or more characters. The _ character matches only one character.
Functions
This pop up contains mathematical functions that take one or more parameters and return a value.
You use functions to perform basic mathematical functions on the data in that column. For
example:
abs(<number>)
This expression tells MapInfo Professional to select all records that have an average difference
less than -10 or greater than +10. However, she could also create the following expression:
abs(AVG_DIFF) > 10
This expression tells MapInfo Professional to select all records where the absolute value of the
average difference is greater than ten.
The Functions pop up contains many other functions, including area, perimeter, sin, cos, and daterelated functions. For a complete list of functions, see Creating Expressions in Chapter 15 on
page 477.
Verify
This button reviews the expression you have created and verifies that it is valid. This is particularly
helpful if you are new to writing expressions.
253
MI_UG.PDF
MapInfo Professional names the table Query1. It will name the next temporary selection table
Query2. You can override MapInfo Professionals default name and give the selection a descriptive
name. Type the new name into the Store Results in Table box. The table can also be saved as a
separate table with Save Copy As.
Example: Selecting
MapInfo Professional makes finding information and locations easy. You can use the Select
feature to create subset databases of your information. As an example, we will use the sample
WORLD table to select particular countries with a literacy rate greater than 90%.
1. Open the WORLD.tab table.
2. On the QUERY menu, click SELECT to display the Select dialog box.
SELECT RECORDS FROM TABLE From the SELECT RECORDS FROM TABLE drop-down
list, choose WORLD.
ASSIST Click the ASSIST button to display the Expression dialog box.
254
MI_UG.PDF
Many of the queries on the following pages can be done either by using the SQL SELECT
command or through the simpler Select command. Because SQL Select is more versatile
and more commonly used, the SQL Select dialog box is used in the following examples.
255
MI_UG.PDF
3. On the FILE menu, click SAVE COPY AS and save the Selection table. The table can be
saved with any filename.
256
MI_UG.PDF
POPULATION / AREA
While the WORLD table has a population column (pop_1994), it does not include a column for
country area. However, since the WORLD table has graphic objects associated with the records,
MapInfo Professional can compute the total area for each country.
Open the WORLD.tab table, and maximize its display by clicking the windows maximize button.
On the QUERY menu, click SQL SELECT to display the SQL Select dialog box.
To complete the SQL Select dialog box, do the following:
1. In the From Tables box, choose WORLD from the Tables drop-down list.
You can specify more than one table in an SQL statement. This example uses only one
table, WORLD.
2. You should fill in the From Table box before you fill in the Select Columns box. MapInfo
Professional uses the tables in the From Tables box to generate the list of columns in the
Columns drop-down list.
3. Place your cursor in the Select Columns box and delete the asterisk (*). In this example,
we will specify a list of columns to be included in the resulting query table, instead of
including all columns.
Note:
An asterisk (*) in the Select Columns box means by default that all columns would
be queried.
Remember, the query table is the temporary table that MapInfo Professional creates to
store the results of the query.
4. Select COUNTRY from the Columns drop-down list.
5. Select POP_1994 from the Columns drop-down list.
Now, we need to compute population density. Remember, population density is computed
by dividing population by area. There is no Area column in the table. However, there is a
function, Area, which will compute the area of any mappable object. Since the WORLD
table is mappable, MapInfo Professional can compute the area of each country and,
therefore, the population density of each country.
6. Select the division sign (/) from the Operators list.
7. Select AREA from the Functions popup.
This creates a derived column. A derived column is a column that contains the results of
calculations performed on another column or columns. When MapInfo Professional
creates the query table, it will include two columns: the COUNTRY column and the
POP_1994/AREA(OBJ, SQ MI) COLUMN, which is our population density column. MapInfo
Professional includes a units statement with all geographic functions. If you wanted
MapInfo Professional to return the area in square kilometers, you would change sq mi to
sq km.
Now, we need to build an expression that selects only those countries whose population
density is over 500 people per square mile.
8. Tab to the Where Condition box and select POP_1994 from the Columns drop-down list.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
257
MI_UG.PDF
9. Select the division sign (/) from the Operators drop-down list.
10. Select AREA from the Functions pop up.
11. Select the greater than sign (>) from the Operators drop-down list.
12. Type the number 500.
We have now built the expression Select all countries whose population density
(pop_1994/Area(obj, sq mi)) is more than (>) 500 people per square mile.
13. Leave the Group by Columns box blank.
14. Tab to the Order by Columns box and select COUNTRY from the Columns list.
The Order by Columns box allows you to specify the order the records in the query table
will display. By selecting Country, MapInfo Professional will list the records in alphabetical
order, according to country name.
15. Tab to the Into Table Named box and type DENSITY.
By default, MapInfo Professional names the query table Query1. Subsequent query tables
will be named Query2, Query3, and so on. You can change the name of the query table by
typing in a new table name in the Into Table Named box. MapInfo Professional will name
the query table DENSITY.
16. Click VERIFY. MapInfo Professional checks the syntax of your SQL statement. If there are
any errors in your statement, MapInfo Professional gives you an error message telling you
what the error is and which box contains the error.
17. Select the Browse Results check box to create a Browser of the query table. If you do not
select Browse Results, MapInfo Professional still creates the temporary query table but
doesnt display it. If you wanted to display the table after the face, choose the Browse
option in the Window menu and select DENSITY from the drop-down list.
258
MI_UG.PDF
This creates a new table, HIDENSTY, that contains only those states with a relatively high
population density (population divided by total area). The asterisk (*) in the Select
Columns box transfers all of the columns in the STATES table to the HIDENSTY table.
3. On the FILE menu, click SAVE COPY AS and save the Selection table. The table can be
saved with any filename.
259
MI_UG.PDF
Saving Queries
Any query created using the Select or SQL Select commands can be saved as an MapInfo
Professional query table. Query tables consist of a .tab file and a .QRY file. After you have
executed a Select or SQL Select statement, on the FILE menu, click SAVE QUERY to save the query
as a table. When you open this table, the tables on which the query is based are re-opened and
the query is re-executed.
Note:
To save queries to a workspace, the Save Queries in Workspaces check box must be
selected in the Startup preferences. MapInfo Professional selects this check box by
default.
Saving a Template
After you have finished writing your Select or SQL Select query, you can save the query as a
template.
To save a query as a template:
1. In the Select or SQL Select dialog boxes, click the SAVE TEMPLATe button to save the
query to a template, or query file. The Save Dialog to Query File displays.
2. Give the query file a name, select a folder, and click SAVE. Query files are saved with a
.QRY extension and are saved in the directory specified in the Directories preferences.
Note:
The query does not need to be complete or syntactically correct to save it to a template.
Loading a Template
You can load any saved query template.
To load a query template:
1. In the Select or SQL Select dialog boxes, lick the LOAD TEMPLATE button. The Load Dialog
From Query File dialog box displays. It lists the .QRY files.
2. Select the .QRY file you want to use, and click OPEN. The Select or SQL Select dialog box
displays with the values from the template already filled in. Simply execute your query to
create the query browser.
260
MI_UG.PDF
Deriving Columns
A derived column is a column in a query table whose contents are created by applying an
expression to the values of columns already existing in some base table. In the example above,
population density was a derived column.
By default, the Select Columns box contains an asterisk (*), indicating that all of the columns in the
base table are to be included in the query table. If you dont want all of those columns, you should
delete the asterisk and list only those columns that you want to use.
You arent limited to creating one derived column. You can create as many derived columns as you
want. Note that the more derived columns you create, the longer it will take MapInfo Professional
to execute the query.
You can also created derived columns based on the aggregate functions count, sum, avg, wtavg,
max, and min. For example:
sum(Population).
sum(Area(obj), sq mi).
We can rename that column so that it is more descriptive. To rename the column, add the new
name to the Select Columns box when you are listing the columns. The alias must follow the
expression. It must also be separated from the expression by a blank space and enclosed in
quotes. For example:
When MapInfo Professional creates the temporary query table, the population density column will
now be named POP_DENSITY.
You can use aliases to rename any column in a table, not just derived columns. For example, if
each country in your table is a separate sales territory for your corporation, you might want to
rename the Country column TERRITORY. The procedure is identical:
261
MI_UG.PDF
In this example, you have a table of world population statistics (WORLD). You would like to create
a table that shows the population density of the entire world. Use the following formula:
While the WORLD table does not have total population or total area columns, we can derive them
by applying the sum() aggregate function to the Population column and the Area function. We will
do this in our first query.
1. Open the WORLD table, and maximize its display.
2. On the QUERY menu, click SQL SELECT. The SQL Select dialog box displays.
3. From the SQL Select dialog box, do the following:
In the From Tables Box, choose WORLD from the Tables drop-down list and delete
the * from the Select Columns box
Select SUM from the Aggregates drop-down list
Select POPULATION from the Columns drop-down list. After you select Population, the
cursor will be on the inside of the end parenthesis [)]. Move it to the outside with the
RIGHT ARROW key.
Note:
Press the SPACEBAR once and type the column alias TOTAL_POP. Remember, an alias
has to be separated from its expression by a blank space.
Note:
Sum(Area) will create a derived column that will compute the total area.
Note:
Note:
Sum (Population) will create a derived column that will compute the total world
population.
The Sum(Area(obj, sq mi)) column will appear in the results table as Total_Area.
262
MI_UG.PDF
6. Click OK.
MapInfo Professional produces a query table named TOT_POP_AREA containing two
columns. The first column shows a value for the total population and the second column
shows a return value for the total area.
Now that we have the total population and total area, we can compute the worlds
population density by performing an SQL Select on the TOT_POP_AREA table we just
created. In this SQL Select, we will divide the total population by the total area.
1. On the QUERY menu, click SQL SELECT to display the SQL Select dialog box.
2. Fill in the dialog box as follows:
In the From Tables Box, choose TOTAL_POP_AREA from the Tables drop-down list.
Tab to the Select Columns box and delete the information from our last query.
Select TOTAL_POP from the Columns drop-down list. Remember, Total_Pop is the
column we created from our last query.
Notice that when you select Total_Pop, COL1 appears in the Select Columns field.
This is the column number of that field. When choosing derived columns from a
previous query, MapInfo Professional uses the column number instead of the name.
Columns can be referred to by name or number, where the number designates the
order the column has in the Select Columns box. COL1 and COL2 refer to the first and
second columns, respectively.
3. Select the division sign (/) from the Operators drop-down list.
4. Select TOTAL_AREA from the Columns drop-down list. COL2 displays in the Select
Columns field.
5. Leave Where Condition, Group By Columns, and Order By Columns blank.
6. Tab to the Into Table Named box and type WORLD_DENSITY as the name of this table.
7. Click VERIFY. Click OK.
8. Select the Browse Results check box.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
263
MI_UG.PDF
9. Click OK.
MapInfo Professional produces a query table named WORLD_DENSITY that will return a
value for the population density in people per square mile for the entire world.
Aggregating Data
When you aggregate data, you perform a mathematical operation on all of a columns values in all
of the records in your table. Unlike the Select command, which only allows you to perform
mathematical functions on individual records, SQL allows you to aggregate (or summarize) data
across records.
MapInfo Professional looks for each unique set of data values in the specified column or columns
and creates one row for each such unique set. When you aggregate data, you need to specify:
For example, you have a table of sales representatives and their sales figures for the past three
months:
SALES_REP
MONTH
SALES
John
May
1200
Cathy
May
900
Julie
May
1100
John
June
900
264
MI_UG.PDF
SALES_REP
MONTH
SALES
Cathy
June
1400
Julie
June
600
John
July
1200
Cathy
July
700
Julie
July
1000
MapInfo Professional could also compute the total sales for each representative by specifying in
the SQL Select dialog box:
sum(SALES)
John
3300
Cathy
3000
Julie
2700
or MapInfo Professional could compute the average sales for each representative:
avg(SALES)
John
1100
Cathy
1000
Julie
900
or MapInfo Professional could compute the total sales for each month:
sum(SALES)
May
3200
June
2900
July
2900
Count(*): counts the number of records in a group. It takes * as its argument because it
applies to the record as a whole, and not to any particular field in the record.
MapInfo Professional 7.5
265
MI_UG.PDF
Sum (expression): calculates the sum of the values in <expression> for all the records in a
group.
Average (expression): calculates the average of the values in <expression> for all the
records in a group.
WtAvg (expression): calculates the weighted average of the values in <expression> for all
the records in a group.
Max (expression): finds the highest value in <expression> for all records in a group.
Min (expression): finds the lowest value in <expression> for all records in a group.
Select Columns: * (an asterisk indicates include all columns in the query table)
The two columns that you want to match do not have to have the same name. For example, you
have a table of international customers (Int_Cust) that contains a sales territory column
(TERRITORY). This column contains continent names, since your company breaks up its sales
territories according to continent. If you wanted to temporarily join the two tables:
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
266
MI_UG.PDF
Select Columns: *
The Continent Count(*) column will appear in the results table as COUNTRIES.
Sum (Population) will create a derived column that will compute the total world
population.
7. Press the SPACEBAR once and type the column alias Total_Pop. The Sum(Population)
column will appear in the results table as Total_Pop.
8. Select SUM from the Aggregates drop-down list.
9. Select AREA from the Functions drop-down list. After you select Area, the cursor will be on
the inside of the end parenthesis [)]. Move it to the outside with the RIGHT Arrow key.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
267
MI_UG.PDF
Sum(Area) will create a derived column that will compute the total area.
10. Press the SPACEBAR once and type a column alias Total_Area.
Note:
The Sum(Area(obj, sq mi)) column will appear in the results table as Total_Area.
11. In the Group by Columns box, choose CONTINENT from the Columns drop-down list.
12. In the Order by Columns box, choose CONTINENT from the Columns drop-down list.
13. In the Into Table Named box, type POPULATION as the name for this table.
14. The Count(*) counts all the records in the table. However, since we are grouping the
countries according to continent, MapInfo Professional reports the number of countries in
each continent and puts it in at a column called COUNTRIES (the alias).
However, keep in mind that when you switch the order of geographic operands, the geographic
operator must also change. The following statements will produce identical results:
Select * from states, cities where states.obj contains cities.obj
Select * from states, cities where cities.obj within states.obj
268
MI_UG.PDF
Order of Clauses
The order in which Join clauses are performed does not matter. For example, each of the following
are valid clauses:
Select * from Us_custg,States,City_125
where States.state = City_125.state and States.state = Us_custg.state and
Us_custg.order_amt > 10000
Select * from Us_custg,States,City_125
where States.state = City_125.state and States.state = City_125.state and
Us_custg.order_amt > 10000
Select * from Us_custg,States,City_125
where Us_custg.state = States.state and Us_custg.order_amt > 10000 and
States.state = City_125.state
Error Handling
If an invalid Where condition that uses an OR as a logical operator is detected, MapInfo
Professional will indicate an error has occurred. Usually this error will display whenever MapInfo
Professional cannot find a join between two tables. For example, if you have specified the
following incorrect condition:
Select * from A,B where A.field1 = B.field1
or A.field1 = B.field2
269
MI_UG.PDF
2. Click OK. Your selection appears as a query browser. Save this query to a base table.
3. On the FILE menu, click SAVE COPY AS. The Save Copy As dialog box displays. Choose
the appropriate directory for your file and name it RESULT.tab. Click SAVE.
4. On the FILE menu, click OPEN TABLE and open the RESULT table. This table includes all of
the records from both tables where there was a match.
5. Select the records from the APARTMNTS table that had no match in the tenants table. On
the QUERY menu, click SQL SELECT and set up the following SQL query:
The resulting query table is a list of all of the apartments that are not in the RESULT table.
To include these records in your RESULT table, you must append them.
6. On the TABLE menu, click APPEND ROWS TO TABLE. Append the last query table to the
RESULT table. This will append the list of vacant apartments to the list of occupied
apartments.
270
MI_UG.PDF
In the above example, if the InStr function finds the word Main anywhere in the STREET column
of the Points table, it will return a value greater than zero (the position of the first letter of Main in
the string being searched). The syntax of the INSTR function is as follows:
INSTR (position, string, substring)
where:
position is the starting position of the search
string is the text string or field containing the string to be searched
substring is the text string that you are searching for
For example, to find the position of the word test in a given text string, the InStr function will look
something like this:
INSTR(1,This is a test of the Instr function ,test)
When this statement is executed, the value 11 will be returned.
Note:
If the string that you are searching for does not exist in the larger string, the value 0 will be
returned.
271
MI_UG.PDF
Note:
2. This SQL statement produces a query of all records in the table STATE1.tab that do not
exist in CITY125.tab.
Note:
3. To select records that have an even record number, on the QUERY menu, click SQL
SELECT.
4. Fill in the SQL Select dialog box:
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
272
MI_UG.PDF
Note:
5. Click OK.
273
MI_UG.PDF
Substitute the name of your data column for ID_Num and the name of your table for
EMPLOYEE. The number 1 in the Group By Columns box will group the row by ID_Num
(the first column). The 2 Desc in the Order by Columns box will arrange the records in
descending order based on the values in the count(*) field (the second column).
This SQL Select statement returns a query table with two columns. The first column
contains every identification number possessed by at least one employee. The second
column contains the number of employees that have that identification number. The rows
are sorted by the number of employees that have each id number (i.e., the count).
2. On the QUERY menu, click SQL SELECT and fill in the dialog box.
Also, change EMPLOYEE to the name of your table and ID_Num to the name of your data
column.
In the example, the SQL statement returns a query table containing all of the rows from
EMPLOYEE with duplicated data column values. The where condition selects all rows
from EMPLOYEE that have an identification number that is the same as one of the ID
numbers in the Count_By_ID query table. This sub-select finds all identification numbers
that occur more than once.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
274
MI_UG.PDF
3. Click OK. The resulting query table contains last names and first names plus a new
column called DISTANCE which records the distance between the fixed location (101.697209, 36.050036) and the point associated with each row of the table.
4. To save the results in a permanent table, on the FILE menu, click SAVE COPY AS, and save
the CUSTDIST table.
275
MI_UG.PDF
This will create a new table called HIGHWAYS that contains all the primary roads
contained in the StreetPro NYSCHES table.
3. On the FILE menu, click SAVE COPY AS and save the HIGHWAYS table. The HIGHWAYS
table can now be added to your map as a separate layer.
Note:
The above SQL Select statement selects all of the primary roads as defined by
the CFCC codes. To determine the class of the streets that you want to select, use
the Info tool on a few of the streets that you want to select, or refer to your
StreetPro documentation for explanations of the classes.
This dialog box allows the user to enter queries much more complex than the wizard allows using
the standard DBMS SQL syntax.
Use the features in this dialog box, review these notes:
To cut and paste from the clipboard, use <CTRL X> to cut, <CTRL C> to copy, and <CTRL
V> to paste.
MapInfo Professional 7.5
276
MI_UG.PDF
Click CANCEL to cancel the query. MapInfo Professional returns you to the step in the
wizard where you originally clicked the Expert button
Click LOAD to load a SQL statement that has been saved in a file. This button activates the
Load SQL Query dialog box, which provides you with access to existing files containing
SQL statements (*.SQL files). When you load an SQL file, its format will be preserved.
Click SAVE to save the SQL statement in a file for later use. This button activates the Save
SQL Query dialog box, which saves the newly constructed SQL statements, or
modifications to existing statements. When you save an SQL file, its format will be
preserved. Once saved, the SQL statement appears in the list of available *.SQL files in the
Load SQL Query dialog box.
Click LAST QUERY to load the last query that was executed in this MapInfo Professional
session.
277
MI_UG.PDF
Thematic mapping is a powerful way to analyze and visualize your data. You give graphic form to your data
so that you can see it on a map. Patterns and trends that are almost impossible to detect in lists of data
reveal themselves clearly when you use thematic shading to display the data on a map.
You can create thematic maps with MapInfo Professional using the following methods: ranges of values,
graduated symbols, dot density, individual values, bar and pie charts and continuous grid. There are also
several variations on and options within these methods, such as bivariate thematic mapping and inflection
point, that give you even more ways to analyze your data.
In this Chapter:
MapInfo in Action
Since you have all the tools you need to make effective and useful maps, it is time to talk about
what makes a map effective and useful. Whatever you need your map to say, whether it is to
convey information, calculate distances between health care providers and their patients, or get a
count of the number of customers that live within a given radius of an outlet location, MapInfo
Professional can help you do that. By making selections from your table, you can extract
information from sets and subsets of your data or see patterns and distributions, getting answers
to such questions as: Which of my customers bought more than $5000 of equipment? Which of my
customers is located within a 200 mile radius of my warehouse? Which of my customers bought
more than $5000 of equipment and is located within a 200 mile radius of my warehouse? For more
on selecting, see Selecting your Data in MapInfo Professional in Chapter 8 on page 243, and
Querying Your Data in MapInfo Professional in Chapter 8 on page 250.
MapInfo Professional refers to this grouping of like information as thematic mapping.
Using MapInfo Professional, you can quickly and easily bring this information into focus and make
informed decisions about which radio stations to use to advertise your tire service.
In this example, you need to display the service centers on a map in relation to the radio stations,
looking for the stations that reach the areas where your centers are located.
To begin building your map, you would open the MapInfo Professional tables you will need to give
your map context: the state, county, and street maps. On this background you create the service
center table and geocode it by matching the street addresses of the service centers to the street
locations in your StreetPro map. A few more keystrokes add the tire centers to the map, and your
279
MI_UG.PDF
data suddenly leaps into view. Blue stars tell you at a glance the distribution of your tire centers
across the state. You use the same method to put the red circles representing the radio stations on
the map.
Using your file of county demographics, you ask MapInfo Professional to shade the counties
where most of your target market (males 35 and older) lives.
.
Consulting your list of radio transmission ranges, select the Buffer command and create a buffer
circle around each radio station, the circle representing each stations broadcast area. Just by
looking you can tell which broadcast areas include the highest concentration of tire service centers
or you can ask MapInfo Professional to give you an exact count of the number of tire centers within
each area. Tell MapInfo Professional to shade the buffer circles in order according to the number
of service centers that fall within each circle. Shade the circles with the most service centers red.
.
With the radius of each stations transmission range marked, you can see which stations
broadcast in areas where your target market is (the shaded counties). But how well do these
stations penetrate that market? Which stations will reach the people who are most likely to use
your service centers?
280
MI_UG.PDF
Join the demographic information supplied by each station to the broadcast area shown on your
map. Now you can click any point within that area and see all the demographic information: the
age and income distributions of the stations listeners, and the times of day when particular age
and income groups are tuned in, for example.
Even better, ask MapInfo Professional to cross-check the radio stations that reach your best
customers with the areas where that population is highest. Fill the broadcast areas of those
stations with crosshatching.
Look at the map and choose the stations that reach your best customers in the areas where you
have the most locations. Your best bets are green-shaded circles in crosshatched areas. Now you
know where your target customers are. Click the Info tool on these areas to see the time of day
your target market is listening. Now you know when to purchase air time.
You can save this map and use it for future planning. For example, it can help you spot a good
location for a new tire center or coordinate radio advertising with direct marketing. Do you want to
increase advertising in key areas of the state?
Use the MapInfo Professional Layout window to prepare a visually exciting and informative
presentation that features this map along with graphs and tables.
As you become better acquainted with MapInfo Professional, you will find that its applications are
limited only by your imagination.
281
MI_UG.PDF
282
MI_UG.PDF
If the data is in the same table on which you are basing the map, choose the desired field directly
in the Field list box in the Thematic Step 2 of 3 dialog box.
If the data is in another table, you must first bring the data into the table on which youre basing the
thematic map. This requires creating a temporary column using Update Column.
Each situation is described in the next few sections.
Graduated symbol thematic maps do not require that your base map contain point objects.
Instead, graduated symbol objects are built regardless of the map object type. Therefore,
MapInfo Professional 7.5
283
MI_UG.PDF
even if your base map contains region or line objects, you will still be able to create a
graduated symbols map.
You can have multiple thematic layers per base map layer. In some cases, you do not
have to add another base layer to the map to create another thematic layer. You can
display more than one thematic layer at a time, as well as perform bivariate thematic
mapping.
You can use Layer Control to turn the display on or off for a given thematic layer. The layer
it is based on can continue to display. You can also set individual zoom layers on thematic
maps.
284
MI_UG.PDF
Thematic layers are displayed in the list with this naming convention:
<Thematic type> with/by <variable-list>
The type of thematic map is noted first, followed by the list of variables used to create the map. For
example, a pie thematic layer that uses commuting data is listed this way:
Pies with ComAlone, ComCarpool...
The variable list is truncated if there is not enough room to display each variable used in your
thematic analysis.
Ranges
Bar Charts
Pie Charts
Granulated
Dot Density
Individual
Grid
Each has its own purpose and unique attributes. For example, using Ranges of Values, you could
thematically shade a map of the world according to population density. You could shade the
countries with graduated shades of red, the darkest red representing the most densely populated
countries, and the palest red representing the least densely populated countries. At a glance you
can see the distribution of the worlds population.
You are not limited to representing numeric values with thematic mapping. Nominal values also
may be shaded thematically. For example, you have a table of underground cables. Those cables
that havent been serviced in the past six months are labeled priority status. Using Individual
Values, you can shade the cables according to their repair status. All records with the same value
will be shaded the same.
See the individual sections later in this chapter for more information on each type of thematic map.
The following sections offer general information on the methods available for creating thematic
maps. For more information on any of these methods and options, see Thematic Mapping in the
Online Help.
285
MI_UG.PDF
Individual Values maps show points, lines, or boundaries that are shaded by individual values
contained in a particular field. You can use both numerical and nominal values in individual values
maps. MapInfo Professional gives each unique value its own color or symbol. When an individual
values map uses symbol types, the symbols are taken from the base table.
For example, a soft drink distributor maintains a table of the supermarkets that buy soft drinks from
him. Each supermarket sells the distributors brand of soft drink for a different price. If the
distributor shades the supermarket points by price, using individual values, all stores that sell the
soft drink for 49 cents are shaded one color, all stores that sell the soft drink for 51 cents are
shaded another color, and so on. Each unique value is assigned its own color. The distributor is
able to see the price distribution among the supermarkets and can determine where he should
increase his sales volume, based on the price.
If you are shading your points, lines or boundaries using nominal data, you can shade only by
individual values. Nominal data is either non-numerical data (name, type of cuisine served, or
brand of automobile sold) or numeric data where the numbers represent non-numeric data like an
ID number. Dates are considered numeric data and can be used in both ranged and individual
values maps.
For example, you have the results from a consumer survey. One question on the survey reads
What is your favorite Sunday afternoon activity? The possible responses are:
1. Sleeping
2. Watching TV
3. Taking a drive
4. Reading
5. Playing or watching sports
6. Visiting museums or art galleries
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
286
MI_UG.PDF
Ranged Maps
When you create a ranged thematic map, MapInfo Professional groups all records into ranges and
assigns each records object the color, symbol, or line for its corresponding range. For example,
you have a table of weather stations for your television viewing area, and you want to shade the
locations according to their reported snowfall amounts.
With the Ranged map feature, MapInfo Professional groups the snowfall amounts into ranges. For
instance, all weather stations that received between zero and five inches of snowfall in the past
month are grouped into one range. Stations receiving between five and 10 inches are in a separate
range. Sites that received between 10 and 15 inches are in a third range, while those stations
reporting greater than 15 inch snowfall amounts are in a fourth range.
All records are assigned to a range and then assigned a color based on that range. For instance,
the weather stations reporting the 15 plus inches of snow are shaded red. The other ranges are
shaded in lighter shades of red with the last range in gray (default colors). When you display the
map, the colors make it readily apparent which locations received the most and least snow
accumulation.
Ranges are also useful when the size of the region is not directly related to the magnitude of the
data values. In our population density example in this section, we see that countries that are small
in size can be very densely populated, and countries that are large in size may not be densely
populated. Differences like these are more readily apparent when the regions are shaded in this
manner.
287
MI_UG.PDF
5000
Andrea
7000
Penny
6000
Kyle
5500
Miguel
4500
Angela
7500
Linda
5000
Elroy
6000
Ben
100
Mark
7000
Ben and Miguel are grouped in the same range (since they have the two lowest values). This may
not produce the results you want since the value for Ben is so much lower than any of the other
values.
Equal Ranges divides records across ranges of equal size. For example, you have a field in your
table with data values ranging from 1 to 100. You want to create a thematic map with four equal
size ranges. MapInfo Professional produces ranges 125, 2550, 5075, and 75100. (Since
ranges use => and <=, they need to overlap.)
Keep in mind that MapInfo Professional may create ranges with no data records, depending on the
distribution of your data. For example, if you tell MapInfo Professional to shade the following
database according to Equal Ranges:
John
100
Andrea
90
Penny
Kyle
Miguel
Angela
92
Linda
95
Elroy
89
Ben
10
Mark
10
MapInfo Professional creates four ranges (125, 2550, 5075, and 75100). Notice, however,
that only two of those ranges (125 and 75100) actually contain records.
Natural Break and Quantile are two ways to show data that is not evenly distributed.
288
MI_UG.PDF
Natural Break creates ranges according to an algorithm that uses the average of each range to
distribute the data more evenly across the ranges. It distributes the values so that the average of
each range is as close as possible to each of the range values in that range. This ensures that the
ranges are well-represented by their averages, and that data values within each of the ranges are
fairly close together.
Quantiling enables you to build ranges that determine the distribution of a thematic variable
across a segment of your data. For example, you can quantile state population by urban
population to illustrate how urban population is distributed across the United States. Your legend
will not indicate that you have used Quantile to build your ranges. You can customize the legend
so that it shows which field you used to quantile the table.
When you create ranges using Standard Deviation, the middle range breaks at the mean of your
values, and the ranges above and below the middle range are one standard deviation above or
below the mean.
You can also define your own ranges using Custom.
289
MI_UG.PDF
Graduated symbol maps use symbols to represent different values. You can use graduated
symbols regardless of the type of map object with which you are working.
For instance, use graduated symbols to show the number of housing units by city. When you
select the graduated symbols option, MapInfo Professional varies the size of each symbol
according to the value in the sales order field. You can also represent how much interest each
customer has expressed in a given product by assigning a symbol whose size is proportional to
the customers interest.
Graduated symbols maps work best when you use numeric data. If you are working with a layer of
restaurants, it makes no sense to create graduated symbols based on the type of cuisine each
restaurant serves. However, graduated symbols are appropriate when you want to show the
number of hamburgers sold at 20 different fast food restaurants.
There are three attributes you can customize on a graduated symbols map: the color, type, and
size of the symbol. To change the symbols attributes in Thematic Step 3 of 3, choose CUSTOMIZE
SETTINGS and click the symbol icon in the Customize Graduated Symbols dialog box to access the
Symbol Style dialog box. The default symbol is a red circle.
290
MI_UG.PDF
In the Customize Graduated Symbols dialog box, the size of the symbol in the Symbol box is the
size for the value listed in the at Value box. All values between the high value and zero have
interpolated point sizes. If you want the symbols at the low end to be larger, increase the point
size.
You can also display symbols for negative data values. To change it, click Options in the
Customize Graduated Symbols dialog box. There is a separate symbol picker so that you can
make this symbol as distinct from the symbol for positive values as you want. When you click the
icon a different Symbol Style dialog box displays, enabling you to choose a different symbol type,
change the color or the size, or change any combination of the three attributes. The default symbol
for negative values is a blue circle, and all values between zero and the low value (a negative
number) also have interpolated point sizes.
291
MI_UG.PDF
Rensselaer
County
There are three customizing options for dot density maps. You can specify the value of one dot.
For example, you have a table of population statistics, broken down by county. There are 10,000
pre-school students in Rensselaer County, New York. If you display Rensselaer County according
to the number of pre-school students using the dot density method, each dot could represent 200
students. In that case, there would be 50 dots in Rensselaer County. You can specify the number
of units each dot represents using the Customize Dot Density Settings dialog box.
When you increase the value each dot represents, you decrease the number of dots that display
on the map. You could modify your dot density map so that one dot represents 400 students. In
that case, there would only be 25 dots in Rensselaer County.
A second option is to change the size of the dots according to your needs, either large or small. If
you are working with large populations, or large counts of something, make the dot size smaller so
that the distribution of dots is easier to see. Conversely, if your working with a small data set,
making the dot size larger might illustrate your analysis more clearly.
Note:
Distribution of dots is random within the region. If you shade states according to
population, the dots for New York are spread out throughout the state; they are not
concentrated in New York City, where the majority of the states population lives.
Thirdly, in the Customize Dot Density Settings dialog box, change the color of the dot to either red
or black to add more variety to the final map. You can create multiple dot density maps on the
same layer by varying these options.
292
MI_UG.PDF
For example, you have a table of country boundaries of Africa containing the urban and rural
populations, you can create a thematic map that displays a two-bar chart for each country: one bar
representing the rural population, and the other representing urban population. You can compare
the relative population, or you can examine several countries and compare one countrys
population growth over anothers. For best results, use no more than four to six bars per bar chart
in your analysis.
You can customize the color of each bar, create a frame around each chart, and fill the empty
space inside the frame with a pattern or color. In addition, you can change the bar charts
orientation, such as displaying horizontal bars instead of vertical (the default). You can also control
where to display the chart: over the objects centroid (the default) or any of eight other locations.
You can also change the type of bar chart. In our example, you can create a multi-bar chart, where
each thematic variable has its own bar, or a stacked bar chart with each thematic variable on top of
one another, or a graduated bar chart, where the bars are graduated in size based on some value.
You can also scale the bars in a multi-bar chart independently from one another. To show negative
values in a bar chart map, the bars extend in the opposite direction to the charts orientation. Note
that negative values do not display in stacked bar charts.
293
MI_UG.PDF
Both pie and bar charts are particularly useful for analyzing demographic data. For example, you
have a table of demographic information for the United States. Your table shows the populations of
several major demographic groups. Using pie charts, you can show the population of each
demographic group, and see what fraction of the pie it makes up in each pie. This enables you to
see the distribution of demographic groups on a per state basis, or across the entire United States.
You can also look at one demographic group and see how the population of the group varies in
different states. For best results, use no more than four to six pie wedges per pie chart in your
analysis.
You can customize the color of each pie wedge as well as the borders of the wedges and the
whole pie. You can also specify the angle at which you want to place the first pie wedge, and
whether the variables go in a clockwise or counterclockwise direction. Like bar charts, you can
also change the pies orientation. The default is to place the pie over the centroid of the object.
You can choose from graduated pies or half pies. Graduated pies will graduate the size of the pies
according to the sum of their components. With half pies your data will be distributed across half a
pie instead of a whole pie.
294
MI_UG.PDF
Double-click the themes legend frame within the legend window to display the dialog box.
When you are modifying a map, a quick way to change a number of settings at once is to change
the template of the current theme.
To merge a template into your current map:
1. On the MAP menu, click MODIFY THEMATIC MAP to display the Modify Thematic Map dialog
box.
2. In the Modify Thematic Map dialog box, click the MERGE button in the Templates group.
The Merge a Template into the Current Theme dialog box displays with a list of the same
type templates as your theme (all range of values templates, for example.)
3. Choose the new template and click OK to return to the Modify Thematic Map dialog box.
4. Click OK again to display the map with the new thematic template. The settings in this
template will now be applied to your theme.
The Merge feature is only available once you have created the thematic map.
295
MI_UG.PDF
To save individual categories in a theme template when creating a new thematic map or for an
existing thematic map, from the Modify Thematic Map dialog box press the SAVE AS button and
specify a template Name. Check the SAVE INDIVIDUAL VALUE CATEGORIES box and click OK. A
template is saved that can be used to apply the stored individual categories to a second table.
When you choose MAP menu and click CREATE THEMATIC MAP the template's name will appear in
the Template Name field of the Create Thematic Map - Step 1 of 3 dialog box.
3. Choose RANGES and select a template name from the list. This will be the style of the
thematic map you are creating. Click NEXT to continue. The Create Thematic Map Step 2
of 3 dialog box displays.
296
MI_UG.PDF
4. Choose STATES, since this is the table you want to shade and in the Field drop-down list,
choose JOIN. The Update Column for Thematic dialog box displays.
Table to Update is already set to STATES and Column to Update is automatically set to
Add New Temporary Column.
5. Select the CITY_125 in the Get Value From Table box. If that is the only other table open,
MapInfo Professional automatically displays its title in the list box.
Note:
When you create a temporary column for a thematic map, the field must be a
numeric field. This is true for all thematic maps except individual values.
Since in our example, we are looking for the percentage of the population living in urban
areas in the United States, we need to calculate the total of the CITY_125 population; that
is, we must calculate the total of the population of each city in a each state. We need to put
that sum into the temporary column.
6. In the Calculate box choose SUM. In the of box, choose TOT_POP.
To put the data from the CITY_125 table into the temporary column of the STATES table,
there must be a link between the two tables that MapInfo Professional can use to access
the data. MapInfo Professional can often make this link automatically. In this example,
both our tables have a State field.
7. Click JOIN to display the Specify Join dialog box.
297
MI_UG.PDF
When you choose Join in the Update Column for Thematic dialog box, you can see that
MapInfo Professional has already set up the Specify Join dialog box with the STATE fields
from both tables. If the join were not calculated automatically it would be necessary to
specify the matching fields or geographic join.
8. Choose OK. MapInfo Professional calculates the sum and returns you to the Thematic
Step 2 of 3 dialog box. The Field list box displays the temporary column you created:
SumOfTot_pop.
However, before we create the map, we still need to calculate the percentage of the total
population of each state that is urban. That information does not exist as a field in the
table, so you must build an expression to generate it.
9. In the field drop-down list, select EXPRESSION. The Expression dialog box displays.
The expression SumOfTot_pop/Pop_1990 * 100 will give you the answer as a percent.
10. In the Type an expression box, type:
SumOfTot_pop/Pop_1990*100
11. Choose VERIFY to ensure that your syntax is correct, and then choose OK. The Create
Thematic Step 2 of 3 dialog box redisplays showing the expression you created. Choose
NEXT to go on to the Create Thematic Map Step 3 of 3 dialog box.
12. Click the RANGES button and choose either EQUAL COUNT or EQUAL RANGES to customize
the ranges, whichever gives you the best representation of your data. Use Round By to
round to a decimal place or whole number. Customize the styles to best illustrate your
analysis by clicking the STYLES button. Customize your legend by clicking the LEGEND
button.
13. Click OK to display your map in a Map window.
298
MI_UG.PDF
Prism maps can also be used for bivariate theme mapping. See Bivariate Prism Maps on
page 318 for more information.
If you have a non-numeric variable, one of your maps must be an individual values map. You
cannot create a bivariate map with two non-numeric variables.
Symbol type should only be used for nominal or non-numeric data, as there is no inherent
association between a symbol type and a quantity.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
299
MI_UG.PDF
300
MI_UG.PDF
Note:
If you do not see both variables displayed on the map, make sure your variables did not
overwrite each other. Also check Layer Control to see that the Display box is checked on
both maps.
301
MI_UG.PDF
6. Determine where among the ranges the inflection point should lie and specify the range
position for the inflection point.
Examine the preview before you create the inflection point to locate where you want to
place it. When you choose an inflection point, you must choose a number that identifies
the position of a range in the legend. Count the ranges in the preview legend until you get
to the range with a zero at one of its ends. If your Legend Label Order is Descending,
count the ranges up from the bottom. If it is Ascending, count down from the top.
You can keep the default color spread between the ranges (red to blue), or you can
choose a different color spread. For this example, keep the top range at red, and change
the bottom range to blue.
In the Inflection at box, choose 2 for the second range, as you determined above. The
default is None, meaning no inflection point.
302
MI_UG.PDF
7. Set the style for the inflection point and click OK to return to the Create Thematic Map
Step 3 of 3 dialog box.
To choose the style for the inflection point, click inside the STYLE box in the Inflection
group. The Fill Style dialog box displays. Select the color for the inflection point and click
OK. The default style is a white fill with no pattern.
Preview your legend in the Thematic Step 3 of 3 dialog box. Your legend does not show
explicitly where the inflection point is, as your range colors only approach the inflection
point. You can, however, add the inflection point to the legend title or subtitle.
8. Click OK to create the map with the inflection point you created.
303
MI_UG.PDF
4. Specify the legend frames and give titles to them in the fields provided and click FINISH to
display your legend.
For more details on the options available in the cartographic legend feature, see Creating a
Cartographic Legend in Chapter 12 on page 402.
304
MI_UG.PDF
305
MI_UG.PDF
Grid Handlers
In addition to the MapInfo Professional read/write grid handler (*.MIG) we also supply READONLY grid handlers to support the direct opening of the following grid file formats:
DEMUSGS ASCII(*.DEM)
GTOPO30 (*.DEM)
You can open these grid file types directly from the Open dialog box. You will see the file
extensions listed next to the Grid Image file type in the Files of Type drop-down list in the bottom of
the dialog box. Because the handlers are read-only, they cannot be used to create grid files during
the thematic mapping process.
If the relief shading option is enabled (Create Thematic Map Step 3 of 3 > STYLES > GRID
APPEARANCE), a separate file will be created to store the hill shade information. The hillshade file is
stored in the same location as the grid file and has the same base name as the grid but with the
extension .MIH. If the grid file is read-only, e.g., its located on a CD, the .MIH files will be created
in the same location as the .tab file. The .tab file will contain a new metadata key, for example:
"\Grid\Hillshade File" = "d:\tmp\AntiochSouth.MIH"
306
MI_UG.PDF
The IDW interpolator calculates the value of grid cells that cover the mapping area. Each data
point value from your source table that is considered in the calculation for a cell value is weighted
by its distance from the center of the cell. Because the interpolation is an inverse distance
weighting calculation, the farther the point is from the cell, the less influence its value will have on
the resulting cell value.
MapInfo Professionals grid mapping process begins by determining the minimum bounding
rectangle (MBR) of the source table. The grid is divided into equal sized square cells of some size.
For example, using the Grid default template, the STATES table in MapInfo Professionals sample
data set creates a grid dimension of 200 cells by 303 cells. By calculating the number of cells in
the grid and knowing the dimension of the MBR, MapInfo Professional determines that each cell
needs to be 18.1 by 18.1 miles square. (Your cell size will be in whatever distance units you have
set for the Map window. To change the units, go to the MAP menu, point to OPTIONS and click MAP
UNITS).
The settings for the IDW interpolator are controlled via the Settings button in the Step 3 of 3 dialog
box. The illustration above shows the settings for the STATES table if you are basing the grid
theme on the Grid Default or Grid Gray Default templates that ship with MapInfo Professional.
Note the cell size number represents both the height and width of the cell. Any change to the cell
size will result in an automatic update of the grid dimensions.
With the cell size and the source points and values known, MapInfo Professional calculates a
value for each cell. This value is determined by calculating a distance-weighted average of the
points that lie within the specified search radius. Points are inversely weighted by their distance
from the center of the cell.
In IDW, the exponent determines how much influence each point will have on the result. The
higher the exponent the greater the influence closer points will have on the cell value. Exponents
can range from one to 10.
You can also choose an aggregation method for the z-values of source data points that are in the
same grid cell. Choose from: average, count, sum, min, and max.
TIN Interpolator
The TIN interpolator works best for terrain data and for data points that have a linear progression
or relationship to each other across the grid, such as temperature.
307
MI_UG.PDF
The TIN interpolator produces triangles from a network of points that more closely reproduces the
original map terrain than the IDW interpolator. It draws lines between points, dividing them into
triangles and connecting all the points that it can. It creates a mesh of connectivity so that the grid
points can be interpolated. The interpolation is not influenced by the neighboring original data
values, so you do not get the false bumping of data that you can get with the IDW interpolator.
Included in the Grid templates in the Create Thematic MapStep 1 of 3 dialog box are two
templates that work best with the TIN interpolator. The TIN interpolator settings are specified in the
Step 3 of 3 dialog box. Click the Settings button to display the TIN Interpolator Settings dialog box.
As in the IDW interpolator, the cell size indicated in the TIN interpolator is square: the number
represents both the height and width of the cell. The grid dimensions are automatically updated
when the cell size is changed.
The TIN settings can be manipulated to give more or less detail to the map terrain. The Tolerance
setting controls whether closely spaced points are discarded. The tolerance is a fraction of the
diagonal length of the bounding box of the points.
The Distance value controls the output. For non-zero distance values, only edges or triangles
contained within a sphere centered at mesh vertices are output. This is useful to constrain the
triangulated irregular network to a specified distance; otherwise, the triangulation will cross
concave regions.
The Feature Angle setting controls the angle (in degrees) that defines a sharp edge. This setting is
used for smoothing the final grid. If the difference in angle across neighboring polygons is greater
than this value, the shared edge is considered sharp.
Grid Appearance
Once the cell values are calculated, MapInfo Professional groups them into a color spectrum that
is bounded by the minimum and maximum values in the table. The grids appearance is controlled
in the Grid Appearance dialog box, which you can access by clicking the Styles button in Step 3.
Inflection Methods
You can control how the color is spread by specifying an inflection method, and the number of
inflection points. The Number of inflections drop-down list shows numbers 216, but you can type
any number between 2 and 255. You can also apply a rounding factor to the inflection values. If the
inflection method is based on cell count, you may not see the effects of the rounding factor until the
inflection values are calculated. The inflection methods include:
308
MI_UG.PDF
Equal Cell CountSets the inflections so that approximately an equal number of grid cells
fall between each inflection value.
Equal Value RangesSpreads the inflections evenly between the minimum and maximum
values of the data range.
The Grid default template assigns blue to the minimum value and red to the maximum value.
These minimum and maximum values are also expressed as percentages of the range. These
color settings/values are known as inflection points and will display in the legend with a particular
color, value and percentage. If a cell has the exact value as the inflection point, it will display that
color on the map. A cell value that falls between two inflection points displays with the color that is
in between the colors of those inflection points.
When you increase the number of inflections, MapInfo Professional chooses default colors for the
new inflections. The last inflection color remains the same. New ones are inserted between the
new last inflection and the one before it.
To change the color of an inflection point, double-click the color swatch and choose a new color
from the palette. To edit the inflection percentages/values, single or double-click a value. You can
type the new value right over the old value.
Relief Shading
Relief shading allows you to shade your grid surface map according to a virtual light source.
MapInfo Professional adjusts the brightness of each grid cell based on its orientation to the light
source. This enables you to take surface slope and direction into account relative to the direction
of the light.
309
MI_UG.PDF
The brightness values that MapInfo Professional assigns to each cell correspond to light striking
the surface. The light source can be the sun shining on a topographic surface. The maximum
brightness is assigned at points where the suns rays are perpendicular to the surface (the slope
directly faces the light source). As the slope faces turn away from the light source, lower
brightness values are assigned.
Grid Translucency
The translucency setting allows you to set how much you can see through the grid layer. For
example, in a boundary map, you may want to be able to see the boundaries as well as the
topological terrain. A translucency setting of 0% produces a completely opaque image. A setting of
100% produces a completely transparent image. Set the translucency according to how much of
the details in the layers underneath the grid you want to see.
Final Adjustments
You can make other color adjustments to your grid surface map. You can set the contrast and
brightness level, or show the grid in gray-scale. You can also invert the inflection colors using the
Flip Colors button.
Once the inflection settings, any relief shading, and other color settings are finalized, you are
ready to produce the map. MapInfo Professional generates the grid theme map layer as a raster
image. The inflection points grade from one color to another in smooth transitions to illustrate the
distribution of the data.
Zoom Layering
Zoom layering for grid layers is now controlled in the Map window preferences. To change the
zoom layering setting for a grid surface map that you are currently working with, go to the Map
Options dialog box (MAP > OPTIONS) and either activate or turn off zoom layering. The setting is
turned off by default.
310
MI_UG.PDF
Grid Tools replaces the DEM2Grid tool included in earlier versions of MapInfo
Professional.
To select the input and output grid files and the color file:
1. Use the corresponding BROWSE buttons to navigate to their respective locations.
2. Select the RELIEF SHADE check box to activate relief shading for the converted grid file.
Click the RELIEF SHADE OPTIONS button to display the Relief Shade Options dialog box,
where you can specify the angle of the light source and the vertical scale factor.
3. Select the OPEN AND MAP GRID FILE check box to have MapInfo Professional display the
grid in a Map window.
4. Click OK.
Other Grid Tools
In addition to the Grid File Converter, Grid Tools enables you to create a MapInfo Professional grid
file from a table of points. This works best if the records in your table represent a regular grid of
points. On the TOOLS menu, point to GRID TOOLS and click CREATE MAPINFO GRID FROM TABLE OF
OBJECTS to display the Grid File Converter dialog box.
Finally, loading Grid Tools places a grid info tool on the Tools toolbar that you can use to display
the x, y, and z coordinates of a mouse-click location in a grid layer. Click the button to activate it,
and then click anywhere on your grid layer to display the coordinates for that location.
311
MI_UG.PDF
If your source data points do not extend beyond your clipping region, your grid map will not be
completed filled with grid cells. To avoid this, in the Interpolator Settings dialog box for IDW
Interpolation (reached by the Settings button in the Step 3 of 3 dialog box), type a value in the Grid
Border box to represents the miles you want added to the grid that will meet or exceed the source
tables MBR. This value will add the same amount to all four sides of the grid.
Areas with missing grid cells
312
MI_UG.PDF
Use the Create 3DMap command (MAP > CREATE 3DMAP) to create a 3D view of a Grid Thematic
map when the Grid Thematic map is in the active window. You can rotate, zoom, and pan the 3D
view. Additionally, you can clone the 3D view.
The 3DMap window is a stand-alone window. If you modify the tables in the Grid Thematic map
used to create the map, you can update it using the Refresh Grid Texture option in the 3DWindow
menu. To change the settings in a 3DMap window, select PROPERTIES on the 3DWindow menu.
Creating a 3DMap
To create a 3DMap:
1. Create a Grid Thematic map or open an existing grid layer. See Working with Grid
Surface Maps on page 304 for more information.
2. Choose MAP > CREATE 3DMAP. The Create 3DMap dialog box displays.
313
MI_UG.PDF
3. To create a 3DMap using the default settings click OK. The 3D View of the map displays.
The map displays land elevations in the United States. It is available from the MapInfo
Professional CD. Open the Elev_ft.MIG file from the NAmrca\USA\Grid folder.
314
MI_UG.PDF
View Entire Layer: Re-centers the 3DMap in the window. If you zoom or pan the map from view,
use this option to redisplay the map in the window.
Viewpoint Control: Displays the Viewpoint Control dialog box which duplicates the functionality
you have with the selection and the zoom tools, and includes a MAPPER VIEW button that
repositions the 3DMap window to match the view from the original Map window.
WireFrame: Toggles between a wireframe and surface representation of the grid. Additionally,
cloned 3DMap windows have the surface representation of the grid, even if the cloned window is in
wireframe mode. To toggle the wireframe mode on and off, press the W key on the keyboard
while the 3DMap window is active. Here is an example of a wireframe map:
Note:
Properties: Display the 3DMap Properties dialog box displaying the current 3DMap settings. Use
this dialog box to modify the Light and Appearance settings of the active 3DMap. Additionally,
display this menu by right-clicking when in the 3DMap window.
315
MI_UG.PDF
Manipulating a 3DMap
You can move the 3DMap window around to determine the most effective angle for displaying your
information.
To manipulate the view of a 3DMap window:
1. Display a 3D Map.
2. Choose the Select tool.
3. Click and hold the left mouse button in the 3DMap window. As you move the mouse the
viewpoint will be rotated around the focal point.
You can also use the Grabber, and Zoom tools to move the 3DMap window around the
Map window.
The Info tool displays the grid elevation value at the point you select.
Creating a Prism map from complex geographical objects (e.g. high resolution
boundaries) requires a significant amount of memory and time. Memory resources may
run out on some systems.
The 3DWindow menu is shared between 3DMaps and Prism maps. When a Prism map is the
active Map window, the 3DWindow menu displays on the menu bar.
316
MI_UG.PDF
The commands in the 3DWindow menu for Prism maps are the same as those for 3DMaps. You
can control the view of the map, create a duplicate view, and set the maps point of view, enabling
you to choose the angle that will best emphasize the prism effect of the raised geographies.
3. In the Choose Layer and Column group, choose the layer to map, and choose a column
value. Only numeric columns from the layer you chose display in the dialog box.
To use a character column, create an expression. Choose EXPRESSION from the Column
drop-down list to display the Expression dialog box.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
317
MI_UG.PDF
Select the character column you want to use, and use the Val() function to convert a
character string to a numeric value. This function returns zero for any character string that
has no numeric meaning.
4. In the Appearance group, specify the Background color. This color is used for the
windows background. Also specify the Light color. This color is the lighting for your map. It
acts as a cover to the camera lens as it views the map.
5. In the Camera group, choose the cameras position and orientation. The Horizontal Angle
measures the rotation of the map around the center point of the grid. This value can range
from 0360 degrees. The Vertical Angle measures the rotation in elevation from the start
point directly over the map. This value ranges from 090 degrees.
6. Click OK. The Prism map displays in your Map window.
Using either method, the Prism Map Properties dialog box displays.
318
MI_UG.PDF
2. In addition to modifying the Background and Light color settings, you can specify InfoTips
and set a scale for the Z direction (vertical) of the map.
3. The InfoTip information can come from any column in the table or valid expression. The
values will display when you hover the cursor over an object using a tool that supports
ToolTips.
A scale for the Z direction is calculated during the initial creation of the Prism map. If you
decide to modify it, keep in mind that the values used for the prism height may greatly
exceed the x and y dimensions.
For example, in a Prism map of population, values could easily be in the millions. The
scale must be small enough so that the objects can be viewed. A scale value >1 will
exaggerate the topology in the Z direction; a value <1 will scale down the topological
features in the Z direction.
4. Click OK to save the prism properties.
319
MI_UG.PDF
10
Two of the most important features in MapInfo Professional are buffers and the tools we provide to work
with objects. Buffers allow you to create grouping areas around objects, lines and regions, which is
important for providing a visual analysis. You can edit an manipulate objects in a wide variety of ways. The
Set Target editing model allows you to apply a wide range of editing operations to an object or a series of
objects. Using MapInfo Professional you can also create territories and create objects. This chapter covers
these topics and discusses the advanced topics of enclosing, checking, and cleaning objects.
In this Chapter:
Understanding Buffers
A buffer is a region that surrounds a line object, another region, symbol, or any other object in a
Map window. For example, you can create a buffer region that surrounds Interstate 90 by 440
yards on either side. You can create a buffer region that surrounds the proposed school district by
five miles on all borders. Both the 440 yards and five miles are their respective regions buffer radii.
The buffer table is then joined to data associated with the original buffered objects.
Creating a Buffer
To buffer objects:
1. Select the objects that you want to buffer. Make sure there is an editable layer in the Map
window. The output buffered objects will be placed in that layer.
2. On the OBJECTS menu, click BUFFER. The Buffer Objects dialog box displays.
3. Select appropriate buffer radius, segments per circle, distance type calculation to use, and
buffer method as described.
RADIUS The radius is the width of the buffer you want to create around the object
you selected. The Value and the From Column radio buttons give you different ways to
specify that width.
VALUE Type a value into this field if the radius of the buffer you want to create is a
specific distance. Examples might include 10 feet, 20 kilometers, 50 chains.
FROM COLUMN Select this radio button if the buffer you want to create is specified in
a particular column or is to be calculated by an expression. Then select the column or
choose EXPRESSION from the drop-down list.
321
MI_UG.PDF
If you select EXPRESSION, the Expression dialog box displays. Specify the expression
you want MapInfo Professional to use to calculate the buffer radius and click OK to
return to the Buffer Objects dialog box.
UNITS Select the units for the buffer from this drop-down list. Options include:
inches, links, feet, US Survey feet, yards, rods, chains, miles, nautical miles,
millimeters, centimeters, meters, kilometers.
SMOOTHNESS Type the number of segments per circle that determines the
resolution of the curves in the buffer polygon. You can enter a number between 3 and
100. The default value is 12 segments per circle.
The more segments you enter, the smoother the curve. The fewer segments, the more
jagged the curve. More segments produce a smoother curve; fewer segments make a
more jagged curve.
ONE BUFFER OF ALL OBJECTS Select this option to create one buffer for all of the
objects you have selected. For example, if you are buffering Pennsylvania, New York
and New Hampshire, one buffer will be created for all three of these objects.
ONE BUFFER FOR EACH OBJECT Select this option to create one buffer for each
object you have selected. For example, if you are buffering Pennsylvania, New York
and New Hampshire, each object will have a separate buffer.
BUFFER WIDTH DISTANCE USING SPHERICAL Select this option if you want the buffer
to take into account the curvature of the Earth. Using this method, MapInfo
Professional converts the data to Latitude/Longitude and then creates a mathematical
calculation of the buffer. You cannot use this method for non-Earth projections.
BUFFER WIDTH DISTANCE USING CARTESIAN Select this option if you want the buffer
to be calculated as if the map is on a flat plane. Cartesian coordinates are a pair of
numbers, (x, y), defining the position of a point in a two-dimensional space by its
perpendicular projection onto two axes which are at right angles to each other. If you
are using a Latitude/Longitude projection, this option is disabled.
4. When you have completed your entries and selections in this dialog box, press the NEXT
button. The standard Data Aggregation dialog box displays.
Note:
If the editable layer is the Cosmetic layer, the Data Aggregation dialog box will not
display because there is no data in the layer to aggregate. The OK button displays
in place of the NEXT button. Press OK to begin the buffer operation.
5. Highlight each of the columns you want to complete the fields in this dialog box.
BLANK Select this option to store blank values in the selected column(s). To store
blank values in all displayed columns, check the NO DATA check box. Only choose the
Blank option to blank out individual columns.
322
MI_UG.PDF
VALUE Select this option to store the value that displays in the edit field in the new
row. When you select this option, enter an appropriate value in the field.
NO DATA Check this check box if you want no data aggregated to any column.
6. After setting the appropriate data aggregation parameters, press OK. MapInfo
Professional calculates the buffer according to the parameters you sent and creates the
new objects in the editable layer. The original objects remain unchanged.
Once MapInfo Professional has created the buffer region, it puts it in the editable layer.
323
MI_UG.PDF
To buffer the selected object, leave the SELECTION object selected in the BUFFER
OBJECTS IN TABLE drop-down list box.
To buffer objects from a particular table, select the table in the BUFFER OBJECTS IN
TABLE drop-down list box.
4. Select the type of table you want to place the buffer into from the STORE RESULTS IN TABLE
drop-down list box. Select one of the following:
If you chose the NEW TABLE option, go to Saving a Buffer to a New Table on
page 324.
If you chose <TABLENAMES>, go to Saving a Buffer to an Existing Table on
page 325.
1. Use the Create New Table and check boxes to indicate where you want the new buffer to
display. You can click more than one check box.
OPEN NEW BROWSER Click this check box to display the new buffer in a new Browser
window only.
OPEN NEW MAPPER Click this check box to display the new buffer in a new Map window.
ADD TO CURRENT MAPPER Click this check box to display the new buffer in the current
Map window.
2. Choose the table structure for the new table, using only one of these options:
CREATE NEW Click this check box to specify a new table structure and create the new
fields in the New Table Structure dialog box.
USE TABLE Click this check box to create the new table structure based on the fields in
an existing table. You can base your new table structure on any open table.
3. Click CREATE. The New Table Structure dialog box displays.
If you selected CREATE NEW in the last step, the New Table Structure dialog box displays
no fields and you need to add the fields you need.
324
MI_UG.PDF
4. Click the ADD FIELD button and enter the field name, select the field type, and enter the
field width for each new field in your table. Continue this process until your table structure
is complete.
5. Click CREATE to create the table and display the buffer according to the display
instructions you specified. The Create New Table dialog box displays prompting you to
save the name of the new table.
6. Select the directory for this table and type the name of the new table in the File Name field.
Click SAVE.
Saving a Buffer to an Existing Table
You can create a buffer and save it as a layer in an existing table in your map. You must complete
the instructions in Saving your Buffer as a New Layer on page 323 before you begin this
operation.
1. When you choose to store the table results in the existing table, the Data Aggregation
dialog box displays.
Click a field here
Specify the data
aggregation method
here.
Note:
If you selected tables with disparate values, there may be additional fields in this
dialog box. You need to reconcile these table values using this dialog box.
2. In the Data Aggregation dialog box, click a field and specify an aggregation method:
BLANK Click this radio button to indicate that this field should remain blank.
VALUE Click this radio button to indicate that this field should contain a specific value or
should retain its existing value. If the field should contain a specific value, enter that value
into the Value field.
325
MI_UG.PDF
SUM Click this radio button to add the field values from the original objects to create a
field total for the field in the new column. (Applies to numeric fields only.)
AVERAGE Click this radio button to average the field values from the original objects.
(Applies to numeric fields only.)
WEIGHTED BY Click this radio button to give more weight to one value over another
when averaging. You can choose a numeric field in your table as the weighting factor or
choose area (where the weighted average is based on the relative geographic area of the
regions to be combined). Applies to numeric fields only.
3. To add no data to the existing table, select the NO DATA check box. This disables the
Blank and Value radio buttons.
4. After you have completed these selections and entries, click OK.
5. The Buffer Objects dialog displays. From here the process is the same as described in
Creating a Buffer on page 321.
Note:
The values in the Buffer Objects dialog box are saved at the end of the operation. If you
perform another Buffer operation using the Table Buffering option or the Objects Buffering
option using the same base table, MapInfo Professional restores the previous values.
Buffer Radius
The buffer radius determines the dimensions of the buffer region. For example, if you want to
create a region that covers an area one mile on either side of a freeway, set your buffer radius to 1
mile. If you choose to use a field from the table or an expression, MapInfo Professional will
calculate the radius of the buffer based on that value.
You can set the radius to be a constant value or you can choose a data value from the table to be
used as the radius. For example, to create buffers around major cities that reflect the size of their
population, choose the population field as the value.
You can go even further to calculate the buffer radius using an expression. For instance, you want
to create buffers around cities showing the population density. Since you do not have a field
containing population density, you will need to write an expression that can calculate density from
population and area. This is no different than writing an expression for thematic mapping or query
selection.
326
MI_UG.PDF
Cartesian calculations measure distance on data that has been projected onto a flat, X-Y plane.
This produces buffers that are exact in width, as long as the data is not in a Latitude/Longitude
projection.
The availability of the Spherical and Cartesian buttons depends on the type of calculation that is
appropriate to the tables projection. The Cartesian button will not be available if the table is in a
Latitude/Longitude projection. Conversely, the Spherical button will not be available if the table is in
a Non-Earth projection.
Buffer Methods
You can create a single buffer to include all selected objects, or create individual buffers for each
object.
There are two ways you can buffer multiple objects at the same time. The first method is to create
one buffer for all objects. Buffers are produced around each input object, and the resulting buffer
objects are combined into a single output object.
The more powerful method is to create one buffer for each object. For example, you have a layer
of satellite offices. You would like to create a five-mile radius buffer around every satellite office
symbol. You select all office symbols (with either the Select All command or Select tool), on the
OBJECTS menu, click BUFFER, and select the option to create one buffer for each object. MapInfo
Professional creates five mile buffer polygons around each point. With this method, MapInfo
Professional considers the resulting buffers as individual region objects and does not combine
them into one region.
Once you create a buffer region, you can search for objects within it, as with any other boundary.
Types of Buffers
There are two basic types of buffers that we support in MapInfo Professional.
Concentric ring buffers allow you to create circles around map object(s) or point(s) and
compute aggregated values for underlying data that occur within each ring. You would use
concentric ring buffers to determine the number of customers within a certain radius of a
store or other location.
Convex hull buffers create a region object that represents a polygon based on the nodes
from the input object. You can think of the convex hull polygon as an operator which
places a rubber band around all of the points. It will consist of the minimum number of
points so that all points lie on or inside the polygon. With convex hull buffers, no interior
angle can be greater than 180 degrees.
327
MI_UG.PDF
2. Find the Concentric Ring Buffer Tool in the list, and check the LOADED and AUTOLOAD
boxes next to it.
3. Click OK. The tool is added to the Tools menu, and will be loaded automatically each time
you start MapInfo Professional.
To create concentric ring buffers:
1. In the Map window, select the object(s) you want to place buffers around.
2. On the TOOLS menu, point to CONCENTRIC RING BUFFERS and click CREATE RING BUFFERS.
The Concentric Ring Buffers dialog box displays.
3. To add a ring, specify the radius in the Radius field and click ADD RING. Continue this until
you have added all of the rings you want from the smallest to largest.
4. Select the units of each radius in the Units drop-down list.
5. To set the smoothness of the ring buffer, type a number between 3 and 100 in the
Smoothness field. The larger the number, the smoother and less jagged the curves of the
ring.
6. Type the table name and select the path in which you want to store this buffer information.
MapInfo Professional stores the concentric ring buffer information into this table including
the columns containing the ring number, radius value, radius units, area, and area units for
each ring.
7. When you have finished the buffer settings, click OK.
Use the MODIFY RING and DELETE RING buttons to change the ring settings, or click CLEAR ALL to
start all over and create new concentric rings. To change the style of a buffer ring, select it in the
Buffer Radii list, and use the style buttons to change the fill pattern and line style for the buffer. You
can also collect data within each buffer ring using the CALCULATE RING STATISTICS button.
328
MI_UG.PDF
The resulting region object(s) are based on the nodes from the input object. The Convex Hull
operation can be thought of as an operator that places a rubber band around all of the points. It
consists of a minimal set of points such that all other points lie on or inside the polygon. Since the
polygon is convex, no interior angles are greater than 180 degrees. No attribute data is
aggregated in this operation.
To use Convex Hull, a Map window must be active, it must have an editable layer, and objects in
the editable layer must be selected.
To create convex hull objects:
1. On the OBJECTS menu, click CONVEX HULL. The Create Convex Hull dialog box displays.
2. Select the type of convex hull objects you want to create. You have two options:
ONE OUTPUT OBJECT FOR ALL INPUT OBJECTS button is the default setting. It creates
one convex hull object around all of the selected objects.
ONE OUTPUT OBJECT FOR EACH INPUT OBJECT button creates a convex hull object
around each selected object.
3. Click OK. Your map redisplays. The convex hull object(s) is displayed over the input
objects. If you want to save this data, save the editable table.
The convex hull object is selected when it displays. To change the fill of the convex hull object, do
one of the following:
Double-click it to display the Region Object dialog box. Click the STYLE icon at the bottom
of the dialog box to display the Region Style dialog box. Make any changes you like and
click OK.
Select the convex hull object, if it is not already, and on the OPTIONS menu, click REGION
STYLE. The Region Style dialog box displays. Make the changes you want and click OK.
329
MI_UG.PDF
The Set Target editing model in MapInfo Professional allows you to set a map object as the target
for editing, then create a modifying object that will act as the cookie cutter that overlays the target
and performs the editing action on the target. Set Target is located under the Objects menu.
The Set Target model for editing map objects can be broadly described as a three-step process:
1. Set the object you want to edit as the target.
2. Choose and select another object or objects to act as the modifying object for the editing
operation. You can also create a new object.
3. Perform the edit operation (combine, split, erase, erase outside, or overlay nodes).
A new object (or objects) is created in place of the target object.
The following table describes valid cutter/target objects for supported object processing
operations:
Object Type
Split, Erase,
Erase Outside
Overlay Nodes
Cutter
Target
Closed
Linear
Cutter
X
Combine
Target
Other
non-target
Target
Points
Multipoints
Collections
Text
330
MI_UG.PDF
You are not limited to working with map objects in the same layer. While the target objects must be
in the Editable layer, you can choose the modifying objects from another layer.
The set target process is essentially the same whether you want to combine objects or create new
objects by splitting objects or erasing portions of objects. Each operation is discussed individually
in this chapter.
In addition to creating new map objects, the Set Target model allows you to control how the data
associated with the target object will be transferred to the new object or objects. The next section
discusses a number of data aggregation and disaggregation methods that give you tremendous
flexibility with editing map objects.
SUM adds the field values from the original objects to create a total for the field in the
new object.
WEIGHTED AVERAGE gives more weight to one value over another when averaging. You
can choose a numeric field in your table as the weighting factor or choose area (where the
weighted average is based on the relative geographic area of the regions to be combined).
NO CHANGE maintains the value of the target object in the new object.
When splitting or erasing portions of a map object, you can choose from:
AREA PROPORTION removes a portion of the original value based on the size of the new
object.
With any of the editing operations under Set Target, you can elect not to bring over any data at all
by choosing the NO DATA check box. You might do this, for instance, if you are only editing map
objects for presentation purposes and do not need any data associated with the objects.
The data aggregation (or disaggregation) dialog box displays after you have set the target, chosen
the modifying object, and chosen an editing operation. In these dialog boxes, you must specify
how you want the data calculated for each field. Once you are satisfied with the aggregation
method, you can carry out the editing operation.
331
MI_UG.PDF
useful when one object is more important than the others you are combining it with, for instance,
when adding islands to a mainland region. Using Combine with Set Target allows the mainland
region to retain its name after the objects are combined.
You can only set one object as the target at a time when using Combine with Set Target. The
modifying object can consist of more than one object.
To combine map objects using Set Target:
1. Select one object in an editable layer to be the target object.
2. On the OBJECTS menu, click SET TARGET. The object displays in a different style to
indicate that it is the target object.
3. Select (or create and select) one or more map objects from any layer in the Map window.
This is the modifying object.
4. On the OBJECTS menu, click COMBINE. The Data Aggregation dialog box displays.
5. Choose the appropriate aggregation method (or NO DATA) for each field in the Destination
list. See the definitions for these methods in Aggregating and Disaggregating Data on
page 331.
Note:
To select more than one field in the Data Aggregation dialog box at a time, use
these keystrokes:
When you have chosen the aggregation methods for each field, click OK.
MapInfo Professional computes the new object and displays it as a single object. Use the Info tool
to view the aggregated data (if any) associated with the object.
332
MI_UG.PDF
Keep in mind that the Objects Combine command works with selected map objects. To apply the
combine operation to an entire table, use SELECT ALL in the QUERY menu. To combine into groups
rather than objects, or output to a separate table, use COMBINE OBJECTS USING COLUMN in the
TABLE menu.
The AREA PROPORTION radio button is active if the selected field is numeric. Also the Value entry
field is enabled when you select the Value radio button and the drop-down list contains none.
Splitting Objects
Splitting Objects allows you to divide the target object into smaller objects, using another object as
a cutter. You can also combine objects into territories using redistricting. For more about the
redistricting process, see Redistricting Grouping Map Objects into Districts in Chapter 15
on page 470.
For instance, you might use Split to separate a large territory into smaller units.
To split map objects using Set Target:
1. Select the object(s) in an editable layer to be the target.
2. On the OBJECTS menu, click SET TARGET. The object(s) displays in a different style to
indicate that it is the target object.
3. Select (or create and select) one or more map objects from any layer in the Map window
to be the cutter object. The object must be a closed object.
4. On the OBJECTS menu, click SPLIT. The Data Disaggregation dialog box displays.
333
MI_UG.PDF
Value Edit
field
5. Highlight each field and select the appropriate disaggregation method in the Destination
list. You can select the NO DATA check box to indicate that you want to bring over no data
for any fields. See the definitions for these methods in Aggregating and Disaggregating
Data on page 331.
BLANK Select this option to store blank values in the selected field(s). We
recommend you choose the Blank option to blank out individual fields only.
VALUE Select this option to store the value that you enter in the Value Edit field in
the selected field(s) of the new table.
If the table structure you are splitting from has a different table structure than the table
you are saving the results to, a drop-down list displays beside the Value Edit field. This
list contains the columns associated with the table you are saving the split data to.
To save the value in this field to a particular column in the new table (layer), select the
column from the list.
AREA PROPORTION Select this option if the field is a numeric field, to adjust the area
proportion to reflect the proportion of the newly split object.
Note:
6. Click OK.
MapInfo Professional computes the new objects and displays them. Use the Info tool to view the
disaggregated data (if any) of the split objects.
334
MI_UG.PDF
You cannot use Polyline Split on text objects or to cut objects that are not in editable layers. To split
a map object:
1. Make the Target Table editable (on the MAP menu, click LAYER CONTROL) or by picking the
editable layer in the Editing box in the bottom tray.
2. Select the object(s) to be used as targets for editing using the selection tools or by using
the QUERY menu to click SELECT or SQL SELECT.
3. Set the objects as targets using the Set Target command, or by using the MapBasic Set
Target On statement.
4. Create the cutting object(s) (or use objects from the same or different layer). The cutter
object(s) must be contiguous, non-branching polylines.
5. Select the cutting object.
6. On the OBJECTS menu, click POLYLINE SPLIT.
7. A region object is created from the polyline to be used as the cutter object.
Note:
Only objects that intersect the original polyline will remain as targets. Some
objects may be removed from the list of target objects.
335
MI_UG.PDF
Remember, when you are combining regions, you are also combining the data associated with the
regions. If you combine regions without somehow aggregating the data associated with the
regions, that data will be lost. For some applications, you might not want to save your data. For
example, you are merging census tract boundaries to create school districts. The census tract data
is of no interest to you; you merely want the boundaries. There is no reason to aggregate the data,
but you would want to apportion the demographic data. For most tasks, youll want to save the
data associated with the regions.
MapInfo Professional gives you three methods for combining regions.
1. The first method, Combine, works with objects that are selected.
2. The second method, Combine Objects Using Column, is used to combine objects into
groups based on a specified column.
3. The third method, Redistricting, is covered in Redistricting Grouping Map Objects
into Districts in Chapter 15 on page 470.
Most frequently, the Combine Regions options are your easiest and quickest options for combining
regions and creating territories.
MapInfo Professional geographically combines the selected objects. The new object
represents the geographical union of the original objects and the border between the
regions disappears.
MapInfo Professional performs data aggregation. As described earlier in this chapter, data
aggregation is a process where MapInfo Professional calculates what the column values
for the new object should be, based on sums or averages of the original objects.
Your setup of the Layer Control dialog box depends on whether you want to copy the result object
to another layer (and, thus, save the original objects) or combine the objects in the original layer
(and, thus, lose the original objects).
If you want to copy the result object, make the regions layer Selectable and another layer
Editable. Specify a target object, then select the objects using any selection method and on the
OBJECTS menu, click COMBINE. This will display the Data Aggregation dialog box where you tell
MapInfo Professional how to combine the data. Fill in this dialog box and click OK to combine the
objects to combine the objects data. This method was discussed earlier in this chapter.
If you want to combine objects in the original layer, make sure that the layer is editable, select the
objects in the layer, and on the OBJECTS menu, click COMBINE. Do not set a target. The data
Aggregation dialog box displays. After the operation is complete, a new object will be added to the
layer, and the original objects will be deleted.
336
MI_UG.PDF
STATE
CUSTOMERS
AVG_SALES
Benita
West Virginia
1782
24231.4
Benita
Ohio
121
33265.0
SALES_REP: Combine all records that list Benita as the sales representative
CUSTOMERS Sum up the number of customers in the sales territory
AVG_SALES: Average the amount spent per customer in the sales territory
When performing a Combine Objects Using Column operation, you must specify which
column contains the grouping information. In the preceding example, the grouping
information is located in the SALES_REP column. We want to combine all of Benitas
individual territories into one large territory.
2. Choose the appropriate column from the Group Objects by Column popup.
In our example, you would choose the SALES_REP column from the Group Objects By
Column popup. MapInfo Professional combines all records that have common data in the
column. In other words, MapInfo Professional combines all records that have the same
sales representative.
If you choose <NEW> from the STORE RESULTS IN TABLE drop-down list to create a new
table for the combined objects you will be prompted with a series of dialog boxes to
create a new table.
If you specified an existing table, you need to tell MapInfo Professional how to
combine the data. To aggregate your data, press the NEXT button to display the Data
Aggregation dialog box.
337
MI_UG.PDF
4. Once you have completed both dialog boxes, press OK. MapInfo Professional combines
the records based on the column specified in the Group Objects By Column drop-down
list. MapInfo Professional also aggregates the data and combines any objects associated
with the records.
To save the Voronoi polygons you create to a new table, see Saving your
Voronoi Polygon as a New Layer on page 339.
3. Select a column from the list and select the data aggregation method for that column by
selecting one of the following:
Note:
Note:
Not all of these data aggregation methods display. The options depend upon the
kind of data you are aggregating and whether the columns match.
Click the BLANK radio button to store blank values in the selected columns.
Click the VALUE radio button to enter an appropriate value which to be stored in the
new row.
You can specify the data aggregation method to be performed for one column or for more
than one by following these directions:
338
MI_UG.PDF
Note:
To create a voronoi table of the selected objects with no data in them, click the NO
DATA check box instead. Selecting this check box disables the column selection in
the Data Aggregation list.
If you want to use a selection to create the Voronoi polygon, hold down the SHIFT
key and select the points you want. This is not required. If you do not make a
selection at this point, MapInfo Professional will use all of the points on the
selected layer to create the polygon.
2. To create a boundary for the Voronoi polygon layer you are creating, use the Target Object
feature described in Overlaying Nodes on page 354. This is not required.
3. On the TABLE menu, click VORONOI. The Table Voronoi dialog box displays.
4. Select the layer you want to create the Voronoi polygon with in the PERFORM VORONOI
USING OBJECTS FROM TABLE drop-down list. If you selected points you want to use to create
this polygon, choose the Selection entry in this list.
5. Select the table type for the results of the Voronoi polygon from the Store results in table
drop-down list:
NEW TABLE allows you to save the Voronoi polygon in a new table
<TABLENAMES> allows you to save the Voronoi polygon into one of the currently
open tables that contain point objects
6. After you make this selection, click NEXT to continue. Do one of the following:
If you selected the NEW TABLE option, go to Save the Voronoi Polygon to a New
Table on page 340.
MapInfo Professional 7.5
339
MI_UG.PDF
2. Use the CREATE NEW TABLE AND check boxes to indicate where you want the new Voronoi
polygon to display. You can click more than one option. The options include:
OPEN NEW BROWSER Click this check box to display the new Voronoi polygon in a
new Browser window only.
OPEN NEW MAPPER Click this check box to display the new Voronoi polygon in a
new Map window.
ADD TO CURRENT MAPPER Click this check box to display the new Voronoi polygon
in the current Map window.
3. Choose one of these options to specify the table structure for the new table:
CREATE NEW Click this option to create a new table structure and add the new
fields in the New Table Structure dialog box.
USE TABLE Click this option to create the new table structure based on the fields in
an existing table. You can base your new table structure on any open table.
If there are entries in this dialog box, you are copying the table structure of an
existing table. If you opted to create a new table structure, there are no fields to
list.
5. In the New Table Structure dialog box, you can add and remove fields to create a new
table structure. Click the ADD button and type a name, field type, and field width in the
fields and drop-down list provided to create a new field in the new table.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
340
MI_UG.PDF
6. When you have completed the table structure, click CREATE to create the table and display
the Voronoi polygon according to the display settings you specified. The Create New Table
dialog box displays so you can save the name of the new table.
7. Type the name you want the new table to have in the File Name field and click SAVE to
save it. You can choose a new directory in this dialog box as well.
Save the Voronoi Polygon to an Existing Table
1. When you choose to store the table results in the existing table, the Data Aggregation box
displays.
Select the field here
If you selected tables with disparate values, there may be additional fields in this
dialog box. You need to reconcile these table values using this dialog box.
2. To specify the data aggregation you want MapInfo Professional to use to create the new
table structure, highlight each field in turn and do one of the following:
BLANK Use this option to indicate that this field should remain blank.
VALUE Use this option to indicate that this field should contain a specific value or should
retain its existing value. If the field should contain a specific value, enter that value into the
Value field.
Note:
Other aggregation methods may be available based on the data columns in the
tables. See Aggregating and Disaggregating Data on page 331 for these
details.
3. If the new table information should add no data to the existing table, select the NO DATA
check box to disable the other field options.
4. After you have completed these selections and entries, click OK.
341
MI_UG.PDF
A Collection object consists of multipoint objects, zero or one polyline objects, and zero or one
region objects that have been grouped into a single object.
MapInfo Professional automatically converts homogeneous Collection objects to a more specific
type, e.g., a Collection object that contains only polylines is automatically converted to a multipolyline object.
To create a Multipoint or Collection object using Combine:
1. Make the layer that you are going to select from editable if it is not already.
2. Select the objects you want to combine.
3. On the OBJECTS menu, click COMBINE. The Data Aggregation dialog box displays.
Note:
4. Select the column(s) that you want to use in the aggregation and an aggregation method.
5. Click OK. The objects are combined into a single object.
Any point objects selected are combined to form a multipoint object. Any polyline objects
selected are combined to form a a new region object. The resulting multipoint (if one
exists), polyline (if one exists) and region (if one exists) are grouped together to form a
new collection object.
For an existing multipoint or collection object, you may need to change its styles or view the
bounds information. To do so, either double-click the object, or right-click the object to display the
shortcut menu and choose GET INFO. The Object Info dialog box for the selected object displays. If
the object is not editable, the controls in the Object Info dialog box are read only.
In multipoint objects, you can change the style of the symbol that represents the multipoint. Click
the STYLE button to display the Symbol Style dialog box.
342
MI_UG.PDF
In a collection object, you can change the styles of the different object types in your collection.
Click the corresponding STYLE button for each object type you want to change.
343
MI_UG.PDF
Combining points is similar to other Combine operations in that the symbol style of the resulting
object is the same as that of the first object to be combined. This object is normally the first object,
in row order, of the table being combined.
Collection Objects
The result of a Combine operation that uses heterogeneous object types as input is a Collection
object. The input objects of a Collection object can be a mix of any of the following:
Collection objects
Heterogeneous Combine operations take place in stages. First, all objects of the same dimension
are combined separately. The Combine operations are done in the following manner:
All point and Multipoint objects, as well as the Multipoint component of any Collection
object in the input are combined into a new Multipoint object.
All line, polyline, and arc objects, as well as the polyline component of any Collection
objects in the input are combined into a new polyline object.
All regions, rectangles, rounded rectangles, and ellipses, as well as the region component
of any Collection objects in the input are combined into a new region object.
Note:
As in other Combine operations that involve rounded rectangles, all rounded rectangles
are treated as rectangles.
The resulting Multipoint, polyline, and/or region objects are then assembled into a new Collection
object.
The styles for the new Collection object are derived from the styles of the separate Combine
operations. These styles are assigned according to the style of the first object, in row order, of the
table being combined. Keep in mind that the row order of an object may have nothing to do with
the order in which you selected the objects for the Collection.
For example, the style of a Multipoint component of a Collection object is the style of the first point,
Multipoint, or Multipoint component of a Collection encountered in row order. The style of a
polyline component of a Collection object is the style of the first linear object or polyline component
of a Collection encountered in row order. The style of a region component of a Collection object is
the style of the first closed object or the region component of a Collection encountered in the input,
in row order.
344
MI_UG.PDF
Enclosing Objects
The Enclose command enables you take polyline objects and create regions from the polygonal
areas formed by the intersecting polylines. You can form a new region network anyplace where the
polylines form an enclosed area. For example, you could create regions from a road network,
where the regions would be the parcels of land between the roads.
You can also use the Enclose command with region objects.
This command is modeled after the Combine command, but has two important differences:
Combine always produces one object, while Enclose may produce many objects.
To use the Enclose command, your Map window must be active, it must contain an editable layer,
and objects in the editable layer must be selected. This is a highway map of the greater New York
City metropolitan area. A number of the highways have been selected.
345
MI_UG.PDF
Enclose preserves the original objects. The selected objects are used as the input objects, and the
results of the operation are placed in the current editable layer in the active Map window.
When you include regions and other closed objects in the Enclose command (regions, rectangles,
rounded rectangles, and ellipses), the input regions are considered polylines for the purposes of
this operation. The regions are converted to polyline objects, and then the Enclose operation is
performed. It is the same as if you were to first convert any closed objects to polyline objects, and
then perform the Enclose operation.
If your selection contains objects that are not linear and are not closed (e.g., points, multipoints,
collections or text objects), you will get an error. If the selection contains closed objects, and the
Ignore Region Objects box is checked, then these closed objects will be ignored.
Checking Regions
You can check region maps for possibly badly formed objects with the Check Regions command,
which is available by selecting the object you want to check and on the OBJECTS menu, click
CHECK REGIONS.
Check Regions detects errors in your data that may produce problems or incorrect results when
various operations are performed. There are a couple of rules associated with the Check Regions
dialog box. You must select the regions you want to check before you use the Check Regions
command. The objects must reside in one layer, and they must all be closed objects. MapInfo
Professional places the Check Region results in the current editable layer in the active Map
window. There is no data aggregation or disaggregation performed on this data and no data is
associated with the objects created. The options for the Check Region dialog box are explained in
detail in this section. To see examples of the gap and overlap regions, see the illustrations at the
end of the Cleaning Objects on page 348 section.
346
MI_UG.PDF
The Self-Intersection Detection option helps you to check your regions for areas that cross over
themselves, which could cause errors later on. When you use this option, Check Regions creates
a point at the location where the data may self intersect. To change the symbol used to indicate
self intersections, click the STYLE button in the Self-Intersection Detection group to display the
Symbol Style dialog box. You can make the desired changes here.
The Overlap Detection option checks the data for places where regions overlap each other. When
you use this option, Check Regions creates regions that represent any areas of overlap. To
change the fill of the overlap regions, click the STYLE button in the Overlap Detection group to
display the Region Style dialog box. You can make the desired changes here.
The Gap Detection option checks the data for places where region boundaries do not line up,
causing a space or gap between regions. Some gaps in boundary data may be naturally occurring,
such as a lake. Generally, gaps that are errors are caused by misaligned boundaries, and are
generally small. A maximum gap area must be entered for gap detection. Gaps larger than this
area are ignored and not flagged. This should help differentiate natural gaps, such as lakes, from
misalignment errors. To change the fill of the gap regions, click the Style button in Gap Detection
group to display the Region Style dialog box.
To use the Check Regions command:
1. Make sure your Map window is active and that you have an editable layer.
2. Select the region object(s) that you want to check.
3. On the OBJECTS menu, click CHECK REGIONS. The Check Region Objects dialog box
displays.
4. To check for self-intersections, select the DETECT SELF-INTERSECTION check box. The
SYMBOL STYLE button enables. The check box is set by default.
5. To check for region overlaps, select the DETECT OVERLAYS check box. The STYLE button
for Overlap Detection enables. The check box is cleared by default.
6. To check for gaps, select the DETECT GAPS check box. The REGION STYLE button, the
MAXIMUM GAP AREA, and the AREA UNITS are activated. The check box is cleared by
default.
7. Click the SYMBOL STYLE button to change the symbol style used to indicate the location
style of the self intersections.
347
MI_UG.PDF
If you specified Overlap Detection, click the REGION STYLE button to change the fill pattern
for the regions that represent the areas of overlap.
8. Click OK. Your map redraws, and the self intersections, overlapping regions and gaps, if
specified, are displayed. If you specified Gap Detection, check the REGION STYLE button in
the Gap Detection group to change the fill pattern and color used to represent gaps.
The settings are retained per session and per layer. When you close MapInfo Professional and
reopen the program, the Overlap Detection check box is reset to the default. If you select another
layer, Overlap Detection is also reset to the default (not selected). This per-session and per-layer
scheme is also used in other operations such as Buffer and Convex Hull.
Note:
Check Regions does not correct your data; it only shows the location of the incorrect data.
Cleaning Objects
The CLEAN command available from the OBJECTS menu enables you to remove any selfintersections in your region data and optionally alter region data to remove overlaps and/or gaps.
CLEAN is available whenever there are objects selected, and the table that the objects are in is
editable.
Note:
All of the objects selected must be closed objects (e.g., regions, rectangles, rounded
rectangles or ellipses).
5. Click the ENABLE OVERLAP REMOVAL check box to remove any overlapping areas. The
area of overlap will be retained in the region that has the largest area; the overlap will be
removed from any other overlapping regions.
6. Click the ENABLE GAP REMOVAL check box to remove any gaps between regions, where
the area of the gap is less than the area provided. The area of the gap will be added to the
adjacent region with the longest shared edge. Specify a maximum gap area and the area
units you want to use.
7. Click OK.
348
MI_UG.PDF
Overlap
There are several things you should be aware of when using the Clean command. Although Clean
works on a selection of objects, it is designed to be used on an entire table at once. If clean is used
on a selection, rather than on the whole table, problems can occur. For example, if not all the
objects are included in the Clean operation, some of the object intersections can be missed, and
problems can remain.
In addition, Clean could introduce new overlaps and gaps if not all of the objects in the table are
used as input. The Clean operation places new nodes at the point of each intersection it
encounters. The presence of these nodes can slightly change the size and shape of objects,
although you would have to zoom in very closely to the site of the new nodes to notice it. These
slight alterations have the potential to create small gaps and overlaps in what were previously
common boundaries with other objects not included in the Clean operation.
Clean also removes the overlap when one object is completely inside another, however, if one
object is completely inside another object, the object which is inside (often smaller than the
containing object) remains, while a hole is punched in the containing object. The result does not
contain any overlaps.
The Inter-Object Node Snap Snaps nodes from different objects together.
The Node Thinning/Generalization Removes nodes from objects while retaining their
shape. When you thin region objects, shared boundaries are retained.
349
MI_UG.PDF
Snap/Thin is available whenever objects are selected in an editable table. The selected objects
must either be all closed objects or all linear objects. Snap/Thin cannot be used on a selection that
contains a mix of closed and linear objects.
For polylines, the End Node tolerance must be greater than or equal to the Internal Node
tolerance. You will receive a warning message if they are not. In many instances, the End Node
and Internal Node tolerances should be set to the same value, although they can be set
separately.
350
MI_UG.PDF
For regions, the designation of end nodes and internal nodes is irrelevant, since the nodes of
regions form closed loops. Therefore, when you specify tolerance settings for regions, the End
Nodes Tolerance box is unavailable. The only tolerance value you specify is the Internal Node
Tolerance. This value is used for all nodes in region objects.
Specify the unit of measurement for the snap tolerance in the Tolerance Units drop-down list.
351
MI_UG.PDF
5. Specify the Inter-Object Node Snap settings. Select the ENABLE NODE SNAP check box to
activate the settings.
6. Specify the End Node, Internal Node, and the Tolerance units.
7. Specify the Node Thinning/Generalization settings.
8. Select the ENABLE NODE THINNING/GENERALIZATION check box to activate the settings.
9. Specify the 3-Node Co-linear Deviation, Node Separation, and Distance Units values.
10. Specify the Polygon Area Thinning settings. Select the POLYGON AREA THINNING check
box to activate the settings.
11. Specify the Minimum Area and Area Units for the polygons to be removed.
Note:
Distance measurements for all three Snap/Thin operations are calculated using the
Cartesian method. Tables that are in a Latitude/Longitude coordinate system will not
measure these tolerances accurately.
Snap/Thin will clean bad data (self-intersections and overlaps), even if no Snap or Thin values are
used. It uses a related, but not identical, mechanism as is used in the Clean command, and thus
may produce similar, but different, results than can be obtained using Clean. For example,
overlapping polygons will have the overlap removed, but which region retains the overlap, and
which region it is removed from will often be different from those that result from the Clean
command. It is generally not easily determine this before the operation.
Disaggregating Objects
The Disaggregation feature breaks apart objects and their data into their component parts.
You can use Collections as input, ignoring all other objects, to produce a region object, a polyline
object, and a multipoint object, if each exists in the Collection. As many as three new objects will
be created from disaggregating the Collection.
You can also break any multi-part object into its components:
Regions produce new region objects with one polygon per object. Optionally, holes
(interior boundaries) of the original object can be retained as a hole in the result object.
Otherwise, a hole will produce a separate, single (solid) polygon region.
Polylines produce new Polyline objects with one single segment polyline per object.
Multipoint objects produce Point objects, with one new Point object produced for each
node in the Multipoint.
Collections will be recursively broken up. If a Collection contains a region, then that region
will be broken up into multiple region objects as noted above. If the Collection contains a
polyline, then it will be broken up into multiple polyline objects as noted above. If the
Collection contains a Multipoint, then it will be broken up into point objects as noted above.
All other object types, including Points, Lines, Arcs, Rectangles, Rounded Rectangles, and
Ellipses, will remain unchanged. This is only for Regions, Plines, Multipoints, and Collection
objects.
To disaggregate objects:
1. Select the objects you want to disaggregate.
2. On the OBJECTS menu, click DISAGGREGATE. The Disaggregate Objects dialog box
displays.
3. Choose one of the following:
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
352
MI_UG.PDF
Select the ALL OBJECTS button to break up a multi-part object into its component
parts.
Select the COLLECTIONS ONLY button to break up Collection objects.
4. If you selected All Objects, check the RETAIN HOLES IN REGION box to retain holes in the
output objects. If you do not select the check box, a series of single polygon region objects
will be produced, one object for each polygon in the original object. Holes, or interior
boundaries, will produce solid polygon regions. No output region object will contain any
holes.
5. Choose NEXT. The Data Disaggregation dialog box displays.
6. Select the NO DATA check box to prevent columns from the input table being carried to the
output table.
7. Select a Disaggregation method: VALUE, BLANK, or AREA PROPORTION.
8. Click OK.
Erasing Objects
You have two choices in the Objects menu when you want to remove some portion of the target
map object. Use ERASE to erase the portion of the target object that is overlapped by the cutter
object. Use ERASE OUTSIDE to remove the portion of the target object that is not overlapped by the
cutter object.
For example, to add a lake to a region, create the lake as the cutter, position it appropriately and
use the Erase command to remove that portion of the target object under the lake.
Both the Erase and Erase Outside commands support point, multipoint, and collection objects.
To erase map objects using Set Target:
1. Select the object(s) in an Editable layer to be the target.
2. On the OBJECTS menu, click SET TARGET. The object(s) displays in a different style to
indicate that it is the target object.
3. Select (or create and select) one or more map objects from any layer in the Map window
to be the cutter object. The object must be a closed object.
4. On the OBJECTS menu, click ERASE (or ERASE OUTSIDE). The Data Disaggregation dialog
box displays.
5. Choose the appropriate disaggregation method (or NO DATA) for each field in the
Destination list.
6. Click OK.
353
MI_UG.PDF
MapInfo Professional will compute the new object and display it. Use the Info tool to view the
disaggregated data (if any) of the split objects.
Overlaying Nodes
Overlay Nodes allows you to add nodes to the target objects at the points where the target
intersects the cutter object.
For instance, when adding streets to a map that cross existing streets at intersections, use the
Overlay Nodes command on the new street to add nodes that exactly overlay the nodes from the
existing street.
To overlay nodes with Set Target:
1. Select the object(s) in an editable layer as the target. This is the object to which you want
to add nodes. The objects may be closed or linear objects.
2. On the OBJECTS menu, click SET TARGET. The object(s) displays in a different style to
indicate that it is the target object.
3. Select as the modifying object one or more map objects that intersects the target from any
layer in the Map window. The cutter object may be closed or linear objects.
4. On the OBJECTS menu, click OVERLAY NODES.
MapInfo Professional adds the intersecting nodes to the target object(s).
Note:
No data aggregation or disaggregation is performed with Overlay Nodes. The data after
the operation remains unchanged.
354
MI_UG.PDF
355
MI_UG.PDF
11
The graphing feature in MapInfo Professional enables you to create a myriad of different graphs from
three-dimensional bar graphs to exploded pie graphs. Each type of graph has its own set of features that
you can customize to emphasize a particular piece of information, or create the aesthetic look you want for
your graph. These features, plus additional formatting options, give you full control over the look and
content of the graph.
In this Chapter:
Graphing Terms
There area a couple of graphing terms you should be aware of as you read this chapter.
Axis (Axes)
An axis refers to a graduated line bordering the plot area of a graph. Coordinates are measured
relative to the axes. By convention, the X-axis is horizontal and the Y-axis is vertical.
Y Axis
X Axis
Data Series
A data series is the information your graph is based on.
Graph Object
A graph object is any selectable element in your graph.
Graph Series
A graph series is the row of objects you are graphing.
3D Graphs
The 3D graph option enables you to create three-dimensional (3D) graphs, which can give your
information impact and depth. Most of the 3D template options are variations of a bar graph.
Choose from any of the 3D templates listed in this section for the look you want for your graph.
Once you create the basic graph, many more customizing options enable you to fine-tune its
appearance, particularly the 3D Viewing Angle feature, where you can set the angle at which your
3D graph displays.
3D Bar A conventional bar graph in 3 dimensions.
357
MI_UG.PDF
3D Floating Cube Each value being measured, such as population, is displayed as a cube. The
value is indicated by the placement of the cube in the graph. Cubes that have higher values
appear to float within the graph.
3D Floating Sphere This graph is the same as the 3D Floating Cube, except that each value
being measured is displayed as a sphere.
3D Line The values being measured for a category, such as a country or a city, are displayed as
a continuous line across the axis. The line will dip and spike according to the values.
3D Pyramid Each value being measured is displayed as a 3-dimensional pyramid. This graph is
based on a bar graph the higher the value, the taller the pyramid.
3D Round This graph is the same as the 3D Bar graph, except that the values are displayed as
cylinders instead of bars.
Area Graphs
Area graphs enable you to view your graph series as an area, where the area from the X axis to
the plot line of the data series is filled in with a pattern or color. You can choose from the following
templates:
Clustered A clustered area graph draws area risers overlapping each other to show the
absolute relationship between data series.
Percent The percent area graph is an area version of a pie graph whose parts total 100%. Each
group calculates the percent of the total required for each series. The axis goes from 0 to 100%.
Stacked The area risers are stacked on top of each other. The axis is the cumulative total of all
the groups.
Bar Graphs
Clustered The clustered bar graph is a side-by-side group of bars. This is the standard type of
two-dimensional graph.
Percent The percent bar graph is a bar-graph representation of a pie graph. Each group
calculates the percent of the total required for each series. The axis goes from 0 to 100%.
Stacked The stacked bar graph displays stacked groups of bars. Each stack is made up of all
series in this group, added up to obtain a total. The axis is the total value of the cumulative points.
Bubble Graphs
The bubble graph allows you to plot values on an X-Y axis and compare a third value, Z, by the
size of the markers in the graph. The bubble graph requires three values per marker, X, Y, and Z,
in that order. Another way to think of it is that the graph is an X-Y plot where the marker size
depends on a third value, Z.
358
MI_UG.PDF
Column Graphs
Clustered Each group of columns for a category are clustered together.
Percent The percent column graph is a column-graph representation of a pie graph. Each group
calculates the percent of the total required for each series. The axis goes from 0 to 100%.
Stacked The stacked column graph shows stacked groups of columns. Each stack is made up of
all series in this group, added up to obtain a total. The axis is the total value of the cumulative
points.
Histogram Graphs
Histograms show frequency distribution. This graph type groups your values into ranges based on
value. It measures the number of data values that fall within each range. The ranges are displayed
as bars. Choose from these templates:
Horizontal The orientation of the bars is horizontal.
Vertical The orientation of the bars is vertical.
Line Graphs
Clustered In a clustered line graph, lines draw on top of each other to show the absolute
relationships between data series.
Percent The percent line graph is a line-graph representation of a pie graph. Each group
calculates the percent of the total required for each series. The axis goes from 0 to 100%.
Stacked In a stacked line graph, lines stack on top of each other. The axis is the cumulative total
of the all the groups.
Pie Graphs
Pie The pie graph displays percentages of a total as pie wedges.
Ring Pie The ring pie graph is a variation of the standard pie graph. It looks like a ring or donut.
The total value of all the pie slices displays in the center.
Scatter Graphs
A scatter graph is a standard X-Y plot. It requires two values per marker, X and Y, in that order.
Surface Graphs
Surface The surface graph displays all data points as a surface, like a rolling wave.
Surface with Sides A variation of the surface graph, where the surfaces in the graph have solid
sides.
Surface, Honeycombed A variation of the surface graph, where the surfaces in the graph have
a honeycombed look.
359
MI_UG.PDF
2. Click one of the graph types shown in the Graph group in the left pane. When you select a
graph type, the templates for that graph type display in the Template group.
3. Next, choose a template from the right pane. Some graph types have several templates to
choose from. Others, such as the bubble and scatter graph types, have only one template.
See Using Graph Templates on page 372 for more information about templates.
4. Click NEXT when you have selected a template. The Create Graph step 2 of 2 dialog box
displays.
Here, select the table and the fields from the table you want to graph. You can also choose
what column you want to use for your labels.
360
MI_UG.PDF
Note:
5. Choose the table you want to graph from the Table drop-down list. The list displays the
currently open tables.
6. Choose the fields from the table you want to graph. Select a field from the Fields from
Table list, and either double-click it, or highlight it (single click) and click the ADD button.
Both methods will move the field to the Fields for Graph list. You can use the REMOVE
button in the same way to move fields back to the Fields from Table list.
7. Arrange the fields in the desired order using the Up and Down buttons. Select a field you
want to move and use the Up and Down buttons to place it in the position you want.
Some graph types use the first field for axis labels (bar, 3D, column), and other graph
types use the order of the fields to determine X and Y values. In the case of bubble
graphs, the field order also determines the Z value.
8. If applicable, choose whether you want to graph your series by row or by column. This
option is not available for bubble, histogram, or scatter graphs. Click the button beside the
option you want.
9. Click OK. Your graph displays in a Graph window.
Editing a Graph
Once you create the basic graph, your ability to customize it is unlimited and depends only upon
the message your graph needs to convey. You have complete control over virtually every aspect of
your graph and every item in the Graph window. The customizing options available depend on the
graph type you have selected.
361
MI_UG.PDF
362
MI_UG.PDF
When you select an axis tab, the tabs at the top of the dialog box will change to reflect the
available formatting options for that axis. Each axis is described in this section:
Category Axis All graph types, except bubble, histogram, and scatter graphs, have a
category axis. The category axis defines the groups of items that are being graphed.
When category axis labels are displayed, the labels are taken from the first row in your
table.
Y1 Axis All graph types except pie graphs have a Y1 axis, or primary numeric axis. This
axis plots the values from the rows and columns in your table.
Y2 Axis Area, bar, bubble, column, line, and scatter charts can be drawn on two numeric
axes, Y1 and Y2. When a dual-axes graph is selected, MapInfo Professional automatically
divides the number of series in half and assigns half of the series to one axis and the other
half to the second axis. The two axes can be drawn up or out from the same plane/base
line or physically split into two separate sections on the graph.
MapInfo Professional 7.5
363
MI_UG.PDF
X-Axis Bubble, histogram, and scatter graphs include an X-axis. These graphs have two
numeric axesa Y1 axis that is drawn on the left side of the graph and an X axis that is
drawn on the bottom of the graph frame.
Series Axis A series axis is included only in 3D riser and 3D surface graphs. The series
axis is also called a secondary ordinal or O2 axis. In two-dimensional graphs, the series or
rows of objects being graphed are shown in the legend area of the chart. In 3D graphs,
these objects are shown on the series axis, which is on the lower left side of the 3D graph.
The text boxes next to those titles become available. You can use the default titles or create your
own. Choose from these titles:
Title Displays the main title of the graph. The title is centered over the top of the graph.
Subtitle Displays the subtitle of the graph. The subtitle displays directly underneath the
main title.
Footnote Displays a note at the bottom right hand corner of the graph.
Category title Displays a title for the category axis of the graph. It is placed just above,
below, or next to the category axis labels.
Value title (Y1) Displays a title for the primary numeric (Y1) axis of your graph. Use the
title to explain what is being plotted on this axis.
Value title (Y2) Displays a title for the secondary numeric (Y2) axis of your graph. In
dual-axes graphs, the primary (Y1) axis shows some of the groups in your data, and the
secondary numeric (Y2) axis plots other groups of data. Use the title to explain what is
being plotted on this axis.
X-Axis title Displays a title for the X-axis, where applicable. Histogram, bubble, and
scatter graphs include a numeric X-axis.
Series Axis Displays series labels along the lower left side of a 3D graph. Series titles
can further describe the information that is being graphed on this series axis. These titles
normally correspond to the series labels displayed in the legend.
All graphs can include a title, subtitle, and footnote. Most graphs can also include a Category Axis
title and a numeric Y1-Axis title. Other axis titles may be available depending on the graph type.
Titles can be moved from their default positions by clicking and dragging them to the desired
position. To change other elements in the title, such as the font or the text color, select the title
directly in the Graph window and choose the Formatting command in the Graph menu.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
364
MI_UG.PDF
General Contains general formatting options for a series for each type of graph. For
instance, in 3D column graphs, you can change the riser shape; in bubble graphs and
other graph types that may use markers such as line graphs, you can change the shape of
the markers. In pie graphs, you can manipulate the individual pie slices. You can detach a
slice from the pie, delete a slice, or restore the pie back to its original state. In many graph
types, you can also display the selected series as another graph type. For example, if you
create a bar graph, you can change a selected series to display as a line or an area,
contrasting that series to the rest of the series in the graph.
Data Labels Specify whether you want to display data labels for the selected series and
where you want to place the labels. Data labels show the actual values from your table.
Number Specify how you want to display data label numbers. You can choose from a
number of categories: general, number, currency, date, time, percentage, fraction,
scientific, special, and custom. This tab is available when the Data Labels box is checked
in the Data Labels tab.
Trendlines Contains formatting and display options for trend lines. This tab is
unavailable for 3D and pie graphs. You can display a trend line according to different types
of regression: Linear, Logarithmic, Polynomial, or Exponential. You also have several
MapInfo Professional 7.5
365
MI_UG.PDF
other display options. You can display the equation used to create the trend line, show the
coefficient values, or specify that the trend line display in the same color as the series.
The General Options for pie graphs enable you manipulate the look and rotation of the pie slices
easily. The left side of the dialog box shows a preview of what the finished pie graph will look like.
You can change the tilt, or the angle at which you view the pie. You can give the pie a 3D look by
using the Pie Depth setting.
366
MI_UG.PDF
You can also rotate the pie or explode the pie. When you explode the pie, you detach all the slices
away from the center. You can also detach an individual slice away from the pie center using the
Series Options (on the GRAPH menu, click SERIES).
The next graph shows the same pie graph, based on the General Options settings indicated
above.
367
MI_UG.PDF
When you choose the 3D Viewing Angle option, preset angles for your graph display. You can
choose one of these, or use the Advanced options to create your own angle, position, and rotation.
The Advanced portion of the dialog box displays additional controls that allow you to scroll through
the presets more quickly, and manipulate the angle and position of the graph manually.
Use the controls along the bottom of the graph preview to scroll through the preset viewing angles.
You can also select one from the drop-down list.
368
MI_UG.PDF
Click an arrow
to rotate the
graph.
369
MI_UG.PDF
Above, the same graph that was shown earlier is displayed here using a different preset angle.
The walls of the cube have also been removed, as well as the values for the Value Axis, in the
Display Status tab of the General Options dialog box.
All of the 3D Viewing Angle options have been used in this graph. The graph has been rotated
about 90 degrees from the earlier example. The Pan and Move options have also been used to
position the graph. And the Walls option has been used to increase the thickness of the floor of the
cube.
Table Selections
In a graphed table, any selections you make in the table with the Select tool will be reflected in the
corresponding Graph window as long as the selected table row or map object corresponds to an
object in the graph. For example, in a bar graph, one or more of the bars will be highlighted. In a
pie graph, one or more of the pie wedges will be highlighted. The selection in the Graph window
uses the same pen and brush styles that are used to highlight selected objects in the Map window.
370
MI_UG.PDF
Saving a Graph
Graphs are saved to workspaces. For each Graph window in the workspace, MapInfo Professional
saves a uniquely named .3TF file in the same directory as the workspace. The name of the graph
file is:
<WORKSPACE NAME>, <WINDOW TITLE>.3TF
371
MI_UG.PDF
The <workspace name> is the root name of the workspace being saved and <window title> is the
title of the Graph window being saved. For example, if you save a workspace named MY
WS.WOR and it contains a Graph window with the title, Scatter Graph, MapInfo Professional
creates the graph file MY WS, SCATTER GRAPH.3TF in the same directory as the original
workspace, MY WS.WOR.
File Description
3D Viewing Angles
Gradients
Pictures
Files correspond to the pictures available in the Choose Picture dialog box
(on the GRAPH menu, point to FORMATTING and click FILL TAB).
Templates
Contains the available graphing templates listed in the Graph wizard (Create
Graph step 1 of 2 dialog box).
Textures
Files correspond to the textures available in the Choose Gradient dialog box
(on the GRAPH menu, point to FORMATTING and click FILL TAB).
Location Preferences
Using the Directory preferences, you can change the location where MapInfo Professional looks
for all the support files. To do so:
1. On the OPTIONS menu, point to PREFERENCES and click DIRECTORIES. The Directory
Preferences dialog box displays.
2. In the Initial Directories for File dialog boxes group, select Graph Support Files.
3. Click MODIFY. The Choose Directory dialog box displays. It shows the current location of
the Graph Support files. Navigate to the directory where you want to store the files, and
click OK. The new location of the files displays in the Initial Directories list.
4. Click OK to close the Directory Preferences dialog box.
Although the location of the GraphSupport directory can be changed, the names and locations of
the support file folders inside the GraphSupport directory cannot. MapInfo Professional looks in
the GraphSupport directory specifically for the appropriate support folders and files as listed
above.
372
MI_UG.PDF
1. Make the modifications in the Graph window that you would like to save as a template.
2. On the GRAPH menu, click SAVE AS TEMPLATE. The Save Graph Template dialog box
displays. It shows the template folder that corresponds to the type of graph you are saving
as a template.
3. Name your graph template and click SAVE.
The next time you create a Graph window, the saved template file will be available in the Graph
wizard for that graph type.
Note:
You can save a template file to a location other than the GraphSupport\Templates
directory; however, it will not be available unless you save it to a folder in the Templates
directory.
373
MI_UG.PDF
12
Most of us do not get to make maps solely for our own use. We use the maps we create in MapInfo
Professional to create presentations, to publish them on the web, or to include as part of another
document. This chapter will help you create presentation quality maps and prepare you for printing and
exporting your work.
To change the style of one region, click the region and on the OPTIONS menu, click
REGION STYLE from the main menu.
2. Make the region changes you want to see in your map window in this dialog box and click
OK to save them. If you opened Layer Control, you will need to click the OK button in that
dialog box as well to see the results.
Fill
These are the fill options you have in the Region Style dialog box.
PATTERN Choose a palette for patterns. If you do not want to use a pattern, choose
the letter N, for none; the foreground and background color are disabled. If you
choose the solid black pattern, the background color is disabled.
COLOR Choose a color for the object(s) foreground. The Sample box displays the
pattern using the foreground color you chose. The foreground color is applied to the
part of the pattern that displays as black. Therefore, to make the object a solid color,
choose the solid black pattern in the Fill Pattern palette and a color from the
Foreground Color palette. The color you chose displays in the Sample box as a solidcolored region.
375
MI_UG.PDF
BACKGROUND COLOR Check the box to display a background color; clear for a
transparent background. Choose a color for the objects background. The
background color is applied to the part of the pattern that displays as white.
Background color is grayed if you have chosen the solid black pattern.
Border
These are the border options you have in the Region Style dialog box.
To change the style of one line, click the line and on the OPTIONS menu, click LINE
STYLE from the main menu.
2. Make the line style changes you want to see in your map window in this dialog box and
click OK to save them. If you opened this dialog box from Layer Control, click the OK
button in that dialog box as well to see the results.
STYLE Select the new line style from the drop-down list.
COLOR Choose a color for the line from this drop-down list. The Sample box
displays the pattern using the color and line style you select.
WIDTH (IN PIXELS AND POINTS) Choose the line width from one of these drop-down
lists. In the Pixels field, select a width of the line in pixels. In the Points field, select a
point size from the drop-down list, or enter a point size.
INTERLEAVED If you select a line style that uses multiple passes to create it, MapInfo
Professional enables the Interleaved check box. Keep in mind these notes:
The Interleaved option is not enabled for solid lines
The Interleaved option is not activated for borders
The Interleaved option is not appropriate for all multiple pass lines
376
MI_UG.PDF
To change the style of one symbol, click the symbol and on the OPTIONS menu, click
SYMBOL STYLE from the main menu.
Note:
The options in this dialog box may be different based on the symbol(s) you
selected.
2. Complete your selections and entries in this dialog box and click OK. If you opened this
dialog box from Layer Control, click the OK button in that dialog box as well to see the
results.
Font
Choose a font from the drop-down list. In addition to the symbol sets provided by MapInfo,
the list displays any fonts installed on Windows. The Custom Symbols category lists those
bitmaps you have created and saved to the CUSTSYMB directory.
Size
Choose a size or type a different point size. The maximum size is 240 points.
Symbol
Choose a symbol type from the symbol palette.
Color
Choose a color from this list for the symbol.
Reload
Click this button when you have added your own custom symbols to update the list. If you
restarted MapInfo Professional since adding the new custom symbols you do not need to
select the RELOAD button.
Full View
Click this button to display large images in a separate window.
Rotation Angle
Specify number of degrees the symbol should be rotated; 0-360.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
377
MI_UG.PDF
Background
In this box, you can specify a background. Select one of these:
Effects
In this box, you can specify special effects for the symbol. Not all of these options display
all the time. You can select one or more of these:
Sample
When you select a symbol style, it displays in this box to show you a sample of the symbol
using the designated selections.
To change the style of one text entry, click the text and on the OPTIONS menu, click
TEXT STYLE from the main menu.
To change the style of all text entries in the same layer, click
to display the Layer
Control dialog box, highlight the layer the text entries display in and click DISPLAY.
2. Make your selections and entries in this dialog box and click OK. If you opened this dialog
box from Layer Control, click the OK button in that dialog box as well to see the results.
Font
Choose a font from the font drop-down list.
Size
Choose a point size from the point size drop-down list.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
378
MI_UG.PDF
Text Color
Display the color palette; choose a text color.
Background
In this box, you can specify background options for the selected text. You can select only
one of these options:
Effects
In this box, you can specify special effects for the selected text. Not all of these options
display all the time. You can select one or more of these:
Sample
The results of the options you choose show in this box.
Labels are attributes of geographic objects in the map layer. The text is based on data
associated with that object.
379
MI_UG.PDF
Labels are attributes of geographic objects in the map layer. They are not drawn to the Cosmetic
layer, as in previous versions of MapInfo Professional, and they are not Cosmetic objects. Their
drawn location is based on the location of the geographic objects centroid and additional
information such as anchor point and offset controlled in the Label Options dialog box.
As attributes, labels are dynamically connected to their map objects. If the layer is closed or is
made invisible, the labels no longer display. If the data or geographic information changes, the
labels change. If you create an expression for your labels and change the expression, the current
labels are dynamically replaced with new ones.
Labels are always selectable and editable, so you do not have to make the map layer editable or
selectable to work with them. And, since labels are not Cosmetic objects, you do not have to
remember to make the Cosmetic layer selectable or editable to label your map. They are already
part of the map layer.
Saving labels is easy. Because labels are attributes of the map object, you do not have to
remember to save them to a separate table. Any label edits you have pending, or changes you
have made to the Label Options settings, are easily saved to a workspace.
You can label your map automatically through Layer Control, in the Label Options dialog box. All
global settings for labels are controlled in the Label Options dialog box.
380
MI_UG.PDF
The Chr$(13) function tells MapInfo Professional to add a carriage return to the first line. Now
using the Label tool, click a country. MapInfo Professional labels it with the result of the
expression.
Using AutoLabeling
In addition to label content, you control the position, display and look of automatic labels in Layer
Control. The settings in the Label Options dialog box allow you to set conditions for displaying
labels, in what style they will display, and in what position for all the objects in the layer.
381
MI_UG.PDF
2. Select the appropriate options for your new labels and click OK to save them.
VISIBILITY Use these options to indicate whether this label should display.
Click ON to display the labels for this layer.
Click OFF to hide the labels for this layer.
DISPLAY WITHIN RANGE You can also display labels within a specified zoom range,
much the same way that you display map layers within a certain zoom range. Select a
layer, click LABEL, and in the Label Options dialog box, click the DISPLAY WITHIN
RANGE button. This activates the Min. and Max zoom boxes. Fill in the minimum and
maximum zoom distances in the appropriate boxes.
When labeling a dense table of streets such as a StreetPro Display layer, only a few of
the streets will be labeled when the map is zoomed out.
The check boxes on the right side of the Visibility group control which labels display
and determine how they appear on the map.
ALLOW DUPLICATE TEXT Select the ALLOW DUPLICATE TEXT check box to allow
duplicate labels for different objects to display, e.g., Portland, OR and Portland, ME.
This option is also used with street maps to label street segments individually.
ALLOW OVERLAPPING TEXT Select the ALLOW OVERLAPPING TEXT check box to allow
labels to be drawn on top of each other. Some labels do not display because they
overlap labels that are have been given higher priority on the map.
LABEL PARTIAL OBJECTS Select the LABEL PARTIAL OBJECTS check box to label
polylines and objects whose centroids are not visible in the Map window.
MAXIMUM LABELS To specify the maximum number of labels you want to display on
your map, type the number in the Maximum labels box.
STYLES In this box, you can select the styles for the Labels and Lines in the
selected layer.
NO No line displays extending to the label.
382
MI_UG.PDF
SIMPLE Create a callout by using a simple line that connects the label to the objects
centroid. Label lines display after you move the label from where it was originally
created.
ARROW Create a callout by using an arrow and line that connects the label to the
objects centroid. Label lines display after you move the label from where it was
originally created.
POSITION Use the Anchor Point and Offset options to specify the labels placement.
The anchor point is the labels position relative to the map object. Click one of the
buttons to select an anchor point. The next table describes each of the nine anchor
point buttons.
Anchor Point
Button
Position
Description
Top Left
Top Center
Top Right
Left
Center
Right
Below Left
Below Center
Below Right
The anchor point is an ongoing attribute of the label. For example, if you anchor a point
objects label at Center Left and you increase the labels font size, the text will grow to the
left. This way, the text can never overwrite the point.
The default anchor point varies with the type of map object you are labeling:
Regions default to CENTER.
Lines default to ABOVE CENTER.
Points default to RIGHT.
If you are working with a layer that has line objects such as a street map, check the Rotate
Label with Line box to position the labels parallel to the lines.
Label offset is how far away a label is from its anchor point. Specify the number of points
you want the label to be from the anchor point in the Label Offset box.
383
MI_UG.PDF
The labels anchor point and offset move a label with respect to its current location and the
current zoom. Whenever you want to make minor adjustments to the labels position, you
should use these two options.
You can also select and drag a label to move it, but this is not recommended because you
are actually moving the label location on the map. If you drag a label a few pixels, the
distance you move it is in the current map units, regardless of the zoom. For example, if
you are displaying a map of the United States and drag New York states label a few
pixels, at that zoom, the label looks fine. However, if the Map Units distance is in miles and
you zoom in on New York state, the label will display much farther away than at the
previous zoom.
Note:
Affecting Label Priority: Labels display following the order of records in the table. To
change the order of priority for displaying labels, save a copy of the table, sorted in order
of priority -- most important record first -- and use that table for labeling instead of the
original.
In a table sorted alphabetically by street (like the StreetPro Display layer) this often means that
streets with names beginning with A, B, or C are almost the only labeled streets on your map.
Labeling effectively gives a small side street like Aberdeen Street priority over State Highway
177 or other major roads that might actually be useful in navigating or orienting a viewer. This will
be true for any dense StreetPro Display layer.
Creating Callouts
Callouts are labels with lines pointing to the objects they are labeling. They are very useful when
there are many labels in a relatively small area. For example, you are labeling a map of Asia.
There are many small countries that are relatively close together. If you tried to label all the
countries, the labels would overlap and be difficult to read.
To create callouts, set the Label Lines option in the LAYER CONTROL menu, click LABEL OPTIONS
dialog box to SIMPLE or ARROW for the layer that you want to label. Click the LINE STYLE button to
choose the style of line you want for your callouts. On the map, select a label with the Select tool
and drag it away from its anchor point. When you release the mouse, MapInfo Professional draws
a line from the label to the anchor point.
You can move the endpoint of the callout to position it more precisely. Select the label and drag the
edit handle at the end of the callout to its new position.
Note:
As in previous versions, you can double-click the text and set the label line in the Text
Object dialog box.
Label Styles
The Text Style dialog box gives you a number of choices for label and text object styles. You can
also change the styles of multiple selected labels at a time.
To make style changes for all the labels, click the Style button in the Label Options dialog box to
display the Text Style dialog box.
384
MI_UG.PDF
To change the styles of a selected label or labels, select the label(s) and either on the OPTIONS
menu, click TEXT STYLE, or click the TEXT STYLE button in the Drawing toolbar to display the Text
Style dialog box. If you change the styles of multiple labels at once, hold down the Shift key as you
select each label.
Make the style changes you want. When you return to the map, the selected labels display with the
style changes you specified. The available styles are explained in the next table.
Option
Description
Bold
Italic
Underline
All Caps
Shadow
Expanded
Choose HALO to create a halo effect around the text. This puts the text into relief from
whatever it covers (e.g., part of a region, or a street, etc.).
When you choose either the BOX or HALO backgrounds, the Color list is activated. Click it to
display a palette of colors for the halo or the background. The color you choose corresponds to the
button that is currently activated. The color displays in the box and in the Sample. Click OK to
accept.
Labeling Interactively
Although you will probably do most of your labeling automatically, you will need interactive labeling
to edit and create individual labels.
Editing Labels
It is very easy to edit individual labels, either those you have displayed automatically or those you
have created interactively with the Label tool. Using the Select tool, double-click the label. The
Label Style dialog box displays. The changes you make in Label Style dialog box apply only to the
selected label. Changes you want to apply to all the labels must be done through Layer Control in
the Label Options dialog box.
385
MI_UG.PDF
The Label Style dialog box allows you to make changes to the text, position, and angle of the
labels. You can also make changes to callouts, add, or delete them.
To change the label content, simply type the new label text into the Text box. The other controls in
this dialog box work the same way as in the Label Options dialog box.
Moving a selected label is the same as moving other objects; simply drag them with the mouse. If
you move a label that has a callout, the line will reappear automatically after you move the label.
You can also rotate the label manually about its anchor point. When you select the label, use the
rotation edit handle that appears to the lower right of the label.
Convert labels into text objects, so that they can be saved in a permanent table.
Draw text objects one at a time using the Text Label button. This allows you to create
multiple annotations for a single map feature, which is something you cannot do using
labels.
386
MI_UG.PDF
FROM LAYER - Lets you choose which layers labels are converted.
TO LAYER - Lets you choose where to store the labels after they are converted into text
objects. If you choose <New> from the list, MapInfo Professional creates a new table
to store the text objects. (MapInfo Professional prompts you to type in the tables
name after you click OK.)
INCLUDE HIDDEN LABELS - When you create autolabels and manually delete some of
those labels, MapInfo Professional considers each of the deleted labels to be hidden.
If you want to create a text object for each of the hidden labels, check the box;
otherwise, clear the box.
TRANSFER LABELS FROM: Map View or Layout View
This option is available if the Map window appears in a Layout. If you are using
autolabels, the Layout window might display different labels than the Map window,
because MapInfo Professional tries to fit as many autolabels as will fit in the view.
Click MAP VIEW or LAYOUT VIEW to choose whether MapInfo Professional creates text
objects that match the Map window or the Layout window labels.
4. When you click OK, MapInfo Professional converts the labels for the selected layer into
text objects.
If you display the Layer Control dialog box, you will notice that the layers Auto Label check box is
no longer checked. The Labeler tool automatically clears the box to prevent map features from
looking like they are labeled twice. If the Auto Label check box remained selected, MapInfo
Professional would display both a label and a text annotation for each map feature, causing the
map to appear to be labeled twice.
387
MI_UG.PDF
Removing Labels
The easiest way to remove all labels in a layer is to use the Visibility controls in the Label Options
dialog box. To remove all the labels from a layer:
Click the OFF button to turn the display of the labels off. It will disable the display of all the
labels in that layer, both automatic and interactive.
To display only edited labels or those you have created with the Label tool:
1. On the MAP menu, click CLEAR CUSTOM LABELS to remove the labels. You will be
prompted to discard the custom labels and revert back to the default settings.
2. Click DISCARD. Your labels will revert back to the automatic labels. If you do not want any
labels to display, turn Visibility off.
To delete individual labels from a Map window:
Use the DELETE key or on the EDIT menu, click CLEAR command. This is useful if you have
a number of edited labels and you want to delete one and still keep the rest.
388
MI_UG.PDF
Note:
Do not use the DELETE key or on the EDIT menu, click CLEAR options to delete more than
a few labels from the map.
To replace labels already displaying with new ones, do not delete the old ones first. You will get
unexpected results if you do this. For example, if you create labels with an expression and want to
change the expression, do not delete the labels first. Simply change the expression in the Label
Options dialog box. If you delete the labels first, you are deleting the label for the object, not a
piece of text. So, if you create labels with a different expression, they will not display because by
deleting the old labels, you have edited the table so that it does not display labels for these objects.
On the MAP menu, click CLEAR CUSTOM LABELS to revert back to the default settings.
Saving Labels
Whenever you manually edit automatic labels (including deleting using the EDIT menu, and click
CLEAR or press the DELETE key), change the settings on automatic labels, or create labels with the
Label tool, you will need to save your map to a workspace to have them display in your next
session.
For example, label settings are deactivated by default. You check the Auto label attribute in Layer
Control to display automatic labels on your map and do not save the change when you close the
table. The next time you display your map, the labels do not display because the settings go back
to the defaults. As with the other Layer Control options, label settings are temporary unless you
save the table to a workspace.
Manually edited labels and labels created with the Label tool behave differently. These are edits to
the table, not temporary settings. If you close a window or a table and you have label edits
pending, MapInfo Professional will specifically prompt you to save the session to a workspace.
This also applies to labels you have deleted using the EDIT menu, click CLEAR or press the DELETE
key. You may not have any labels visible on your map, but because deleting a label is an editing
operation, MapInfo Professional will ask you if you want to save the edits to a workspace.
389
MI_UG.PDF
While you can print individual Map, Browser, and Graph windows directly without the Layout
window (on the FILE menu, click PRINT), you can only print a thematic legend by first adding it to a
Layout window. You can also print the data contained in the Info tool, statistics and message
windows from the Layout Window.
The Layout window is available as soon as you open MapInfo Professional. On the WINDOW menu,
click NEW LAYOUT window to access it. When the Layout window is active, MapInfo Professional
puts a Layout menu on the menu bar, allowing access to a number of layout features.
When you add your windows to the Layout window, MapInfo Professional places them inside
layout frames. Using frames to hold your maps and browsers allows you to resize and reposition
your windows with ease. The contents of the frame match the contents of the corresponding Map,
Browser or Graph window.
The Layout window provides dynamic linking between it and a parent window. For instance, if you
change the zoom in a Map window, that map will be updated in the Layout window once you make
the Layout window active again.
The rest of this chapter is devoted to learning how best to create a layout, move around in the
Layout window, and customize your layout using a variety of options.
390
MI_UG.PDF
Use the Zoom-in and Zoom-out tools. These tools work exactly as they do in the Map
window. You can click the Layout window with the tools or draw a marquee box around the
areas of the Layout window.
On the LAYOUT menu, click CHANGE ZOOM to set the zoom. You can set the zoom
anywhere between 6.3% and 800%.
Use the number keys (18) on your keyboard to set the zoom level. As the numbers
increase, the zoom increases geometrically. For example, press 1 to get a zoom of 6.3%,
press 2 to get a zoom of 12.5%, and press 3 to get a zoom of 25%. (Remember to use the
number keypad, and make sure NUM LOCK is on.)
Use the View commands in the Layout menu: View Actual Size, View Entire Layout,
Previous View.
391
MI_UG.PDF
shift to a different location, and then return via MAP menu (click PREVIOUS VIEW). To get two views
of the same map for a Layout, you must have two separate Map windows. There are many
techniques that can be used to prepare the windows to make output easier.
3. As stated previously, there must be a separate Map window for each view you want to
include in a layout. Instead of re-opening the tables to re-create the Map window, on the
MAP menu, click CLONE VIEW to create a duplicate Map window.
4. A new Map window displays. Zoom out on this map to create the overview map.
392
MI_UG.PDF
Note:
The new Map window is independent of the original Map window. You may add or
remove layers without changing the original map.
Convert labels into text objects, so that they can be saved in a permanent table.
393
MI_UG.PDF
Draw text objects one at a time using the Text Label button. This allows you to create
multiple annotations for a single map feature, which is something you cannot do using
labels.
Creating a Layout
Creating a layout involves adding your Map, Legend, Graph, and Browser windows to the Layout
window, positioning these items where you want them, and adding any annotations such as text
and titles so that your final layout presents the message you want to send.
Description
MapInfo Professional places a single open frame in the center of the layout.
You select the contents of this frame through the drop-down menu that lists all
open windows.
If you choose a Map or Graph window from this list and there is an active map
legend, MapInfo Professional automatically places the legend in the layout. You
can reposition or delete this legend from the layout. Legends are positioned in
the same way as Map, Browser, and Graph windows. Their relative locations
are preserved on the screen.
This option tells MapInfo Professional to place all open windows in the layout.
Since MapInfo Professional places windows in the approximate location and
size as they appear in the MapInfo Professional window, you should arrange
and size the windows before you bring them into the layout.
No Frames
If you prefer, you can create a blank layout by choosing the No Frames option.
If you do not have any windows open, choosing New Layout Window
automatically creates a blank layout. The New Layout Window dialog box does
not display.
MapInfo Professional 7.5
394
MI_UG.PDF
Copy or cut the frame and paste it into another Layout window.
You can also position frames so that they overlap one another or overlap other graphic objects.
To change which window is displayed in a frame, double-click the frame with the Select tool. Use
the drop-down list in the Frame Object dialog box to change the frames contents.
If you draw a frame when no windows are open, MapInfo Professional places a blank
frame in the Layout window.
Note:
This dialog is slightly different for each type of frame. The Map Scale options are
only available when you select a Map window in the frame. The FILL FRAME check
box does not display for Browser, Cartographic Legend, and Graph windows.
3. In the WINDOW drop-down list, select the window you want to add and review the options
for creating this frame.
BOUNDS X1 AND 2, BOUNDS Y1 AND Y2 Use these fields to define the x and y
boundaries for the new frame. When you change bounds entries, the Center, Width,
and Height entries change accordingly. When you change the bounds entries, the
MAP SCALE changes as well.
CENTER X, Y Use these fields to define and adjust the center point of your new
frame.
Note:
When you make a change to the CENTER X or Y entries, the WIDTH and HEIGHT
bounds do not change.
MapInfo Professional 7.5
395
MI_UG.PDF
WIDTH, HEIGHT Use these fields to define and adjust the width and height of the
new frame.
CHANGE MAP ZOOM Click this radio button to implement the correct map scale
without changing the size of the frame. This option changes the zoom of the actual
Map window so that the Layout frame is in the correct scale. This option is selected by
default. Type the scale you want within this frame in the Scale. The units are set by the
Paper Unit setting in the System Preferences dialog box. For example:
Map Scale = Scale field entry x (Frame width / Map window width)
Note:
Changing the map scale with this option will not change the values in the Bounds
fields or the Width and Height fields because there is no change to the size of the
frame, only the look of the map within the frame. To undo the change to the map
zoom, return to the Map window and click PREVIOUS VIEW.
RESIZE FRAME Click this radio button to change the size of the frame based on the
data you enter into the Scale field. When you change this entry, the bounds, Center,
Width, and Height entries change accordingly.
FILL FRAME WITH CONTENTS Click this check box to display as much of the Map
window as fits in the frame. When you do not select this button, the frame may be only
partially filled but it will have the same contents as the window it contains.
When you click the CHANGE MAP ZOOM or RESIZE FRAME radio button, you set your
selection as the default for the rest of the session. If you change it during the session, the
change becomes the default.
396
MI_UG.PDF
In cartographic legends, you must create the legend on your desktop (on the MAP menu, click
CREATE LEGEND) before you can add it to the Layout window.
Vertical Alignment
Align center of
Align center of
Distribute
Distribute
Each alignment can be performed with respect to each object or to the entire layout. When you
choose the entire layout, the objects are aligned with respect to the top, bottom, left, and right
edges or margins of the layout.
If you want to align objects with respect to each other, the objects are aligned with respect to an
imaginary rectangle, called the bounding rectangle, that completely encloses the objects. The
horizontal and vertical settings you choose position the objects at the top, bottom, left, right, and
horizontal or vertical center lines of the bounding rectangle, rather than at the edges of the layout.
The Distribute option tells MapInfo Professional to distribute the vertical and horizontal space
between objects evenly.
You can perform multiple alignments in one layout.
397
MI_UG.PDF
To align the small map and text that are located side by side below the large map:
1. Select the small map first.
2. Shift-click to select the text without cancelling the selection of the small map. (You can
also use the Marquee Select tool to select both at once.)
3. On the LAYOUT menu, click ALIGN OBJECTS.
4. Align the two objects so that they are vertically centered with respect to each other. In the
Align Objects dialog box, disregard the horizontal component for the moment (make sure
it says DONT CHANGE).
5. Choose ALIGN CENTER of from the drop-down list in the vertical component.
6. Choose with respect to each other and click OK.
The layout readjusts by moving the objects vertically to show the centers of the map and text lined
up with each other.
398
MI_UG.PDF
Now you want to align the large and small maps so that their left edges are horizontally aligned
with respect to each other. Select the two objects and on the LAYOUT menu, click ALIGN OBJECTS.
In the Align Objects dialog box choose Align left edges of and with respect to each other in the
horizontal component. In the vertical component choose DONT CHANGE. Click OK.
The map now shows the left edges of the two maps in alignment.
As a final alignment, you want to align the right edges of the large map and the browser. Select the
objects and specify Align right edges of the selected objects with respect to each other.
Your layout now looks like this:
399
MI_UG.PDF
Accurate scale is more important on the printed map. To get the correct scale for output, you must
coordinate the Map window with the Layout window. You must also decide on the desired end
result. For example, you may want a map that has a 1:25000 scale and fits in a nine inch Layout
frame. If this is the case, you will have to alter the zoom level of your map to fit these conditions.
Or, in the case where you must show a set distance across the map, you may have to allow for a
larger page size. The following two formulas will help you set the right map zoom, scale, and frame
width.
For example, you need to make a map that will be in a scale of 1:24000 and fit in an eight inch
frame. You need to determine the zoom level that will accommodate the map scale and frame
width. Calculate the following:
((8 * 24000) / 12) / 5280) = 3.03
On the MAP menu, click CHANGE VIEW and enter 3.03 miles as your new zoom level.
For example, you need to make a map that will be in a scale of 1:100000, and you must view a
twenty mile zoom level. You need to determine the frame size that will accommodate the scale and
zoom. Calculate the following:
(20 * 5280 * 12) / 100000 = 12.67
Your frame needs to be 12.67 inches wide. If your printer is not large enough to handle this,
change your layout size to spread over two pages.
400
MI_UG.PDF
Now you are ready to draw the ScaleBar. When you create a ScaleBar in a layout, the Adjust font
size to match scale check box is only available in the Set up ScaleBar options. On the TOOLS
menu, point to SCALE BAR and click SET UP SCALEBAR to select this option before you proceed.
To draw the scalebar:
1. On the TOOLS menu, point to SCALEBAR and click DRAW SCALEBAR. This option
automatically positions the ScaleBar in the lower left corner of the Layout window. A
Warning dialog box displays, telling you that the Layout frame and the associated Map
window are not currently set up to print to scale.
2. You can adjust the Layout frame or the Map window, or ignore the message. Select the
check box if you do not want to receive warnings about the scale again. The Draw
Distance Scale in Mapper dialog box displays.
3. Choose the width of the ScaleBar and the aspect ratio.
4. Set the text style and fill colors.
5. Click OK. The scalebar is drawn to your Layout window in the lower left corner.
If you select the Curve ScaleBar with latitude lines check box, the scalebar is accurate
only along its curve and only if the Spherical calculation method is used.
If you do not select the check box, the ScaleBar is accurate straight across, but only if
the Cartesian calculation method is used.
Check the Map Options dialog box (on the MAP menu, click OPTIONS) to see which
distance calculation method is in use for your Map window.
The ScaleBar tool that is placed on the Tools toolbar when the ScaleBar tool is loaded
enables you to create a ScaleBar and position the left edge of it anywhere on your layout.
Click the SCALEBAR tool, and click the Layout where you want to position the left edge of
the scalebar. Follow step 2 to step 5 above to complete the ScaleBar.
401
MI_UG.PDF
Note:
The objects that make up the scalebar are drawn to the Cosmetic layer. To move the
scalebar, make sure that all of the objects are selected, and click and drag the ScaleBar to
a new location.
Cloned windows in a workspace are written as MapBasic commands to the .WOR file.
These command statements cannot exceed 32,000 bytes.
Now that you have completed your professional looking layout, printing is a simple matter.
Joined tables
Manual creation
A legend frame is another way to refer to a particular layers legend. You can create an individual
legend window for each layer in your map, or you can have several legend frames in one legend
window. The properties for each legend frame can be edited individually.
402
MI_UG.PDF
2. Select the layers you want to include in the legend using the ADD and REMOVE buttons.
Each layer corresponds to one frame in the legend.
To remove a layer, click the layer in the Legend Frames group to select it and click the
REMOVE button. In our example, well remove the USA, US_CNTY, and US_CTY 8K
layers. That leaves only the landmarks and highways layers in the legend.
403
MI_UG.PDF
3. The frames appear in the legend in the order in which they appear in the Legend Frames
group. You can change the order of the legend frames using the UP and DOWN buttons.
4. Click NEXT. The Create Legend Step 2 of 3 dialog box displays.
5. Use this dialog box to set default options across all frames in the legend. Change the
legend properties and legend frame defaults as you wish. In our example, well change the
Legend window title to New York Legend, and leave the other default options as is.
404
MI_UG.PDF
7. The Legend Frames group on the left displays all the frames selected in Step 1. Each
frame corresponds to a map layer. Select a frame from the list (you can only select one
frame at a time). Select the Landmarks layer first.
The frames default attribute settings display in the boxes on the right. Notice that the
defaults used are the settings in Step 2. The # character from the default settings is
replaced with the name of the layer.
8. Select attributes for each legend frame, or use the default values. The default values are
based on legend metadata keys in the underlying table, or, if no metadata keys exist, on
the Legend Frame Defaults from Step 2 of the wizard. In our example, well specify
Landmarks for the frame title, obtain the legend styles from unique values in the Landmark
column, and label the legend styles with the text information in the Landmark column.
405
MI_UG.PDF
10. Type Highway in the text box, and click OK. It displays in the Label Style with box.
406
MI_UG.PDF
11. If you want to save your settings for the title, subtitle, the styles column, and the styles
label for the selected frame to the table metadata, click the SAVE FRAME SETTINGS TO
METADATA button.
12. Click FINISH when you have selected the desired attributes for each legend frame.
The cartographic legend displays on your screen.
Use the Up and Down buttons to reorder the layers in this list. To exclude a layer from the legend,
click the layer in the Legend Frames group and click the REMOVE button. The layer is added to the
Layers group and will not be included in the legend. If you change your mind, select the layer in the
Layers group, and click ADD. The layer goes back to the Legend Frames group for inclusion in the
legend.
407
MI_UG.PDF
408
MI_UG.PDF
Although the # character can be used in all three text boxes in the legend frame
properties, the % character can only be used in the Style Name Pattern box.
409
MI_UG.PDF
Selecting Attributes
Select attributes for one legend frame at a time. Click a legend frame in the Legend
Frames list to select it. The default settings for the selected frame display on the right side
of the Step 3 dialog box.
The title and subtitle text is derived either from the tables metadata, or if there are no
metadata keys for the table, from the defaults indicated in Step 2 of the Create Legend
wizard. You can type in a new title or subtitle or use the default settings.
Legend Styles
The legend styles are the symbols used in the legend to identify the map features. Each
type of object: point, line, or region displays its own symbol in the legend. Point objects are
represented by point symbols, line objects by lines, and region objects by boxes. In
addition, support for the new multipoint and collection objects has been added to the
cartographic legend feature. Multipoint objects will display as a point symbol in the legend.
A collection object will display a combination of symbols indicating the different object
types it contains.
Example of a Cartographic Legend for a collection of points, polylines and regions.
410
MI_UG.PDF
If the temporary column name is saved to legend metadata, but the temporary column
isnt saved in the workspace (e.g. you close tables and the join), youll get an error when
you re-create the legend from metadata. You must either redo the join to get the temporary
column, or choose a different label expression for the legend text.
411
MI_UG.PDF
2. The Legend Frames list displays the map layers in your Map window that are not currently
included in your legend. The US_CNTY, USA, and US_CTY 8K layers display in the box.
To remove the USA and US_CTY 8K layers, click the layer you want to remove and click
the REMOVE button.
3. Click NEXT. The Add Frames Step 2 of 3 dialog box displays.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
412
MI_UG.PDF
Here, specify the legend window properties and legend frame defaults as you did in the
Create Legend wizard. The legend frame defaults you specify here are used if there are
no metadata keys in the table.
4. Click NEXT. The Add Frames Step 3 of 3 dialog box displays.
[
The default values that display for the frame title and subtitle are taken either from the
defaults you specified in Step 2, or the tables metadata. As in the Create Legend wizard,
you specify attributes for one frame at a time.
This dialog box works exactly the same way as choosing styles for the initial creation of
the legend. You can select either a column, the Style Name Pattern (the default settings in
Step 2), EXPRESSION, or JOIN.
5. Type Area Counties as the title for the Legend frame.
6. Click the unique map styles button.
7. In the Label styles with box, choose EXPRESSION. In the Expression dialog box, type:
Albany and Rensselaer and click OK.
413
MI_UG.PDF
8. To save your frame settings to the tables metadata, click the SAVE FRAME SETTINGS TO
METADATA button. These settings become the new legend frame defaults.
9. Click FINISH. Your legend redisplays with the added frame(s).
414
MI_UG.PDF
For the New York Legend, clear the SCROLL BARS check box to remove the scroll bars.
You can edit the title, subtitle, legend symbol text, as well as the title and subtitle text styles, the
border style, and the styles of the legend symbol text. When you edit legend symbol text, you can
add multi-line text in the Edit selected text box.
Lets choose a different font for the frame title. Click the font style button for the Title to display the
Text Style dialog box. Choose a different font, a larger font size, and check the bold box. Click OK
when you are finished with the modifications.
Go into the legend frame properties for each of the other frames and make the same modifications
to the title font.
This is what the legend now looks like. The scrollbars have been removed and the frame title text
has been modified.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
415
MI_UG.PDF
Note:
If you modify a legend for a thematic map (a theme legend), clicking the Properties option
in the shortcut menu displays the Modify Thematic Map dialog box. Click the Legend
button to modify the theme legend. See Using Thematic Mapping to Analyze
Information in Chapter 9 on page 281 for details on thematic mapping and theme
legends.
Deleting Frames
You might decide that you want to remove one or more of your legend frames from the legend. To
delete a frame, right-click inside the frame you want to remove to display the shortcut menu. Click
DELETE. Here is the updated legend.
Refreshing Frames
If any edits you make in the legend cause changes to the formatting in the window, on the LEGEND
menu, click REFRESH (or right-click to display the short cut menu and click REFRESH).
The Refresh Legend dialog box displays. You can refresh the legend styles, the layout, and the
alignment.
416
MI_UG.PDF
When you refresh the legend styles, MapInfo Professional adds new styles associated with t he
legend and removes obsolete styles.
If the layout mode is changed from Portrait to Landscape, or vice versa, or from Custom to Portrait
or Landscape, MapInfo Professional resizes the window to a default size thats based on the
layout mode (similar to the initial window you get when you first create a Portrait or Landscape
legend).
When you refresh the alignment, your legend styles and text are aligned across all frames in the
legend, regardless of the orientation of the window. For new legend windows, this means style
centroids across all frames will be lined up and style labels across all frames will be lined up.
When new frames are added, the style centroid and label offset are remembered.
If editing or adding frames to an existing legend causes frame(s) to be formatted differently than
other frames in the same window, users can use the Refresh dialog box to re-align styles and text
across all frames.
To demonstrate how frame alignment works, go back to the Legend Frame properties and make
some changes to the size of the symbol text in each frame. The legend now looks like the legend
on the left, in the illustrations.
On the LEGEND menu, click REFRESH and make sure Refresh alignment is checked. The legend is
re-aligned across all of the frames. The legend now looks like the legend on the right in the
illustration.
You can easily revert the legend symbol text back to its original size through the Frame properties.
Here is how the legend looks with the map.
417
MI_UG.PDF
Page Setup
First check that your page setup is what you want. Any changes to the page setup will likely affect
the layout, so it is a good idea to view the effect of the changes on your layout before printing. On
the FILE menu, click PAGE SETUP. Here, you can specify the page orientation (portrait or
landscape) and margins. You can also specify the paper size and its source.
In addition, you can override your default printer setting and choose a different printer for this print
job. Click the PRINTER button to display the Page Setup dialog box for your printer. The printer that
initially displays is the default printer that you set in the Printer preferences (on the OPTIONS menu,
point to PREFERENCES and click PRINTER). This will either be the Windows default printer, or the
MapInfo Professional preferred printer that you selected. Make any changes you want to the
printer and its properties, and click OK. The settings available in the Printer Properties dialog box
will vary according to the printer you are using.
418
MI_UG.PDF
Printing Options
Changes you make to these settings override the default settings in the Output preferences for this
printing job.
When you are ready to print:
1. Make sure the Layout window is active. On the FILE menu, click PRINT. The Print dialog
box displays.
2. Choose the number of copies you want to print and whether you want all pages or a
specific range of pages to print. As in the Page Setup dialog box, the Print dialog box also
allows you to override the default printer settings.
3. Click the NAME drop-down list in the Print dialog box to select a printer. All of the printers
available on your system display in the list. You can specify printer properties here as well,
plus specify whether to print to a file.
4. To use the advanced print settings to take advantage of additional output options that help
you control transparency and color, particularly for raster images, click the ADVANCED
button. The Advanced Printing Options dialog box displays.
a. Indicate whether you want to print your Layout using the new Enhanced Metafile
format, or with the method used in previous versions of MapInfo Professional (Print
Directly to Device).
b. Next, indicate how you want to handle transparency. If you have transparent vector fill
patterns and symbols, check the Internal Handling for Transparent Vector Fills and
Symbols box to have MapInfo Professional handle the transparency internally.
Note:
Windows 95/98 users: you cannot use the larger fill patterns as they display as
solid fill, however smooth scrolling is supported. The Windows 95/98 operating
systems do not support brush patterns larger than 8 x 8 pixels.
If you are using transparency in a raster image, clear the USE ROP METHOD TO
DISPLAY TRANSPARENT RASTER box to have MapInfo Professional handle the
transparency internally. The image will be broken down into small rectangular regions
that do not contain transparency. It is recommended that you check this option
because printers do not always handle transparent raster images correctly.
Note:
c. If you are using 24-bit, true color raster images, check the Print Raster in True Color
When Possible box, and select a dither method from the Dither Method drop-down list.
The Print Border for Map Window check box is not available for Layout windows.
419
MI_UG.PDF
You can control the border for each frame by selecting the frame and setting by
selecting the OPTIONS menu, clicking REGION STYLE.
d. Click OK to return to the Print dialog box.
5. Click OK to print.
More and more often, users want to save their maps electronically to files rather than print them on
paper. MapInfo Professional offers many choices for electronic map output.
Exporting a Layout
The easiest way to make electronic copies of maps and layouts from MapInfo Professional is to
use the Save Window As command. You can export to Windows Bitmap, Windows Metafile,
Windows Enhanced Metafile, JPEG File Interchange Format, JPEG 2000, Portable Network
Graphics Format, Tagged Image file Format (TIFF), CMYK, and Photoshop 3.0.
When using the Save Window As command, keep in mind that all additions and edits must be
made in the Map window. When you have the Map window the way you want it, then create the
Layout window.
You can use the new advanced export options to produce better quality output. The same
transparency and raster options available when you print your Layout are also available when you
export the Layout. Click the Advanced button in the Save Window As dialog box to display the
Advanced Exporting Options dialog box. The same check box settings are available.
As with the advanced print options, changes you make to the advanced export settings override
the default settings in the Output preferences for this export operation. See Setting your Output
Setting Preferences in Chapter 2 on page 59 for more complete information.
420
MI_UG.PDF
4. Once the postscript driver is installed on your system, you will use that printer to print the
map or layout to a file from MapInfo Professional.
5. In MapInfo Professional, once you have created your map, on the FILE menu, click PRINT.
The Print dialog box displays.
6. Under printer name, select the postscript printer. Click OK.
7. The Print to File dialog box displays. Give your file a name and choose SAVE. You will now
have an encapsulated postscript file.
421
MI_UG.PDF
Registering Raster
Images
13
Raster images can provide context to your maps by giving them detail and definition. This chapter reviews
the details of registering and working with raster image files.
In this Appendix:
423
MI_UG.PDF
filename.TGA (Targa)
Monochrome images: Each pixel in a monochrome image can be displayed using two
colors, usually black and white. These images take up the least amount of space and will
display the fastest. In MapInfo Professional monochrome images can also display as two
different shades of gray.
Gray-scale images: Each pixel in a gray-scale image can be black, white, or a shade of
gray.
Color images: Each pixel in a color image can be any color from a palette of available
colors. The set of available colors depends in part on the image file format and the source
of the image. An 8-bit image contains eight bits, or one byte, of information for each pixel;
this means that the image has a palette of 256 different colors. A 24-bit image contains
twenty-four bits, or three bytes, of information per pixel, which means that the image has a
palette of over 16 million colors. MapInfo Professional now supports 24-bit, True Color
display, with transparency.
For best results when viewing a raster image, we recommend using a high resolution video
display.
424
MI_UG.PDF
A fully registered image, containing control points and a projection (e.g., GeoTIFF file).
A partially registered image containing control points, but missing a projection (e.g., an
image with an associated World file).
Once the image is registered, opening it again requires a slightly different procedure. Opening
both unregistered and registered images is explained in the next section.
425
MI_UG.PDF
426
MI_UG.PDF
Determine a raster images control point coordinates on screen and automatically transfer
the information to the Image Registration dialog box.
Note:
If you scanned in the image from a paper map, the map most likely contains a graticule
(latitude and longitude grid). You can choose those coordinates for prominent features and
enter them in the Image Registration dialog box.
To register the coordinates of a raster image and create a .tab file from the raster image:
1. On the FILE menu, click OPEN and specify the Raster Image file format in the Files of type
drop-down list.
2. Choose a raster image file and choose OPEN. The Display/Register dialog box displays.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
427
MI_UG.PDF
Preview of Raster
Image
4. Choose the PROJECTION button to specify the raster images projection. It is easier to
match up the maps if you select the same projection for the raster image as the vector
images (layers) you want to use. Choosing the same projection minimizes image
distortion when overlaying the vector map layers. You cannot change the projection from
the Map window.
Note:
5. You can set the units for the control point entries by clicking the UNITS button.
6. To select the actual coordinates to register in the raster image, click the ADD button to add
a new entry into the CONTROL POINTS list box. The Add Control Point dialog box displays.
7. Specify the coordinates from the paper map in the dialog box. The location of each point is
marked on the preview image with a + symbol. You can change the Label to something
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
428
MI_UG.PDF
8. Repeat this process until you have identified three or four non-linear points in the preview
pane of the Image Registration dialog box.
9. After you have defined all of the control points, click OK in the Image Registration dialog
box. The raster image displays in the Map window under the vector layer.
Use the Layer Control feature to position the raster map appropriately with your vector
layers.
429
MI_UG.PDF
To have the tool load automatically each time you open MapInfo Professional,
check the Autoload box.
2. On the TOOLS menu, point to CONVERTER and click CONVERT COLUMN TO DECIMAL
DEGREES.
3. Select the table that contains the degree, minute, second information in the Table dropdown list.
4. Select the LATITUDE or LONGITUDE option in the Get Decimal Degree value from list and
select the column in which you want to store the results.
If you are registering a raster image that does not use longitude and latitude coordinates,
specify the appropriate projection in the Image Registration dialog box and enter your
coordinates in the native units of that coordinate system. For instance, if you are
registering a UTM map image, enter the coordinates in meters.
5. Click OK to convert the coordinates.
430
MI_UG.PDF
431
MI_UG.PDF
Using the Adjust Image Styles dialog box does not modify the raster image file; instead, it changes
the way MapInfo Professional displays the raster image file. If you change an images display
style, MapInfo Professional records the new display style in the table file (e.g. PARCELS.tab) or in
the workspace for per layer styles, but MapInfo Professional does not alter the contents of the
raster image file (PARCELS.GIF) in any way.
If you change an images display style and choose OK, the new display style is applied
immediately. It will also affect all Map windows in which the image is displayed if you select the
TABLE menu, and point to RASTER and click ADJUST IMAGE STYLES. You do not need to choose
SAVE to save the changes.
432
MI_UG.PDF
433
MI_UG.PDF
2. Click ADVANCED and choose from the following settings according to your printing and
exporting requirements.
434
MI_UG.PDF
Note:
In the MapInfo Professional advanced printing options the, Print Directly to Device option
does not work for translucent images. Select Print Using EMF Method instead.
435
MI_UG.PDF
14
How do you flatten the curved surface of the earth so that you can draw maps on flat pieces of paper and
(nearly) flat computer screens? You use a projection. A projection is a system that defines how to flatten
objects. MapInfo Professional allows you to display your maps in different projections. This chapter
concentrates on the simpler tasks you can perform with projections: adding ocean and grid layers,
changing a maps projection, and saving a map with a new projection.
In this Chapter:
Think about it in terms of an orange. If you write the phrase Think Visually with MapInfo on an
orange with a felt-tipped marker, the words look relatively normal. However, when you peel the
orange and flatten it out, the words are barely legible. When words or objects drawn on a round
surface are transferred to a flat surface some distortion must occur.
What is a Projection?
A projection is a method of reducing the distortion that occurs when objects from a spherical
surface are displayed on a flat surface. There are many different types of projections, each
designed to reduce the amount of distortion for a given area
Notice the difference between the next two maps. While the first one flattens Alaska, the second
shows Alaskas true size. The relative distance between the continental US, Alaska, and Hawaii is
very different in the two pictures. The border between the continental US and Canada is much
more representative of a curved surface in the second projection.
Projections are most often used for:
Running a GIS application that requires the geographic precision of a given projection.
Non-earth maps, whose coordinates do not have any reference to locations on earth.
437
MI_UG.PDF
Using Latitude/Longitude
438
MI_UG.PDF
For a complete listing of projection datums, see Projection Datums in Appendix B on page 532
for further information.
South America
Longitude/Latitude
Mercator
If you are not familiar with the different projections (or you are changing projections for strictly
cosmetic purposes), choosing the optimal projection for display may involve some trial and error.
You cannot destroy or damage your data by displaying maps in different projections. Technically,
you can apply any projection to any earth map. However, we offer these general guidelines:
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
439
MI_UG.PDF
Use the Projections of the World for maps of the entire world. They are generally
unsuitable for mapping smaller areas.
Use the U.S. State Plane Coordinate Systems for maps of the respective states. You
should not use them for mapping different states or other countries.
Importing a Map
When importing a MIF file, the CoordSys line of the file specifies the projection of the map. If there
is no CoordSys line in your MIF file, MapInfo assumes the coordinates are in longitude/latitude.
When importing a DXF file, MapInfo presents a series of dialog boxes to specify the projection.
Creating Points
When creating new points in MapInfo Professional, you specify which coordinate system these
new points are in by choosing the PROJECTION button in the Create Points dialog box. For more on
creating points, see Create Points - Putting Latitude/Longitude Coordinates on a Map in
Chapter 4 on page 158.
Projection Tips
Keep the following points in mind when displaying and saving maps with different projections.
Every earth map table in MapInfo Professional is stored in a particular projection, known
as its native projection.
440
MI_UG.PDF
When you display a table in a different projection, new coordinates are calculated to
display each object in that map. These coordinates are only used to display the table in
the current Map window; the coordinates in the table itself are not affected.
For example, assume you are viewing the STATES table and want to display it in the
Mercator projection. Choose the PROJECTION button (on the MAP menu, click OPTIONS) to
choose the MERCATOR projection. MapInfo Professional redraws the Map window using
the new projection. If you open another Map window of the STATES table, it will open in its
native projection.
MapInfo Professional calculates distance and area using the method that is appropriate to
the projection of the Map window (Spherical or Cartesian). Non-earth projections use only
Cartesian calculations. Long/Lat projections use only Spherical calculations. Changing the
Map windows projection may affect what type of calculation method is available for use in
the Map Options dialog box (on the MAP menu, click OPTIONS).
After you choose a projection for a Map window, any layer added to that window will be
displayed with that projection.
If you change the default projection in Map Options, MapInfo Professional will apply the
new projection to all layers in the Map window. If you add an additional layer to the Map
window, MapInfo Professional will apply the new projection to that layer.
If you save a map layer with a new projection, do not delete the old map.
You can convert a map from its native projection to some other projection, but you cant
always convert it back accurately. On the FILE menu, click SAVE COPY AS. Choose the
PROJECTION button and choose the new projection.
When you display a map table in a projection other than its native projection, it takes more
time to draw the map. That is because the projection is being done on the fly. MapInfo
Professional must calculate new coordinate values for each object in the map.
When projections are calculated on the fly, it can take up to ten times longer to display
your map. If you plan on using a desired projection often, you should save a copy of the
map with the new projection.
441
MI_UG.PDF
When a map is being projected on the fly, editing that map can have unpredictable results.
Furthermore, MapInfo Professional has to redraw, and therefore re-project, the map after
each edit. This is very time consuming. For these reasons, we dont recommend editing
such maps. You should make your edits before you project the map or save the map in the
desired projection before editing.
If you open a new Map window that contains several tables with different projections,
MapInfo Professional will display the layers using the projection of the topmost layer. To
change the Map window projection, on the MAP menu, point to OPTIONS and click
PROJECTION.
Converting Coordinates
You can enter longitude and latitude coordinate values for points directly into your database. When
you do this, you must enter the coordinates in decimal degrees; MapInfo Professional does not
recognize coordinates entered in degrees, minutes, and seconds. Point coordinates entered in
degree, minute, and seconds appear as incorrect locations on your map.
442
MI_UG.PDF
443
MI_UG.PDF
Note:
MapInfo Professional does not perform any conversions between non-earth and earth
projections via the Save Copy As command.
MapInfo Professional creates a new table containing the same geographic objects. However, the
coordinates have been converted to display the objects in the new format. The new projection
becomes the native projection for the new table. When you display the table in a Map window, it
will display rapidly with this new projection.
Whenever you save a map to another projection, you should preserve the original map. Do not
erase the original in order to save disk space. The process of projecting a map is often not
completely reversible.
CAUTION:
You can convert a map from its native projection to some other projection, but
you cant always convert it back accurately.
If you convert a map back to the projection you started from, some coordinate points may be
missing, especially near the poles.
Question: I chose Longitude/Latitude (NAD 83) as my projection; however, whenever I look at the Choose Projection dialog box, it keeps saying Longitude/Latitude
(GRS 80). Why wont my projection change?
Answer: The GRS 80 datum is exactly identical to NAD 83 datum. MapInfo uses the numeric
parameters, not the name, to decide which coordinate system to highlight in the Choose Projection
dialog box. Since GRS 80 has the same numeric parameters as NAD 83, and GRS 80 comes
earlier in the list, MapInfo chooses GRS 80 instead of NAD 83. (There are several other datums
identical to GRS 80, e.g., EUREF 89, GDA 94, etc.)
444
MI_UG.PDF
If a particular coordinate system is not listed in the file, you can add it to the file yourself, providing
MapInfo Professional supports the projection. See Creating Custom Coordinate Systems on
page 445 for instructions on creating your own coordinate system.
For example, to define a UTM Zone 10 coordinate system with bounds of (100000, 400000) to
(200000, 450000), use this line:
UTM Zone 10, 2008, 74, 7, -123, 0, 0.9996, 500000, 0, 100000, 400000,
200000, 450000
To define a Longitude / Latitude coordinate system with bounds of (-50, 30) to (-48, 35), use this:
Longitude / Latitude, 2000, 0, -50, 30, -48, 35
You can also define a coordinate system with bounds and an affine transformation. In that case,
add 3000 to the projection number, and list the bounds after the affine transformation constants.
The general form is:
name, projectionnum + 3000, projection parameters, unitnum, A, B, C, D, E, F,
x1, y1, x2, y2
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
445
MI_UG.PDF
The first element in each list is the name of the coordinate system in quotes. The second element
in each list is the number that identifies the projection. The remaining elements in the list are the
parameter values for that particular coordinate system. Each element is separated by commas.
To create your own coordinate system you will need to add a new entry to the MAPINFOW.PRJ file
that lists the appropriate elements. The process is described in the next section.
Equidistant Conic
Datum:
NAD 83
Units:
meters
Origin:
30N, 9030W
Standard Parallels:
False Easting:
10,000,000 m
False Northing:
500,000 m
446
MI_UG.PDF
2. On an empty line, put the name of your new coordinate system in quotes, followed by a
comma.
Enter the following information to represent your coordinate system:
6, 74, 7, -90.5, 30, 10.33333, 50, 10000000, 500000
3. Move the entry to its appropriate place among like coordinate systems, if necessary.
4. Save your edited MAPINFOW.PRJ file.
You can now use your custom coordinate system just as you would use any of the coordinate
systems that come with MapInfo.
Things to keep in mind when editing the MAPINFOW.PRJ file:
When specifying projection, datum and units, use the number that represents the
parameter. These numbers are listed in the table for each parameter earlier in this
appendix. In our example, 6 represents Equidistant Conic projection; 74 represents NAD
83 datum, and 7 represents meters.
You must record the coordinates in decimal degrees. See Converting Coordinates on
page 442 for instructions on converting degrees, minutes, seconds, into decimal degrees.
Remember to include a negative sign for west longitudes and south latitudes.
You must list the origin longitude first in the MAPINFOW.PRJ file even though it is
commonly seen elsewhere following the latitude.
Carry out decimals to at least five (5) places for greater accuracy.
Do not use commas to represent thousands or millions in large numbers. Only use
commas to separate parameters from one another.
There are other ways you can edit this file. When you want a shorter list remove coordinate
systems from the file. You can also change the names, change group headings and reorder the file
to suit your needs.
Note:
Group headings are distinguished by the hyphen at the beginning of the name. Names of
coordinate systems cannot begin with a hyphen or a space.
Affine Transformations
An affine transformation is the process that changes the relationship between the coordinate
system you use to draw a map and the coordinate system you use to display it.
MapInfo provides the ability to define rotated or skewed coordinate systems by allowing an
optional affine transformation in any coordinate system definition. You can also define a coordinate
system with bounds and an affine transformation. In that case, add 3000 to the projection number,
enter the Affine parameters (A,B,C,D,E,F) and then list the bounds (x1,y1,x2,y2). The general form
is:
Name, Projection Number + 3000, projection components (see previous section),
Affine units, A, B, C, D, E, F, x1, y1, x2, y2
An example of a MAPINFOW.PRJ line with a rotated Affine transformation might look like this with
the affine parameters in Bold and bounds in Italics:
Equal Area for GA (NAD 27), 3009, 62, 7, -96, 23, 29.5, 45.5, 0, 0, 7, -0.00000000001, 1, 116.071, -1, -0.00000000001, -50.5312, -6972009.20702, -16901023.2253, 26829936.181,
16900922.1627
447
MI_UG.PDF
X
*
001
X
=
Y
1
Translation: C and F are the values you want (0, 0) to go to, A=E=1 and B=D=0. So to
move the coordinate system so the origin is at (5, 2) the values would be: A=1, B=0, C=5,
D=0, E=1, and F=2.
To Scale in the X direction: A is the scale you want to use. E =1 and the rest are 0. So to
scale to 3 times the size in the X direction the values would be A=3, B=0, C=0, D=0, E= 1,
F=0.
To Scale in the Y direction: E is the scale you want to use. A =1 and the rest are 0. So to
scale to 5 times the size in the Y direction the values would be A=1, B=0, C=0, D=0, E=5,
F=0.
To Shear in the X direction: A = E = 1, B is the shear factor and the rest are 0. So to
Shear by 5 units in the X direction then A=1, B=5, C=0, D=0, E=1, F=0.
To Shear in the Y direction: A = E = 1, D is the Shear factor and the rest are 0. So to
Shear by 4 units in the Y direction then A=1, B=0, C=0, D=4, E=1, F=0.
To get a general affine transformation, do a pre-matrix multiplication of the basic pieces of the
transformation. Make sure that you put the first operation on the right.
So to Translate to (5,2) Rotate 60 degrees and then Shear 5 units in Y, set up and multiply the
following matrices:
448
MI_UG.PDF
0.5
-0.866
0.866
0.5
-0.866
0.768
3.366
-3.83
9.17
Therefore, the required values are: A=.5, B=-.866, C=0.768, D=3.366, E=-3.83, F=9.17.
Overlay your map onto any maps that MapInfo Professional supplies.
A non-earth map contains objects that have no specific location on the earths surface. Floor plans
are typical examples of non-earth maps.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
449
MI_UG.PDF
Even though the floor plan describes a building that may be located somewhere on the Earth, the
coordinates of objects in the floor plan are generally not referenced to positions on the Earth.
Rather, the objects coordinates are referenced to the floor plan itself, generally representing
distance from the lower left corner of the floor plan.
A non-earth map has a coordinate system, but since its map points are not referenced to locations
on earth, the coordinate system does not contain a projection.
Floor Plan: example of a non-earth map
450
MI_UG.PDF
Stereographic
451
MI_UG.PDF
Specialized Topics in
MapInfo Professional
15
The topics in this chapter cover the advanced use of MapInfo Professional.
System Requirements
MapInfo Map is an OLE server application that runs under 32-bit MapInfo Professional. You must
install MapInfo Professional 32-bit to engage MapInfo Map. On the client side, only container
applications that support OLE embedded objects can run MapInfo Map.
453
MI_UG.PDF
OLE Terms
This section contains some definitions of common OLE terms.
Activation: An embedded object must be activated to allow editing. This means that the server
program from which it was created must be running in the background while you are working in the
container application. To activate an object, double-click it. Depending on the program, the menu
bar of the application will change to reflect the available features of the server, or the application
will open a separate window.
Container or Client: The application that accepts (contains) the embedded OLE object. Examples
of containers include word processors, spreadsheet programs, databases, and presentation
packages.
Embedding: Inserting an OLE object from a server (e.g., MapInfo Professional) into a container
application (e.g., Microsoft Word) to allow editing and output in the context of other information. An
embedded object is a copy of the object from the server. Once in the container, the object is no
longer linked to the source object from which it came.
Embedding vs. Linking: An embedded item is stored as part of the document that contains it. A
linked item stores its data in a separate file. MapInfo Professional only supports the embedding
aspect of OLE.
Live object vs. static image of object: Embedding an object in a container using OLE means the
object is live; that is, you can edit the object in some manner using the features of the server from
which the object came. The container must accept the object as a live object. If it cannot, only a
static picture (bitmap or metafile) will be embedded.
MapInfo Map Object: You may find you want to include a map in your presentation or report that
lets you convey statistical information geographically. MapInfo Professional OLE Embedding
enables you to embed a map window, known as the MapInfo Map Object, that shows all your data
layers alongside other information such as charts and graphs, tabular data and text.
Object: Any information that is embedded through OLE, whether it is a map, chart, spreadsheet
data, sound effect, or text. With MapInfo Professionals OLE embedding, you embed a Map
window as the object.
Server: The source application that creates OLE objects for use by a container. MapInfo
Professional is the server that creates the MapInfo Map object that can be embedded in OLE
containers such as Microsoft Word or Excel.
454
MI_UG.PDF
Because MapInfo Map is a subset of MapInfo Professional features, using them in your container
application is the same as using them in MapInfo Professional. So, Layer Control and Thematic
Mapping work the same way whether you are creating a map in MapInfo Professional or in your
word processor.
Lets look in more detail about what you can do with MapInfo Map.
MapInfo Map allows you to create, display and edit map layers in a Map window directly in your
OLE container application such as Microsoft Word or Corel Draw. You can also bring over an
existing Map window from MapInfo Professional to your container via Drag and Drop or by pasting
from the clipboard. When the Map window is embedded in the container and is active, MapInfo
Map is running and replaces much of your applications menu bar with its own menu and toolbar.
From there you can access the power and flexibility of MapInfo Professional.
OLE Tools
MapInfo Maps Toolbar consists of seven tools to help you change the view of your Map window,
get information associated with a layer, and access MapInfo Map help topics. These tools include:
the Grabber, Zoom In, Zoom Out, Info Tool, Change View, Drag Map Window, and Help. When you
activate the map, these tools replace any tools the container application displays.
When MapInfo Map is active, the following tools are available on the applications menu bar:
Grabber tool: Use this to reposition the map contents within the active Map window by
clicking and dragging the map in the appropriate direction. This is the default tool.
Zoomin/out tools: Use the Zoom-in tool to get a closer view of the map contents. Use
the Zoom-out tool to get a wider view. Click the map with either tool or draw a marquee box to
change the zoom.
Info tool: Use this to view the tabular data associated with map objects. Click the map. The
Info tool window displays on your screen showing the objects and the associated data at that point.
Note:
The Info tool window is not embedded in your container like the Map window. You cannot
incorporate the Info tool window into your document. It is a temporary window only
available when the map object is active.
Change View tool: Use this to access the Change View dialog box and change the zoom,
map scale, and center settings to change your view of the map.
Drag Map Window tool: Use this to transfer a copy of your active Map window to MapInfo or
to another OLE container. During the process, the cursor will change to indicate the three stages of
drag and drop: begin drag, dragging, and drop copy. For more on using Drag and Drop, see
Bringing a Map Window into Your Application on page 459.
Help button: Use this to access help topics about embedding a MapInfo map.
455
MI_UG.PDF
Edit: Copy, Paste. These commands allow you to place the Map window on the clipboard to
transfer it to MapInfo Professional or another OLE application.
View: Toolbar, Legend. Controls the display of the thematic map legend (if any) and displays or
hides the Toolbar on the menu. To disconnect the Toolbar from the menu, click and drag it to
another location.
Table: Open, Close, Close All. Allows you to open and close multiple tables at the same time. If
you have inserted a new MapInfo Map Object in your document (on the INSERT menu, click
OBJECT), select the TABLE menu, and click OPEN TABLE to begin building your map. The Open
MapInfo Table dialog box displays where you choose one or more tables to open (.tab format
only).
On the TABLE menu, click CLOSE or CLOSE ALL to close any or all map layers. The Close dialog
box allows you to close multiple tables at one time.
Map: Find*, Layer Control, Create Thematic Map, Modify Thematic Map, Change View, Previous
View, View Entire Layer, Options, Redraw Window. Most of MapInfo Maps functionality is found
here where you can locate objects, control the display and look of each map layer, analyze and
display data thematically, and manipulate the view of the map contents within the Map window.
456
MI_UG.PDF
Use the Find command to locate and mark specific map objects in the Map window. From the first
Find dialog box, specify the table and column that contains the object you wish to locate. At the
second Find dialog box, type the name of the object. When MapInfo Map locates the object, it
marks the location with a symbol. If the object was not previously in view, MapInfo Map redraws
the Map window with the object in its center.
Help: Help Topics, About MapInfo Map. Direct access to instructions on embedding a MapInfo
Map in OLE applications. Refer to the Help topics to learn about embedding a MapInfo Map Object
in your applications. Refer to the About MapInfo Map dialog box to show the product version and
license information (name, organization and serial number). Click the Tech Support button for
information on contacting MapInfo Technical Support.
Shortcut Menu
A shortcut menu is available while you are editing your embedded MapInfo Map in another
application. To access it, click the right mouse button. Choose from Layer Control, Change View,
Previous View and View Entire Layer.
Change View
This command allows you to specify the settings for viewing the Map window, including window
width, map scale, map resizing and center point.
457
MI_UG.PDF
Previous View
This command allows you to return to the previous view. If you have changed the view of your Map
window at least once during the work session, the Previous View command is active, allowing you
to return to the last view.
Options
The Options command allows you to change the map units for the Map window, including
coordinate units, distance and area units, or the projection of the map.
Redraw Window
This command allows you to redraw the Map window. Use it to refresh the map after you press
ESC to stop an earlier map redraw.
Limitations of OLE
Although MapInfo Map enables you to build a map very easily in your container application, not all
of MapInfo Professionals features are available in the context of map embedding. Among them
are editing map objects such as regions or polylines, querying a table for further analysis,
geocoding to a table in the Map window, or displaying tables in other types of windows (Browser,
Graph or Layout windows).
However, with MapInfo Professionals drag and drop capabilities you can still perform these
functions in MapInfo Professional and bring over the Map window to your OLE container
application for final viewing, formatting and editing enhancements.
On the INSERT menu, click OBJECT to choose the object to embed from a list.
On the EDIT menu, click PASTE (or PASTE SPECIAL) to embed an object that was previously
copied to the Clipboard.
Drag and drop from the application to the container using the Drag Map Window tool.
The method you choose depends on which application you are in at the moment (server or client)
and how much you want to do to create the final map.
458
MI_UG.PDF
3. Highlight the MapInfo Map item and click OK. A default Map window of the world and
MapInfo logo displays. The Map window is also in an active state (surrounded by a
hatched border), meaning that MapInfo Professional is running in the background. Your
applications menu has changed to reflect MapInfo Map Objects menu.
4. To begin building your map, on the TABLE menu, click OPEN. The Open MapInfo Table
dialog box displays.
5. Choose a table from the appropriate directory. SHIFT-CLICK or CONTROL-CLICK to choose
additional tables to be opened at the same time. Click OK when you are through.
The tables display as map layers in the Map window. You can now label the layers,
change the display, create or modify thematic layers, resize or reposition the Map window,
or prepare the document for final output.
459
MI_UG.PDF
Note:
To copy the Map window all objects on the map must be de-selected. If there are
any objects selected, the Copy Map Window command will not be available.
2. Switch to your container application and position your cursor at the location where you
want to place the map.
3. On the EDIT menu, click PASTE to paste from the Clipboard to your document. The Map
window displays.
Note:
The map is not active at this time. If you want to make changes to the map
content, such as changing the view, creating a thematic layer or adding labels,
you will need to start MapInfo Map. Double-click the map to activate it and start
MapInfo Map.
If you only want to resize or reposition the object within your document, you do not need to
start MapInfo Map. Select and change the inactive object according to the methods for
your application.
In many OLE applications you can also choose PASTE SPECIAL to paste the MapInfo Map into your
document. Paste Special allows you to choose from three types of objects: the MapInfo Map object
which can be activated and edited; Picture, a graphic image format that cannot be edited; and
Bitmap format, also a non-editable graphic image. See your application for more on Paste Special.
To copy a Map window from MapInfo Professional using the Drag Map Window tool
1. With both MapInfo Professional and your container application running, adjust their
placement on the screen so that you can see them side by side (To tile MapInfo
Professional and another application running under Windows, click the task bar with the
right mouse button and choose Tile Vertically). Position your cursor in your container
where you want to place the map.
2. In MapInfo Professional, make the Map window active.
3. Click the DRAG MAP WINDOW tool on the Toolbar. The cursor becomes a hand and handle,
indicating you can begin the drag operation.
4. Click anywhere within the Map window (except the title bar). The cursor changes to the
hand grasping the handle for the dragging operation.
5. Drag the cursor to the container and click at the point where you want to drop the map.
When positioned over a valid drop target, the cursor changes again to the DropCopy
cursor. If the position cannot accept the object, the cursor will display a circle with a slash
through it.
This operation will only drag and drop a copy of the object. Moving and linking are not available
with MapInfo Professional OLE Embedding. You may find that for some container applications (for
example, Microsoft Excel) you must use the Control key in combination with the Drag cursor to
copy the object.
The Map window is not active after you drop it in the container. Double-click it to activate the map
if you want to do further editing.
460
MI_UG.PDF
In some containers the object must be inactive for any changes to take effect.
For example, in Microsoft Word, click outside the object to deactivate it. MapInfo Map closes and
you are returned to the normal Word screen. Click once on the object to select it. With the cursor
over one corner of the image, drag it diagonally to enlarge or reduce the size of the image (this
method retains the correct proportions). Release the mouse button when you reach the desired
size.
In Microsoft Excel, you can simply drag a corner of the Map window to resize it. The Map window
can be either active or inactive during resizing.
For changing the view of the map contents, the object must be active. Use MapInfo Maps Change
View button to re-display the map at a different scale or position. Use the Grabber tool to bring a
different part of the map into view.
461
MI_UG.PDF
printed, reformatted, reorganized, and saved with no special handling required for the map. The
map itself can even be resized or repositioned. You cannot, however, change the content of the
map since it is not an active OLE object.
To activate the map for editing on another system, your colleague must have access to 32-bit
MapInfo Professional and the data used to create the map. Double-click the map to activate the
OLE object. MapInfo Professional will prompt for the location of the data files if it cannot find the
original location. If the data is not available, cancel out of the Locate Data dialog box. The metafile
image is replaced with the MapInfo Professional world map in the active state. To retrieve the
original metafile image, close the document without saving and reopening it.
Note:
Sharing MapInfo Professional and map data on other systems is limited to the extent of
your license agreement(s).
Data Map works with data that you select from a Microsoft Excel worksheet, or import from
a Microsoft Access database; MapInfo Professional works with data from MapInfo
Professional tables.
Data Map provides only a small subset of MapInfo Professionals features. For example,
Data Map does not allow you to perform geographic queries, such as finding a street
address. Also, Data Maps editing capabilities are limited to simple operations, such as
adding annotations to the map. Data Maps main use is creating thematic maps; thematic
mapping is but one of MapInfo Professionals many uses.
Data Map objects can only be edited by using the Data Map software; to launch Data Map,
double-click the Data Map object. MapInfo map objects can only be edited by using
MapInfo Map. In other words, the two object types are not interchangeable you cannot
edit a Data Map object in MapInfo Map.
462
MI_UG.PDF
Data Map cannot display a table that is actually defined as a relational join of other tables
(such as a MapInfo StreetPro table). To use a street table with Data Map, use MapInfo
Professionals Save Copy As command, which saves a street table in a flat form that
Data Map can use.
Data Map cannot display point objects that use MapInfo Professional Custom symbol
styles. (Custom symbols are selected by displaying MapInfo Professionals Symbol Style
dialog box, and then selecting Custom Symbols from the Font drop-down list.) If your
MapInfo Professional table contains points with custom symbol styles, those points will be
invisible in Data Map.
For more information about Data Map, see the Data Map online Help. For more information about
the Data Installer, see the Data Installer online Help.
463
MI_UG.PDF
The active object in this map (red triangle) is linked to a webcam website that displays an
erupting volcano.
464
MI_UG.PDF
Now that your table contains the active objects, you need to set the HotLink options for the table.
465
MI_UG.PDF
3. Click the HOTLINK button. The HotLink Options for the table display.
4. Choose the Filename Expression from the drop-down list. This is the name of the field you
added to hold the file link information.
You can also use an expression that concatenates two or more fields to define the file link.
For example, in a map of the United States, you can use this expression:
http://www. + State_Name + .com
5. To add the table path to the filename before launching it, check the File locations are
relative to table location box.
6. In the Activate on group, choose how you want the active object to launch when you click
the object with the HotLink tool.
LABELS Choose Labels to launch the active object when you click the HotLink tool
on an objects label.
OBJECTS Choose Objects to launch the active object when you click the HotLink tool
on an object.
LABELS & OBJECTS Choose Labels & Objects to launch the active object when you
click the HotLink tool on either an object or its label.
7. Check the SAVE OPTIONS TO METADATA box to save the HotLink options to the tables
metadata.
8. Click OK.
466
MI_UG.PDF
Active objects that are URLs are not modified before they are launched, regardless of
whether the box is checked.
The HotLink options are written to metadata when you click OK in the HotLink Options
dialog box. If you click Cancel in the Layer Control dialog box, the HotLink Options you set
are not applied to the Map window. However, the options are still in the metadata.
The HotLink tool is available in a Browser window only when the HotLink settings are
saved to the tables metadata. Saving your session to a workspace without saving the
HotLink settings to metadata will not work because there are no user interface settings for
using the HotLink tool in a Browser.
467
MI_UG.PDF
When you open a new Browser window, MapInfo Professional reads the tables metadata to
determine if the HotLink filename expression matches any of the Browsers field expressions. If so,
the text in that field is underlined, to indicate an active object. The HotLink tool will be available for
that Browser window and you can select links from it.
If the HotLink filename expression is not a table column name, you can create a HotLink field in
the Pick Fields dialog box, using the HotLink filename expression as the field expression. You
cannot edit data in a Browser window while the HotLink tool is active, but you can select rows and
move or resize Browser fields.
Point, arc, line, ellipse, rectangle, rounded rectangle, and polyline objects, in addition to
the original support for polygon and region layers.
Multiple layers.
Options in the application allow you to specify a title and copyright information for the Web page,
specify an image size and file format (JPG or PNG), designate a column for tool tips, and create
HTML landing pages for each object on the map.
The HTML Image Map tool is a MapBasic application that ships with MapInfo Professional. It is
available through the Tool Manager (on the TOOLS menu, click TOOL MANAGER).
To add the Image Map tool:
1. On the TOOLS menu, click TOOL MANAGER. The Tool Manager dialog box displays.
2. Check the LOADED box for the HTML Image Map tool. If you want the HTML Image Map
tool to load automatically every time you start MapInfo Professional, check the AUTOLOAD
box as well.
3. Click OK. The HTML Image Map menu item is added to the Tools menu.
To create an HTML image map:
1. In MapInfo Professional, open the table(s) you want to use for your map.
2. Arrange the layers the way you want them in a Map window, and set the zoom, projection,
and other display attributes.
3. On the TOOLS menu, click HTML IMAGE MAP. The HTML Image Map dialog box displays.
4. Select the layers for your image map. Use the ADD and ADD ALL buttons to move selected
layers to the Layers in image map list. Use the REMOVE and REMOVE ALL buttons to move
layers back to the Layers not in image map list.
5. Select the column that will be used for your maps tool tips for each layer.
6. Choose a title for your Web page and enter it in the Web page title box.
7. In the Image group, enter the copyright text. Click the COPYRIGHT button to insert the
copyright symbol into your copyright notice. Specify a size, image format, and clip
resolution for your HTML image map.
8. Specify a name and location for the HTML image map file in the HTML file name box. Click
the BROWSE button to navigate to the location you want.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
468
MI_UG.PDF
9. Check the CREATE HTML LANDING PAGES for each object box to create landing pages.
Check the POPULATE LANDING PAGES WITH RECORD CONTENT box to use columns in your
table as the content for the landing pages.
10. Click the COLUMNS button. The Choose Columns dialog box displays.
11. Choose the columns you want to include in the landing pages, and customize the column
text. Customization options are explained in the next section. Click OK.
12. Click OK again to generate the HTML image map.
Selecting Columns
You can select which columns you want to display on the landing page. Check the POPULATE
LANDING PAGES WITH RECORD CONTENT box to activate the COLUMNS button. Click the Columns
button to display the Choose Columns dialog box. You can add individual columns or all the
columns from your table. By default all the columns in the table are selected and appear in the
Columns on landing page list.
To remove a column from the landing page content, click a column to highlight it and click REMOVE.
The column name appears in the Columns not on landing page list.
These buttons will change all the column name aliases in the list.
In addition, you can save your edits back to the tables metadata. Click the SAVE to metadata
button when you have finished editing the column aliases.
ToolTips
When you hover your cursor over a region or polygon in your HTML image map, a tooltip displays.
The tooltip information comes from the column you selected in the dialog box.
469
MI_UG.PDF
But that is only one part of the redistricting process. The real power lies in the Districts Browser
where you can see on-the-fly updates of district record counts and data totals when you click a
map object and assign it to another district. This allows you to perform visual what if analysis to
achieve district realignments, a process sometimes referred to as load balancing.
When you are satisfied with the distribution, you can make the district assignments permanent.
Later, as the need arises, you can change the assignments and try out new distributions.
Redistricting does not create new map objects or permanently change the style of the map
objects. Redistricting is simply a dynamic grouping tool that displays map objects that share the
same district information as a group. While the map objects are not permanently affected, you can
make the district assignments permanent by saving the table.
You can redistrict any mappable table containing region, line, or point objects. The redistrict map
will reflect the appropriate fill, line, or symbol style for the objects. The Redistricter limits the
number of districts in a table to 594.
470
MI_UG.PDF
You can use redistricting in a wide variety of applications such as creating and managing sales
territories, school or voter districts, emergency service coverage areas, delivery routes, natural
resource management areas, etc. Use it wherever there is a high degree of fluctuating data and
the need to try out different realignment scenarios.
You can use redistricting whether you need to create districts from scratch or realign existing
districts.
Before we get into the process, however, there are two key concepts to introduce: the Districts
Browser and Target District.
Select a map object in the Map window, make the Browser active, and on the
REDISTRICTER menu, click SET TARGET DISTRICT FROM MAP. The district that owns the map
object becomes the target district.
Select a map object, make the Browser active, and choose the Set Target District from
Map button.
The target district is identified in the Districts Browser as the selected record. The target district is
also identified on the StatusBar in the lower left corner of the screen.
471
MI_UG.PDF
It is very easy to select a target district in the Browser when you have a small number of districts.
However, when you have many districts (the limit is 594), you may find it quicker to select a map
object and choose the Set Target District From Map command or button. If your default setting is
Most Recently Used (on the REDISTRICT menu, click OPTIONS), when you select a map object that
is out of view in the Browser, MapInfo Professional will bring the corresponding record up near the
top of the Browser. You can then use any of the three methods described above to set the target
district.
To change the target district, simply select another district in the Browser or select a map object in
a different district and choose Set Target District From Map.
There is always one (and only one) target district selected at a time. You cannot unselect the
district by using UNSELECT ALL in the QUERY menu.
When you select map objects, MapInfo Professional temporarily assigns them to the target district
and recalculates the totals for each district. The changes are instantly reflected in the Districts
Browser. The object count for the target district increases as do the totals for the data columns to
reflect the addition of the selected objects. At the same time, the object count and data totals for
the source district decrease to reflect the removal of the object from that district.
Using Redistricting
In general, the redistricting process follows these steps:
1. On the WINDOW menu, click NEW REDISTRICT WINDOW. Specify your table and field choices
in the Redistrict dialog box. MapInfo Professional displays a color-coded map and Districts
Browser.
2. Select the target district, if necessary.
3. Select the map object(s) that you want to go into the target district.
4. Observe the changes to the data values in the Districts Browser.
5. Assign map objects to the target district.
The process is about the same whether you want to create new districts from scratch or make
changes to a table of existing districts. The two situations are discussed in the next section.
472
MI_UG.PDF
A powerful feature of redistricting is the ability to calculate net total values from the data in your
table. Any numeric field can be aggregated by sum or percent during the redistricting session. The
Available fields list shows you what calculations are possible for the given table. Choose from this
list and click the ADD >> button to move the expression to the Fields to Browse list. Only those
items listed in the Fields to Browse list will be acted upon and displayed in the Districts Browser.
You can reorder the fields using the Up and Down buttons to list them in a certain order in the
Browser. When you are satisfied with the choices in the dialog box, click OK. MapInfo Professional
performs the redistricting operation.
When processing is finished, MapInfo Professional displays a map of your table with a single color
and a Districts Browser with a placeholder for a district entry. This is because you told MapInfo
Professional to carry out the redistricting on a column with an empty field.
To create another district, make sure the Districts Browser is active so that the Redistrict menu is
available on the menu bar. On the REDISTRICT menu, click ADD DISTRICT. The new district displays
in the Browser with the name DistrictN, where N is the next higher number. Continue to add
districts until you feel you have enough to begin reassigning objects to them. Enlarge the Browser,
if necessary, to see the new district records.
Note:
Each district you add will display with a generic name DistrictN, where N is the next higher
number. To change the names, highlight the name and type in the new name.
To begin building your districts, make one of them the target district. Next, select map objects in
the Map window to add objects to the new district. Notice how the values in the target district
increase as the object(s) are selected.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
473
MI_UG.PDF
At this point the objects are only temporarily assigned to the district. When you have made all the
additions to the district that you want for the moment, make the Districts Browser active and on the
REDISTRICT menu, click ASSIGN SELECTED OBJECTS to make the assignment permanent.
Note:
You must save the table at the end of the redistricting session to retain the new districts.
Continue to add and assign objects to districts until you have created as many districts as you
need. You can now see the geographic extent of each color-coded district in the map window. You
can also see the results of the expression calculations in the Browser showing the new total values
for each district.
Now you can reassign districts to more equitably distribute resources, to include or exclude certain
information, whatever your needs call for.
When you perform redistricting, MapInfo Professional alters the values in whatever
column you choose. You may want to make a copy of the column so that you retain the
column values. In addition, do not name your tables Districts. MapInfo Professional uses
Districts internally as a system table when beginning a redistricting session.
On the WINDOW menu, click NEW REDISTRICT WINDOW to start the redistricting session. In the
Redistrict dialog box, specify your table and field that contains the district names. From the
Available Fields list, choose the fields you want displayed during redistricting. Reorder the fields as
necessary. The fields will display in the Districts Browser in the order specified in the Fields to
Browse list. Click OK. MapInfo Professional creates an individual value theme and the Districts
Browser.
Now to begin the actual redistricting, or load-balancing, set the district that you want to add objects
to as the target district. Select the map object(s) and watch the data change in the Districts
Browser. You can select objects from more than one district and assign them to the same target
district. Simply SHIFT-CLICK each additional map object after the first one.
474
MI_UG.PDF
As you choose map objects, the Browser immediately reflects the changes among the districts
with new counts per district and new totals based on expressions you specified in the Redistrict
dialog box, such as the sum or percent of a column value.
When you are satisfied with the reassigned objects for the target district, on the REDISTRICT menu,
click ASSIGN SELECTED OBJECTS to make the changes permanent. You can now choose a different
target object and add other map objects to it. Continue until you are satisfied with the new
distribution of map objects.
After adding the selected objects to the target
district, the Southwest and Northwest districts
contain about the same percentage of children
475
MI_UG.PDF
You can only use Combine Objects Using Column for two dimensional objects such as
regions.
Options in Redistricting
To control the order of districts in the Districts Browser, on the REDISTRICT menu, click OPTIONS.
The Redistricter Options dialog box displays. Choose your preferred sort order from among: most
recently used, alphabetical, or unordered. You can also choose to show the Browser grid lines and
save the options as your default.
As mentioned earlier, the Most Recently Used option can greatly aid you if you have more districts
than the Districts Browser can display in a window. Whenever you select a map object that
belongs to a district that is not currently visible in the Browser, MapInfo Professional will move that
record near the top of the Browser window. You can then more easily set the new target district or
view the changes in the data fields as you carry out your load-balancing scenario.
Changing the display of your districts is simple. Click the fill pattern, line style, or symbol in the
Districts Browser that represents the district. The Region Style, Line Style, or Symbol Style dialog
box displays, where you can change the tools used to display the district.
To save the style changes, you must save the redistricting session as a workspace. SAVE TABLE
will only save the district assignment changes. The styles belong to a thematic layer, not to the
table itself. The district changes are applied to the table and, thus, can be saved to the table.
476
MI_UG.PDF
You must end the current redistricting session before beginning a new one.
Creating Expressions
Formulating expressions is something like writing sentences. There is a vocabulary of words from
which you can draw, and these words have to be combined according to syntactic rules. The
syntax of expressions is much simpler than the syntax of English, and the vocabulary is vastly
smaller. However, most of us have been using English for years and so it seems easy and natural
whereas formulating expressions is, at first, sometimes a bit difficult.
However, just as English has simple sentences and complex sentences, so there are simple
expressions and complex ones. Even if you dont get the hang of formulating complex
expressions, you can still use all the MapInfo Professional commands that use expressions. That
is because formulating simple expressions is very easy and, at the same time, allows you to work
with your data in powerful ways.
477
MI_UG.PDF
The first three examples use comparison operators. The first tests to see whether the 1990
population is greater than (>) some constant (17893). The second tests to see whether the value
of one column, POP_1990, is less than or equal to (<=) the value of another column, POP_1980.
The third tests to see whether or not the county is Orange. When the county does not equal (<>)
Orange the record is selected. You could use any of these expressions in Select or in the Where
Condition clause of SQL Select. These commands allow you to select a subset of the records in a
table. The expression defines the characteristics of the subset.
Examples 6 and 7 use arithmetic operators. Example 6 multiplies (*) the value of POP_1980 by a
constant (1.2) while example 7 divides one column, POP_1990, by the value of another column,
AREA.
Example 8 uses the round function to round the value of the expression POP_1990/
TOTAL_AREA to the nearest tenth (.1).
Expressions 6, 7 and 8 dont have comparison operators and therefore they would not be suitable
for use in Select or in the Where Condition clause of SQL Select. However, you could use them
alone in Thematic Mapping, Update Column, or Select columns in SQL Select.
Example six illustrates the first technique. There are many examples of the second technique
throughout this entry. See particularly the discussion following Logical Operators.
Character Strings
When typing a particular string into an expression, you should enclose it in double quotes so that
MapInfo Professional knows to treat it as a string, rather than treating it as a column name.
Examples 11 and 12 are valid string constants, but 13 and 14 are not.
478
MI_UG.PDF
11. Orange
12. New York
13. Orange
14. New York
Numbers
When entering specific numerical values, do not use thousands separators or currency symbols
(such as dollar signs) or any characters other than numerals, the decimal sign (.) or commas (,)
and the minus sign for negative numbers.
Dates
Dates consist of a month, a day, and an optional year. The year is specified by two or four digits
and should be enclosed in double quotes. The components of a date can be separated by
hyphens or slashes. The following are valid data constants:
15. 12092
16. 01/20/1992
17. 1/20
Operator
Description
Example
plus
A+B
minus
A - B (subtraction)
-A (negative)
times
A*B
divided by
A/B
exponentiation
A^B
integer division
A\B
mod
modulo arithmetic
A mod B
When you add numbers to dates, or subtract numbers from dates, MapInfo Professional treats the
numbers as specifying a number of days. If you want to add or subtract a week, you would use the
number 7. When you want to add or subtract a month, you could use 30 or 31. When MapInfo
Professional subtracts a date from a date, the resulting number indicates a number of days.
479
MI_UG.PDF
&
When MapInfo Professional evaluates this as part of an expression it places Ms. in front of each
last name. Note that the string constant (Ms. ) is in quotes. Similarly,
Hello, + world
Description
equals
<>
not equals
>
greater than
<
less than
>=
<=
Numerical Comparison
Numerical comparisons are based on the numerical values of the expressions and numerical
constants.
English: All rows where the household income is above $65,000.
18. HH_INC>65000
Comment: Dont add the dollar sign or comma. MapInfo Professional doesnt know what to do with
it and gives you an error message.
English: All rows where the median age is 42.
19. MED_AGE=42
Comment: This expression selects only those records where the median age is exactly 42. When
your median age data contains a decimal portion (which is the case for MapInfo Professionalsupplied demographic data) then it is unlikely that there are many regions with a median age of
exactly 42.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
480
MI_UG.PDF
String Comparison
String comparisons are based on the exact character content of the string. In this case > means
alphabetically greater than (i.e. comes after in the alphabet) and < means alphabetically less
than.
When typing a string into an expression, you should enclose it in quotes so that MapInfo
Professional knows to treat it as a string, rather than treating it as a column name.
English: All rows where the vendor is Acme.
22. VENDOR=Acme
Comment: Note that Acme is in quotes so that MapInfo Professional knows to treat it literally (as a
character string) rather than to search for a column named Acme.
English: All rows where the vendor is not Acme.
23. VENDOR<>Acme
Date Comparison
English: All entries received on October 9, 1991.
24. RECEIVED=10991
Note:
Two characters were used for the year. You can also use four characters (1991)
481
MI_UG.PDF
Comment: This expression uses the Month function to extract the month in the date. It doesnt
specify any particular year. When your database has records for several years, this expression
does not pay attention to the particular year.
Logical Comparison
English: All that have shipped.
28. Shipped
Comment: The column Shipped is a logical column. It contains T for true, or yes, and F for
false, or no. When an order is shipped, it is marked T. Otherwise, it is not shipped. For orders
that are shipped, expression 28 evaluates to true. For orders not shipped it evaluates to false.
English: All that have not shipped.
29. Str$(Shipped)=F
30. Not Shipped
Contains Entire
Contains Part
Within
Entirely Within
Partly Within
Intersects
Contains Part and Partly Within are exactly equivalent to Intersects -- these are all treated the
same way by MapInfo Professional, so the standard syntax Intersects is almost universally used.
Contains and Within are concerned only with objects' centroids.
Contains Entire and Entirely Within are concerned with the area covered by a region object; the
location of the centroid doesn't matter.
482
MI_UG.PDF
M - Object Centroid
Thus, if A, B, C, and D are all regions:
Object A contains Object B
Object A intersects Object B
Object A does not intersect Object C
Object B does not contain Object A
Object B intersects Object A
Object B intersects Object C
Object C contains Object D
Object C contains entire Object D
Object C intersects Object D
Object D does not contain Object C
Object D entirely within Object C
If A, B, C, and D are all polylines, then the Contains and Within operators are not applicable, but:
Object B intersects Object A
Object B intersects Object C
Object C does not intersect Object D
Object D does not intersect Object C
Similarly, a polyline can not contain a point, but it can intersect a point; a point can not be within a
polyline, but it can intersect a polyline.
Note:
MapInfo Professional can perform a simple Contains or Within comparison more rapidly
than a Contains Entire or Entirely Within. Therefore, unless you must be absolutely sure
that objects are completely inside other objects you should use Contains and Within rather
than Contains Entire or Entirely Within.
483
MI_UG.PDF
Description
and
is true if (and only if) both of its arguments (the expressions it joins
together) are true. A record must satisfy both of these conditions if it is to be
selected.
or
not
And, or, and not are logical operators. You use them to combine expressions in Select and the
Where Condition clause of SQL Select. MapInfo Professional treats each such expression as a
test which it applies to each record in the table. For each test it gets a yes/no (true/false) answer.
MapInfo Professional uses the logical operators to tell it how to combine the individual yes/no
answers into an overall yes/no answer: Does the current record meet the selection condition?
Suppose you want to select all properties that are worth $250,000 or more and are in Columbia
county. Each record has to meet two criteria, each of which can be formulated as a simple
expression:
31. VALUE >= 250000
32. COUNTY = Columbia
You could perform one selection for all properties worth $250,000 or more. Then you could
perform another selection on that result, looking for all properties in Columbia county. However, it
is easier to combine the two operations into one using the logical operator and.
33. COUNTY = Columbia and VALUE >= 250000
When MapInfo Professional examines a record to see whether or not it meets the condition set by
this expression, it makes the two tests: Does COUNTY equal Columbia? Is the VALUE equal to or
greater than 250000? When the answer to both of these questions is true (or yes), then the record
is accepted into the current selection. When the answer to one or both of the questions is no (or
false), then the record is not accepted into the current selection.
Now, what if you want all properties worth $250,000 or more and not in Columbia county? You can
use not to negate the first clause of expression 33, yielding expression 34:
34. not (COUNTY=Columbia) and VALUE>=250000
Only records where the county is not Columbia satisfy the first clause of expression 34. Now
consider expression 35:
35. not (COUNTY=Columbia and VALUE>=250000)
Expression 35 is simply the negation of expression 33. Any record that would satisfy 33 does not
satisfy 35. Any record that does not satisfy 33 satisfies 35.
You can use or when you want to specify alternative conditions, such as:
36. COUNTY=Columbia or COUNTY=Greene
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
484
MI_UG.PDF
Any record evaluated against this condition is accepted if its county is any one of the two specified
counties. One could, of course, use numerical tests as well. For example:
37. TOTAL_AREA>40 or VALUE>250000
This tests to see whether the area is greater than 40 or the value is greater than 250000. When
either one is true of a record, then that record is accepted into the selection.
In formulating expressions using logical operators you have to be careful how you use them. The
following expression, while it seems OK, does not work:
38. COUNTY=Columbia or Greene
Judging from its English translationCOUNTY equals Columbia or Greenethis expression
should operate just like expression 36 and give us any record containing Columbia County or
Greene County. But the rules of computational logic and the rules of English are a bit different.
When MapInfo Professional reads expressions it reads them from left to right. One of the things it
has to do is to determine how the items in the expression are grouped. Think of this operation as
inserting parentheses into the expression. MapInfo Professional reads expression 35 as though it
were grouped like expression 39, which is what we intend. It reads expression 38 as though it
were grouped like 40, which is not at all what we want.
39. (COUNTY=Columbia) or (COUNTY=Greene)
40. (COUNTY=Columbia) or (Greene)
Both 39 and 40 have the same first clause. But their second clauses (after the or) are quite
different. The second clause of 40 is simply a literal string, Greene. By convention, MapInfo
Professional evaluates a record against a literal string as being true if that record is not blank.
When MapInfo Professional evaluates records against expression 40, all non-blank records are
evaluated as true and be accepted into the selection. It does not make any difference how a record
evaluates on the first clause. Any non-blank record evaluates as true on the second clause, and
one true is all it takes to evaluate the entire expression as true.
Let us consider one final example, which is the negation of expression 36:
41. not (COUNTY=Greene or COUNTY=Columbia)
Expression 39 is satisfied if the county is Greene or if it is Columbia, but not if it is Montgomery or
Warren. Expression 41 is satisfied by any county other than Greene or Columbia, including
Montgomery and Warren.
Numeric Clauses
English: All the household income is above $65,000 and the median age is 42.
42. HH_INC>=65000 and Round(MED_AGE, 1)=42
Comment: This expression simply consists of two clauses. The clauses are connected by and,
that means that both clauses must be true of a record for it to be selected.
English: All with a price between $50,000 and $100,000.
43. PRICE>=50000 and PRICE<=100000
485
MI_UG.PDF
Comment: Now we are setting two conditions that a record must satisfy in order to be selected. By
using the operators greater than or equal to (>=) and less than or equal to (<=) we ensure that
the records with the exact prices of $50,000 and $100,000 are selected. When we had simply
used greater than (>) and less than (<), the expression would select $50,001 and $99,999 but
not $50,000 or $100,000.
English: All with a price between $50,000 and $100,000 or between $150,000 and $200,000.
44. (PRICE>=50000 and PRICE<=100000) or (PRICE>=150000 and PRICE<=200000)
Comment: This expression has the overall form: (expression1) or (expression2). Each of these
expressions has the same form as expression 36. When a row meets the condition specified by
either expression1 or expression2, MapInfo Professional puts the row into the selection.
String Clauses
English: All customers from N to Q.
45. LAST_NAME >= N and LAST_NAME <R
Comment: The first part of the expression checks for names that are either alphabetically equal to
n or that are alphabetically greater than (after) n. The second part of the expression checks for
names that are alphabetically less than (before) r. Any name starting with letters n through q
satisfies this condition.
English: All customers from N to Z.
Note:
Date Clauses
English: Records for all received in August 1990
50. Month(RECEIVED)=8 and Year(RECEIVED)=1990
486
MI_UG.PDF
Comment: In this expression we specify the year explicitly, using the year(<somecolumn>)
function to extract it from the date.
51. RECEIVED>=8190 and RECEIVED<=83190
Comment: In this expression we dont explicitly ask for month and year. Instead, we rethink a bit
and use an expression that might more accurately be rendered in English as: Records for all
received on or after August 1, 1990 and on or before August 31, 1990. The two expressions give
equivalent results, but they are formulated differently.
English: Records for all received in July or September
52. Month(RECEIVED)=7 or Month(RECEIVED)=9
Comment: As in a previous example, no year for the dates. Depending on the data in your table
and what youre trying to achieve, that may or may not be a problem. When you want to specify the
year:
English: Records for all received in July or September of 1989
53. month(RECEIVED)=any(7, 9) and year(RECEIVED)=89
Comment: The first clause of this expression uses the keyword any. The first clause is satisfied if
any of the items in parenthesis match the month received in this case, the months of July and
September.
Keywords
MapInfo Professional supports the use of keywords any, all, in and between. These
keywords must be typed into expressions.
Use any to select any item in a set of items.
54. ABBR = any(AL, MN, TX)
Expression 54 is true of any record where the state is Alabama, Minnesota, or Texas.
To understand the use of all consider expression 55:
55. ABBR <> all(AL, MN, TX)
This statement says: Give me all orders where the state does not equal Alabama, Minnesota, or
Texas. It selects all orders except those from Alabama, Minnesota or Texas. Consider what would
happen if we issued 56:
56. ABBR <> any(AL, MN, TX)
Orders from Alabama would be selected because they are not from either Minnesota or Texas;
and orders from Minnesota and Texas would be selected for a similar reason.
This example, shows the use of in:
57. ABBR in(AL, MN, TX)
This produces the same result as 54.
Note that in is equivalent to =any and not in is equivalent to <>all.
Finally, consider 58 and 59, which illustrate between:
487
MI_UG.PDF
Operator Precedence
When MapInfo Professional evaluates expressions it needs to know which components of an
expression to evaluate first. This is called precedence. By convention, certain operators are
assigned different levels of precedence. Those with the highest level are evaluated first. The
following table lists MapInfo Professionals operators in the order in which they are evaluated.
Operators at the same level of precedence are evaluated from left to right. Exponentiation
evaluates from the right. This affects expressions with multiple exponents: 2 ^ -3 ^ -4 = 2 ^ ( - (3
^ (-4)))
Highest Priority:
parenthesis
exponentiation
negation
multiplication, division
addition, subtraction
geographic operators
comparison operators
Not
And
Lowest Priority:
Or
For example, the expression 3+4*2 produces a result of 11. That is because multiplication has a
higher precedence than addition and is performed first, in effect:
3+4*2=
3+8=
11
Now consider expression 60, which is intended to select all records July or September of 1989.
60. year(RECEIVED)=89 and month(RECEIVED)=7 or month(RECEIVED)=9
Because and has higher precedence than or, MapInfo Professional treats this expression as
though year(RECEIVED)=89 and month(RECEIVED)=7 was enclosed in parentheses.
61. (year(RECEIVED)=89 and month(RECEIVED)=7) or month(RECEIVED)=9
488
MI_UG.PDF
In this case, any record for July of 89 or for September of any year would be selected. Thats
probably not what you want. However, by adding parentheses to the second expression, you can
get what you want:
62. year(RECEIVED)=89 and (month(RECEIVED)=7 or month(RECEIVED)=9)
In this expression, the parentheses tell MapInfo Professional that month(RECEIVED)=7 and
month(RECEIVED)=9 are alternatives in the second clause of the expression. MapInfo
Professional treats this the same as it treats number 53 above.
Note:
When you are not sure how MapInfo Professional evaluates an expression with several
operators, you should use parentheses to group elements as you want them.
Functions
Functions take data values and perform some operation on them to produce a new value.
Functions have the following form:
SomeFunction(parameters)
Most of MapInfo Professionals functions take one or two parameters. A parameter can be a
column or it can be another expression.
MapInfo Professional uses the keyword obj or object with the geographic functions: Area,
CentroidX, CentroidY, ObjectLen, Perimeter. This keyword tells MapInfo Professional that it has to
get values based on the graphical objects in the table rather than the tabular data.
Abs
Syntax: Abs(num_expr)
Action: Returns the absolute value of a numerical expression. When the expression has a value
greater than zero, Abs returns that value. When the expression has a value less than zero, Abs
returns a value equal to the value of the expression multiplied by negative one.
Example: Consider the following expression:
63. Abs(numA-numB)
(returns the absolute difference between numA and numB, regardless of which is larger)
The following illustrates how Abs works:
Abs(5) = 5
Abs(-3) = 3
Abs(-0.02) = 0.02
Area
Syntax: Area(obj, units)
Action: Returns the area of the object. 0 is returned if the object has no area or there is no object
for the record. Arcs, text, points, lines, and polylines do not have areas.
When you choose Area from a menu the obj keyword is placed between the parentheses along
with the current unit in double-quotes. In most cases the current unit is square miles. When you
want area to be in some other unit, you should type the unit in, between quotes.
489
MI_UG.PDF
Unit Name
square miles
sq mi
square kilometers
sq km
square inches
sq in
square feet
sq ft
sq survey ft
square yards
sq yd
square millimeters
sq mm
square centimeters
sq cm
square meters
sq m
square chains
sq ch
square links
sq li
square rods
sq rd
perches
perch
roods
rood
acres
acre
hectares
hectare
Examples: To select all rows for objects that have an area greater than 59 square miles:
64. Area(obj,sq mi)>59
To calculate the population density for an object:
65. Population/Area(obj,sq mi)
To select all rows for objects with a population density less than 250 people per unit area:
66. Population/Area(obj,sq mi)<250
When you want the area in hectares:
67. Area(obj,hectare)
When you want the area in square kilometers:
68. Area(obj,sq km)
CentroidX
Syntax: CentroidX(object)
Action: Returns the x coordinate of the centroid of the object, which is the longitude value for earth
maps. The centroid is usually the center of the objects minimum bounding rectangle (MBR).
490
MI_UG.PDF
The value is in decimal degrees if the coordinates are latitudes and longitudes. The value is in
whatever units were specified for the table if its coordinates are not latitudes and longitudes.
Examples: To select all objects west of New York City:
69. CentroidX(obj)<-73.997890
To select all objects east of New York City:
70. CentroidX(obj)>-73.997890
CentroidY
Syntax: CentroidY(object)
Action: Returns the y centroid of the object, which is the latitude value for earth maps.
The value is in decimal degrees if the coordinates are latitudes and longitudes. The value is in
whatever units were specified for the table if its coordinates are not latitudes and longitudes.
Examples: To select all objects north of New York City:
71. CentroidY(obj)>40.750450
To select all objects south of New York City:
72. CentroidY(obj)<40.750450
To select all objects northeast of New York City:
73. CentroidX(obj)>-73.997890 and CentroidY(obj)>40.750450
The first clause in the expression selects objects east of New York City while the second clause in
the expression selects objects north of New York City. Because the two clauses are joined by and
an object must satisfy both clauses to be selected.
To select all objects that are either north or east of New York City:
74. CentroidX(obj)>-73.997890 or CentroidY(obj)>40.750450
The first clause in the expression selects objects east of New York City while the second clause in
the expression selects objects north of New York City. Because the two clauses are joined by or
an object needs to satisfy only one of them in order to be selected.
Chr$
Syntax: Chr$(num_expr)
Action: Chr$ interprets the value of num_expr as a character value. It returns the character
corresponding to that value. Accordingly, num_expr should be an integer between 0 and 255.
Example: You might want to have labels with information on two lines. You can use Chr$ to insert
a carriage return into a label expression. The ANSI value for a carriage return is 13. Assume that
you want the first line of a label to be a country name and the second line of a label to be the
county population.
The following expression produces that result:
75. Proper$(County)+Chr$(13)+Population
491
MI_UG.PDF
Note:
Some BASIC languages use the convention Chr$(10) to represent a line feed. MapBasic
allows you to specify either Chr$(13) or Chr$(10).
Cos
Syntax: Cos(num_expr)
Action: The Cos function returns the cosine of the value of a numeric expression, where that
expression represents an angle expressed in radians.
CurDate
Syntax: CurDate()
Action: Returns a date value representing the current date.
Examples: To enter the current date into a column:
76. CurDate()
You might use this in conjunction with Update Column where you want to enter the current date
into some column.
To select all received 30 or more days ago:
77. Received<=CurDate()-30
Day
Syntax: Day(datefield)
Action: Returns the day of the month from the date. The day is represented as an integer from one
(1) to thirty-one (31).
Examples: To select all rows where the date is the first of the month:
78. Day(date)=1
To select all rows where the day is Friday and the date is not the thirteenth:
79. Weekday(date)=6 and Day(date)<>13
This expression has two clauses. The first clause uses the Weekday function to select records
where the day of the week is a Friday. The second clauses uses the Day function to select records
where the day of the month does not equal (<>) 13. Since the two clauses are connected by and
both clauses must be true for a row to be selected.
Distance
Syntax: Distance(x1, y1, x2, y2, units)
x1 and x2 are East-West (Longitude) coordinates for earth maps
y1 and y2 are North-South (Latitude) coordinates for earth maps
Units is the current distance unit
Action: Calculates the distance between two points.
When you choose Distance from a menu the obj keyword is placed between the parentheses
along with the current unit in double-quotes. In most cases the current unit is miles.
492
MI_UG.PDF
When you want distance to be in some other unit, you should type the unit in, between quotes. The
units available are:
Unit Name
Unit Represented
mi
miles
km
kilometers
in
inches
ft
feet
survey ft
survey feet
li
links
rd
rods
ch
chains
yd
yards
mm
millimeters
cm
centimeters
meters
nmi
Examples: To calculate the distance between some objects and New York City, located at 73.997890 longitude and 40.750450 latitude:
80. Distance(-73.997890, 40.750450, CentroidX(obj), CentroidY(obj),mi)
To select all objects west of New York and not more than 20 miles from it:
81. CentroidX(obj)<-73.997890 and Distance(-73.997890, 40.750450, CentroidX(obj),
CentroidY(obj),mi)<=20
This expression has two clauses. The first clause specifies that an object must be west of New
York to be selected. The second clause specifies that an object must be no more than twenty miles
from New York in order to be selected. Since the two clauses are connected by and both must be
true if an object is to be selected.
Format$
Syntax: Format$ ( value, pattern)
value is a numeric expression
pattern is a string that specifies how to format the results
Action: Produces a string representation of the numeric value num_expr.
Examples: The Format$( ) function produces a specially-formatted character string that
incorporates a numeric value (specified by the value parameter). The Format$( ) function can
embed a variety of formatting characters (e.g. currency symbols such as $, %, periods, and
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
493
MI_UG.PDF
commas) to make the result string more readable or more aesthetically pleasing. Given a numeric
value such as 12345.67, your program can use the Format$( ) function to produce formatted
results, such as $12,345.67.
The Format$( ) functions value parameter represents the numeric value that you want to format.
The pattern parameter is a string of code characters, carefully chosen (by you) to produce a
particular type of formatted result. The pattern string should include one or more special format
characters, such as #, 0, %, the comma character, the period, or the semicolon character; these
characters control how the results looks. The pattern string can also include one or more cosmetic
characters, such as $, -, ( , or ), to make the results more attractive.
The next table summarizes the format characters.
Pattern
Control
Characters
The result includes one or more digits from the value. However, if the control string
contains one or more # characters to the left of the decimal place, and the value is
between zero and one, the formatted result string may not include a zero before the
decimal place.
A digit placeholder similar to the # character; however, if the control string contains one
or more 0 characters to the left of the decimal place, and the value is between zero and
one, the formatted result string includes a zero before the decimal place.
The period character is used in conjunction with the # character. When the pattern
string includes a period character, then the number of # characters to the right of the
period dictates the number of decimal places that the result string displays.
When you include a comma character before the first # character, the result string
includes a comma every three digits to the left of the decimal place. The number ten
million would appear as 10,000,000 rather than 10000000.
The result represents the value multiplied by one hundred; a value of 0.75 produces a
result string of 75%. When you wish to include a percent sign in your result, but you
do not want MapBasic to multiply the value by one hundred, place a \ (backslash)
character before the percent sign.
E+
The result is formatted according to scientific notation; for example, the value 1234
produce the result 1.234e+03. When the exponent is positive, a plus sign appears
after the e. When the exponent is negative (which is the case for fractional numbers),
a minus sign appears after the e.
E-
This string of control characters functions just as the E+ string, except that the result
never shows a plus sign following the e.
By including a semicolon in your pattern string, you can specify one format for positive
numbers and another format for negative numbers. The semicolon should appear after
the first set of format characters, and before the second set of format characters. The
second set of format characters applies to negative numbers. If the pattern string
includes a second semicolon, the third format string (following the second semicolon)
will be used to format the special-case value of 0 (zero).
494
MI_UG.PDF
Pattern
Control
Characters
When your pattern string includes both positive and negative formats in this fashion, the
result does not automatically include a minus sign. When you wish to include a minus
sign in the results, you should include a - character in the second set of format
characters. See examples in next table.
When the backslash character appears in a pattern string, MapBasic does not perform
any special processing for the character that follows the backslash. This allows you to
include special characters (such as the percent sign) in the results, without causing the
special formatting actions described above.
In the next table, the left column shows sample strings that you could use as the Format$( )
functions pattern parameter. The middle column shows sample numbers, such as you might use
as the value parameter. The right column shows the results that Format$( ) would return, given the
parameters from the left columns.
Pattern
Value Parameter
Format$( ) Returns:
,#
12345
12,345
,#
-12345
-12,345
$#
12345
$12345
$#
-12345
-$12345
$,#
12345
$12,345
$,#
-12345
-$12,345
$,#.##
12345.678
$12,345.68
$,#.##
-12345.678
-$12,345.68
$,#.##;($,#.##)
12345.678
$12,345.68
$,#.##;($,#.##)
-12345.678
($12,345.68)
,#.###
12345.6789
12,345.679
,#.#
12345.6789
12,345.7
#.#
12345.6789
12345.7
#.###E+##
12345.6789
1.235e+04
#.###E+##
-12345.6789
-1.235e+04
#.###E+##
0.054321
5.432e-02
#.###E-##
12345.6789
1.235e04
#.###E-##
0.054321
5.432e-02
495
MI_UG.PDF
Pattern
Value Parameter
Format$( ) Returns:
#%
0.054321
5%
#.##%
0.054321
5.43%
#.##\%
0.054321
.05%
0.##\%
0.054321
0.05%
InStr
Syntax: InStr(position, string, substring)
Action: InStr tests whether of not some string has a specific substring. MapInfo Professional
searches string starting at the character position specified by position. When position is one,
MapInfo Professional starts searching at the beginning of string. When it has the value 6, MapInfo
Professional starts searching at the sixth character in string.
When string contains substring, InStr returns the character position where substring starts.
Note:
Example: You are preparing to geocode a file and you want to identify all the entries with Post
Office boxes for addresses. That means you want all entries that have the string box in their
address column. They may also have P.O., but you cannot be sure of that. Nor can you be sure
of how box is capitalized in the entries. Here is your expression:
82. InStr(1,UCase$(ADDRESS),BOX)>0
This expression directs MapInfo Professional to search the Address column for the string BOX.
All entries containing this string are selected.
For example, if your data looks like this:
This is a test of the insert function.
You want to find the position of test. The INSTR function will look like this:
INSTR(1,This is a test of the insert function, test)
When this statement is executed, the value 11 will be returned.
Note:
If the string that you are searching for does not exist, the value 0 will be returned.
Int
Syntax: Int(num_expr)
Action: Returns the nearest integer that is less than or equal to the specified value (num_expr).
Examples: The following table shows how Int treats various values:
Number
Int(Number)
5.2
5.999
-7.8
-8
MapInfo Professional 7.5
496
MI_UG.PDF
Number
Int(Number)
-7.2
-8
When you apply Int to a Logical variable type, it will produce a 1 if the Logical value is TRUE, or 0
if the Logical value is FALSE.
It is also possible to evaluate logical expressions with Int. For example,
83. Int(STATE_NAME=Maine)
returns an integer value of 1 if the State_Name column or variable contains the string Maine, or
an integer value of 0 if State_Name contains any other string value.
LCase$
Syntax: LCase$(string)
Action: Returns the lower case of the string.
Examples: Consider the following expression:
84. LCase$(CITY)
The following table shows how LCase$ converts an input string (from a column in your table) into a
returned string:
Input String
Returned String
NEW YORK
new york
New yorK
new york
new york
new york
Left$
Syntax: Left$(string, number)
Action: Returns a string that consists of the leftmost number of characters in string.
Examples: Consider the following expression:
85. Left$(CITY,5)
The following table shows how that expression converts an input string into a returned string:
Input String
Returned String
New Y
Denver
Denve
Singapore
Singa
Now consider the following expression, where Phone is a column containing telephone numbers
prefixed by area codes:
86. Left$(PHONE,3)=404
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
497
MI_UG.PDF
This expression selects all rows where the first three digits of the phone number are 404. Note
that the Phone column contains character data and therefore the comparison value, 404, has to be
in quotes so MapInfo Professional knows to treat it as a character string.
see also: Right$, Mid$
Len
Syntax: Len(string)
Action: Returns the number of characters in a string.
LTrim$
Syntax: LTrim$(string)
Action: LTrim$ removes any non-printing characters (e.g. spaces, TABs) from the beginning of
string.
see also: RTrim$
Maximum
Syntax: Maximum(num_expr, num_expr)
Action: Maximum returns the larger of two numbers.
Example: To find the highest address number for a street segment in a StreetPro file:
87. Maximum(TOLEFT,TORIGHT)
ToLeft is the highest address number on the left side of a segment and ToRight is the highest
address number of the right side of a segment.
Mid$
Syntax: Mid$(string, position, length)
string is a character expression
position is an integer indicating a starting position in string
length is an integer indicating the number of characters to extract
Action: Mid$ returns a string of a set length, starting at given position, in a specified string.
Examples: Consider the following expression:
88. Mid$(CITY,5,4)
The following table shows how that expression converts an input string into a returned string:
Input String
Note:
Returned String
York
Denver
er
Singapore
apor
The expression only returned two characters from Denver. That is because Denver is
too short to have a four-character string starting at its fifth character.
498
MI_UG.PDF
Minimum
Syntax: Minimum(num_expr, num_expr)
Action: Minimum returns the smaller of two numbers.
Examples: To find the lowest address number for a street segment in a StreetPro file:
89. Minimum(FROMLEFT,FROMRIGHT)
FromLeft is the highest address number on the left side of a segment and FromRight is the highest
address number of the right side of a segment.
Month
Syntax: Month(datefield)
Action: Returns the month of the date as a number, 1 through 12.
Examples: To select all received in August:
90. Month(received)=8
To select all received before August:
91. Month(received)<8
To select all received in August 1990:
92. Month(received)=8 and Year(received)=1990
This expression has two clauses. The first specifies that the month must be August and the
second that the year must be 1990. The clauses are connected by the AND operator and so both
must be True for a row to be selected.
To select all received in August or September:
93. Month(received)=8 or Month(received)=9
This expression has two clauses. The first selects rows where the month is August and the second
selects rows where the month is September. Since the clauses are connected by or only one
must be True for a row to be selected.
To select all received in August or September:
94. Month(received)=any(8,9)
This expression achieves the same result as 92, but is formulated using the keyword any.
To select all received in August or September of 1990:
95. Month(received)=any(8,9) and Year(received)=1990
This expression has two clauses. The first selects rows where the month is August or September
and the second selects rows where the year is 1990. The clauses are connected by the AND
operator and so both must be True for a row to be selected.
ObjectLen
Syntax: ObjectLen(obj, unit)
Action: Returns the length of lines and polylines. Returns a value of 0 for other objects.
499
MI_UG.PDF
When you choose ObjectLen from a menu place the obj keyword between the parentheses along
with the current unit in double-quotes. In most cases the current unit is miles. When you want
length to be in some other unit, type the unit using double quotes. The units available are:
Unit Name
Unit Represented
mi
miles
km
kilometers
in
inches
ft
feet
survey ft
survey feet
yd
yards
mm
millimeters
cm
centimeters
li
links
rd
rods
ch
chains
meters
nmi
nautical miles
(1 nautical mile = 1852 meters)
Perimeter
Syntax: Perimeter(obj, unit)
Action: Returns the perimeter of the object for regions, ellipses, rectangles, and rounded
rectangles. When you choose Perimeter from a menu the obj keyword is placed between the
parentheses along with the current unit in double-quotes. In most cases the current unit is miles.
When you want perimeter to be in some other unit, you should type the unit using double quotes.
See the table above for the available units.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
500
MI_UG.PDF
Proper$
Syntax: Proper$(string)
Action: Returns a string that has the first letter of each word capitalized and all other letters
lowercase.
Examples: Consider the following expression:
104.Proper$(CITY)
This table shows how the Proper$ function reformats a column in your table:
Original text
Reformatted text
NEW YORK
New York
New yorK
New York
new york
New York
New York
New York
Right$( )
Syntax: Right$ (string_expr, num_expr)
Action: Returns part or all of a string beginning at the right end of the string.
Example:
105.Right$(CITY, 4)
The following table shows how that expression converts an input string into a returned string:
Input String
Returned String
City
Denver
nver
Singapore
pore
501
MI_UG.PDF
Round
Syntax: Round(number1, number2)
Action: Returns the rounded number1. number2 specifies how to round it.
Examples: Consider the following expression:
106.Round(number1,number2)
The next table gives examples. The first column contains the function arguments (number1,
number2) and the second column contains the rounded result.
Arguments
Rounded Number
14347,10000
10000
14347, 100
14300
14347, 10
14350
12.18353, .1
12.20000
12.18353, .001
12.18400
To select all rows where the median age is 42, you might use the following expression:
107.Round(MED_AGE, 1)=42
Depending on your data, this expression may give better results than one that compares median
age directly with a target value (MED_AGE=42). The median age column in MapInfo Professionals
STATES table has the median age calculated to one decimal place. When we compare those
values directly with 42 MapInfo Professional would not select records where the median age is, for
example, 41.7, 42.1, or 42.4. Yet we probably want those records. By rounding the median age
value to a whole number, we can get those values.
RTrim$
Syntax: RTrim$(string)
Action: RTrim$ removes any white-space characters (e.g. spaces, and TABs) from the end of
string.
see also: LTrim$
Sin
Syntax: Sin(num_expr)
Action: The Sin function returns the sine of the value of a numeric expression, where that
expression represents an angle expressed in radians.
Str$
Syntax: Str$(expr)
502
MI_UG.PDF
Action: Str$ converts a numerical expression into a string that represents it. When the numerical
expression is negative the first character in the string with be a negative sign (-). The first character
returned for a positive value is the first number. If the expression is an object, Str$() returns a string
describing the type of object (e.g., region). If the expression is a Logical (true/false) value, Str$
returns T for true or F for false.
When applied to a Float variable type, Str$ will produce a text string representing the floating-point
number rounded to:
Six digits of precision (total of 6 non-zero digits, including any number of leading or trailing
zeroes depending on the location of the decimal point) if the number is less than 100,000.
To control the number of digits of accuracy displayed in a string, use the Format$() function.
UCase$
Syntax: UCase$(string)
Action: Returns the upper case of the string.
Examples: Consider the following expression:
108.UCase$(CITY)
This table shows how it converts an input string (from a column in your table) into a returned string:
Input String
Returned String
NEW YORK
NEW YORK
New yorK
NEW YORK
new york
NEW YORK
Val
Syntax: Val(char_expr)
Action: The Val function extracts a numerical value from a character expression. It ignores any
tabs, spaces, and line feeds at the start of a string and then tries to interpret the first sequence of
numeric characters as a numerical value. It stops processing the string as soon as it finds a nonnumeric character.
Note:
Except that it will also accept a minus (hyphen) sign and a decimal point (period), e.g., Val
(-9.9) = -9.9. When the first character after initial tabs, spaces, and line feeds is not a
numeric character, Val returns a value of zero.
Examples: The following table illustrates how Val extracts a numerical value from an input string:
char_expr
Val(char_expr)
12 thousand
12
52 - 62 Brunswick
52
503
MI_UG.PDF
char_expr
Val(char_expr)
Eighteen
Box 239
Weekday
Syntax: Weekday(datefield)
Action: Returns the day of the week from the data. The day is given as a number between 1 and 7.
1 is Sunday and 7 is Saturday.
Examples: To select all rows where the weekday is Wednesday:
109.Weekday(date)=4
To select all rows where the weekday is Wednesday, Thursday, or Friday:
110.Weekday(date)=any(4,5,6)
The any keyword directs MapInfo Professional to select any row where the week day is one of
the specified days.
To select all rows where the day is Friday and the month is July:
111.Weekday(date)=6 and Month(date)=7
This expression has two clauses. The first clause uses the Weekday function to select records
where the day of the week is a Friday. The second clause uses the Month function to select
records where the month is July. Since the two clauses are connected by the AND operator, both
clauses must be True for a row to be selected.
Year
Syntax: Year(datefield)
Action: Returns the year of the date.
Examples: To find all orders received in 1990:
112.Year(date)=1990
To find all orders received in 1990 or 1991:
113.Year(date)=any(1990,1991)
To find all orders received between 1985 and 1990, including those orders received in 1985 and
1990:
114.Year(date)>=1985 and Year(date)<=1990
This expression has two clauses. The first selects all rows where the date is 1985 or greater. The
second clause selects all rows where the date is 1990 or less. Both clauses must be satisfied for a
row to be selected.
504
MI_UG.PDF
The first line is a result of opening the WORLD table. The second line of code is written
automatically because the WORLD table displays in a Map window by default. The third line is the
syntax for the select statement. The fourth line is the result of checking the Browse results box.
You can also enter MapBasic commands into the MapBasic window. Position your cursor under
the browse from Selection line. Type the following:
Map from Selection
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
505
MI_UG.PDF
Press ENTER after the line, and the command executes. You should see your selection displayed
in a Map window.
As stated before, the MapBasic window was primarily designed to assist MapBasic programmers.
You can statements and functions in the MapBasic window such as Buffer( ) function or Insert
statement.
Refer to the MapBasic Reference Guide in an easy to navigate PDF format on the MapInfo
Professional CD to find the appropriate usage and syntax for these statements and functions. It
provides a comprehensive guide to MapBasic programming statements and functions along with
examples. Choose the appropriate option from the CD Browser to access the Reference.
Where point_table is the copy of your original table, Start_X is the column containing the
first X coordinate, Start_Y is the column containing the first Y coordinate, End_X is the
column containing the second X coordinate, and End_Y is the column containing the
second Y coordinate. These columns will be the names that you have already specified in
your table.
MapInfo Professional will go row by row through your table and create a line object based on the
information in that row. You will not see a change in the table until you redraw the window or open
a new Map window for it.
Troubleshooting (Converting a Table of Coordinates to a Table of Lines)
Before you proceed with the update make sure that the table in which the lines will be stored is
mappable. To make the table mappable, on the TABLE menu, point to MAINTENANCE and click
TABLE STRUCTURE and check the TABLE IS MAPPABLE box.
If your map is projected, the line objects may not be created properly. To work around this
situation, see the Set Coordsys statement in the MapBasic Reference to change the MapBasic
coordinate system.
506
MI_UG.PDF
Where tablename is the name of the copy of the table, and radius is the radius of the circle
in current system units.
The table will then be automatically updated.
Troubleshooting (Creating Circles Around Points Using the MapBasic Window)
This command modifies the object column of your table. The command replaces the point object
with circular objects. If you wish to undo this operation, make sure the Map window is active on the
EDIT menu, click UNDO or on the FILE menu, click REVERT TABLE and revert the table to the last
time it was saved.
The final parameter in the MapBasic command, 10 in this example, is the radius of the newly
created buffers, in miles. This figure is adjustable. If you perform the command and find that the
radius is too small or too large, perform the command again, with a different radius.
If your map is projected, the circular objects may not be created properly.
If you wish to convert a table of circular objects back to a table of points, run the MapBasic
command:
Update tablename set obj=Buffer(obj,smoothness,distance,units)
Where obj refers to the object associated with the row of the table, 1 is the code to return
the object type, and tablename is your table.
3. On the WINDOW menu, click NEW BROWSER WINDOW.
4. Choose to browse selection. A list of the number codes for each object type appear.
507
MI_UG.PDF
Where tablename is your table and objecttype is the type of object you wish to select. To
determine the type of an object, double-click the object. A dialog box displays with the
region type listed.
3. Choose to browse or map the selection of these objects. You can also search for other
types of objects including regions, arcs, lines, ellipses, rectangles, points, and polylines.
The angle will be calculated using a Cartesian coordinate system. For some projections, a
calculated 90 degree angle may be obviously different from a right angle on the
projected map.
The two points will be referred to as the origin and the destination. The origin is the point that is on
the horizontal line. The destination is the other point. In the next example, Hartford is the origin. It
lies on the imaginary horizontal line. Boston is the destination. The hypotenuse is the distance
from Hartford to Boston; the adjacent is the distance from Hartford to the point where the
horizontal intersects the vertical dotted line that passes through Boston.
508
MI_UG.PDF
1. On the OPTIONS menu, click SHOW MAPBASIC WINDOW and open the MapBasic window.
2. Double-click the origin point (Hartford). MapInfo Professional opens a Point Object
window that shows the coordinate information. Write down the X and Y coordinates.
These coordinates will be referred to as OriginX and OriginY.
3. Double-click the destination point (Boston). MapInfo Professional opens a Point Object
window that shows the coordinate information. Write down the X and Y coordinates.
These coordinates will be referred to as DestX and DestY.
4. In the MapBasic Window, type and run the following command:
Print Distance(OriginX, OriginY, DestX, DestY, mi)
Substitute the values you find in step 2 and 3 for OriginX, OriginY, DestX, and DestY.
MapInfo Professional returns the distance between the origin and destination points in a
Message window. The value is the hypotenuse of the triangle.
5. In the MapBasic window, type and run the following command:
Print Distance(OriginX, OriginY, DestX, OriginY, mi)
Substitute the values you find in step 2 and 3 for OriginX, OriginY, DestX and DestY.
MapInfo Professional returns the distance between the origin and a point on the horizontal
directly below the destination point. MapInfo Professional will display the distance in a
Message window. The value is the adjacent of the triangle.
6. Finally, find the angle with the following MapBasic command:
Print(ACOS(Adjacent/Hypotenuse)*57.2958)
Substitute the values that you found in step 4 and 5 for adjacent and hypotenuse. MapInfo
Professional returns the angle in degrees. MapInfo Professional will print the angle in a
Message window.
If you would like to find the angle in radians, omit the multiplication at the end of the
statement, leaving:
Print(ACOS(Adjacent/Hypotenuse))
If, instead of two points, you have one line that has the destination and origin as
endpoints, do the following instead of steps 2 and 3:
Double-click the line object. MapInfo Professional opens a window that shows the
coordinate information. Write down the Start Point and End Point X and Y coordinates.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
509
MI_UG.PDF
Determine whether the Start Point or the End Point is higher, that is, which point has a
more northerly Y coordinate.
If the destination is above the origin (like the example above), then the destination will
have the coordinates of the most northerly point (determined in the previous step). The
origin would then take the coordinates of the other endpoint of the line.
If the origin is above the destination, then it takes the coordinates of the more northerly
point.
Continue with step 4.
510
MI_UG.PDF
Primary highways
Pen (2,2,16711680)
Pen (1,2,0)
Railroads
Pen (1,26,0)
Pen Width will always be returned as a number from 17. One is the narrowest and 7 is the widest.
These numbers correspond to the lines you would see in the pull down menu on the OPTIONS
menu, point to LINE STYLE and click WIDTH.
The pattern will be returned as a number from 1 to 77. These numbers correspond to the patterns
you see in the pull down menu on the OPTIONS menu, point to LINE STYLE and click STYLE going
left to right.
Digitizing Requirements
Digitizing in MapInfo requires special equipment and setup so that MapInfo can read the
information from the paper map.
511
MI_UG.PDF
Digitizer Drivers
You will also need the appropriate device driver or interface that MapInfo recognizes. MapInfo
supports the following digitizer drivers:
Wintab
VTI allows you to use a variety of commercial digitizers. It includes a control panel applet that
allows you to configure your digitizer and a template editor and loader that allows direct access to
MapInfos menu items from the digitizing tablet. Versions 2.10 or later also allow caching of
digitizer events. Users with version 1.0 will need to upgrade or switch to Wintab. If you have
installed an older version of VTI, MapInfo displays the following message on startup and continues
running, but with digitizing disabled: Virtual Tablet Interface must be version 2.10 or later for use
with MapInfo.
You will need to obtain the digitizer driver from a third party either Digitizer Technology (for VTI)
or the tablet manufacturer (for Wintab). In most cases, the tablet will come with a Wintab driver.
Digitizer Technology Company provides both sales and support for the Virtual Tablet Interface.
Their address is:
Digitizer Technology Company
16541 Redmond Way, Suite 195C
Redmond, WA 98052 USA
Tel: (425) 8683246
WWW: http://www.vtablet.com
The latest VTI and Wintab drivers support digitizing under Windows 2000, Windows NT, and
Windows 95/98.
Source Map
You can digitize any paper map, aerial photo, or drawing that you can affix to a digitizing tablet and
trace the map features by hand.
512
MI_UG.PDF
Attach your paper map securely to the digitizing tablet. It is very important that the map not be
moved during the digitizing session, or it will invalidate any control points you have established for
the map.
Digitizer Setup
To communicate the tracings on the paper map to MapInfo properly, you must provide some
information about your map. In the Digitizer Setup dialog box, you specify control points for your
map, the map projection and appropriate map units, and configure the buttons on your digitizing
puck. Choose MAP > DIGITIZER SETUP to begin. The Digitizer Setup dialog box displays. Each part
of the dialog box is discussed below.
Map Projection
Maps are drawn using a particular projection, or distortion, of the earths surface to maintain the
relationship of the curved earths features on a flat piece of paper. When you digitize a map using
MapInfo, you must specify the projection so that MapInfo can take the maps distortion into
consideration and maintain the correct relationship among the map features.
You cannot change the projection after you have begun to digitize, so make sure you set it
correctly now. Click the Projection button in the Digitizer Setup dialog box to select a projection. In
general, the projection is specified in the map legend. MapInfo supports a wide variety of
projections. For aerial photographs, use Longitude/Latitude as the projection.
Map Units
In addition to knowing the projection, you must specify the map units used for the coordinate
system. For instance, a map in the Longitude/Latitude projection will show map coordinates in
degrees.
If you do not have coordinates for the map, you will need to digitize it as a non-earth map, which
means points on the image will only be relative to each other, not to points on the earth. Create a
non-earth map table first and display it in the active Map window.
Specify the map units from the Map Units drop-down list in the dialog box that matches the
coordinate units on the paper map. Degrees will always be available for earth maps. In addition,
other map units may be available if you have identified the map in a projection other than
Longitude/Latitude.
513
MI_UG.PDF
For instance, to add a control point, choose ADD. The Pick Tablet Point dialog box displays telling
you to choose a point on the tablet and click a digitizer button. Now the Add Control Point dialog
box displays prompting you for a label (optional) and the map coordinates for the point. When you
are through, click OK. Repeat this process for each control point you enter.
Keep in mind that you must enter the coordinates in the units you specified in the Digitizer Setup
dialog box. If your map unit is in degrees, be sure to type in the coordinates as decimal degrees.
For a discussion on converting degrees, minutes, and seconds to decimal degrees see
Converting Coordinates in Chapter 14 on page 442.
You can also change the tablet position of the point through this dialog box. For instance, if the
coordinates are correct, but you realized that you clicked on the wrong point on the tablet, you can
choose the TABLET X-Y button in the Edit Control Point dialog box. This is easier than adding a
new control point and removing the incorrect one.
514
MI_UG.PDF
You can also remove a control point by highlighting the point in the Setup dialog box and choosing
the Remove button. To remove all points and reset the projection to that of the active Map window,
choose CLEAR ALL.
If there are less than 3 control points entered in the workspace. You will need to enter at
least 1 or 2 more control points in Digitizer Setup.
If your control points run in a straight line. You must enter control points that are at different
angles from each other.
The digitizer size or resolution has changed since the workspace was saved. You will need
to enter new control points in Digitizer Setup.
MapInfo determines the relative positions of the control points based on the coordinates you
specify. It can then determine where those points should be on the tablet. MapInfo then calculates
an error estimate that is the difference between where the point should be on the tablet and where
you actually clicked.
515
MI_UG.PDF
The error estimates give you an idea of how accurate the resulting computer map will be. Error
values should be quite small, on the same scale as the resolution of your digitizer. In most cases
errors should be in thousandths or hundredths of an inch. Those errors approaching a tenth of an
inch are probably too large.
To minimize the likelihood of a high error estimate, increase the number of control points and be as
precise as possible when specifying the coordinates for control points. Double-check that you
specified the correct projection in Digitizer Setup.
If you use the same button for single-clicking and double-clicking, MapInfo may mistake
rapid single-clicks as a double-click.
Digitizer Mode
MapInfo automatically turns digitizer mode on after you have entered three or more control points.
Not only does it turn on automatically, but with the additional capabilities now available in digitizer
mode, there is little reason to turn it off. Digitizer mode no longer locks you in. You do not have to
exit from digitizer mode to do something else. You can now do anything in digitizer mode that you
can do in mouse mode: open tables and windows, use any of the tools, use the mouse, etc.
You can still, however, turn digitizer mode off and on with the D key. Again, similar to when you
have saved control points to a workspace, MapInfo will not turn digitizer mode on if you have only
entered one or two control points or if your control points run in a straight line.
The details of the new digitizer mode functionality is explained below.
Mouse Cursor
You can now use the mouse and the digitizer at the same time. The mouse is always active, even
when digitizer mode is on. So you no longer need to exit from digitizer mode to use the mouse.
The mouse cursor is always visible, and can always be controlled with the mouse. Its appearance
depends on which tool is selected.
516
MI_UG.PDF
You can also control the mouse with the digitizer using the mouse emulation capability of the
digitizer driver (this must be configured outside of MapInfo). If digitizer mode is off, or if digitizer
mode is on and a Map window is not active, the digitizer controls the mouse. If a Map window is
active and digitizer mode is on, the digitizer controls the digitizer cursor.
Digitizer Cursor
The digitizer cursor is now a large cross hair that covers the entire width and height of the Map
window. Its appearance does not change to indicate which tool is selected. It is always a large
cross hair, making it much easier to see.
The digitizer cursor is always visible as long as a Map window is active. For example, if you decide
to open a Browser window while you are in digitizer mode and work in the Browser, digitizer mode
will still be on, but because the Browser is now the active window, you wont see the digitizer
cursor.
The status bar only displays the digitizer cursor location if you choose to display it (MAP >
OPTIONS). This is different than MapInfo 3.0, where the cursor location always displayed in the
status bar while digitizer mode was on.
517
MI_UG.PDF
Autotrace is available when Snap mode is turned on. Note that you can only use autotrace with
existing polylines and polygons. You cannot autotrace rectangles, ellipses, arcs, or other shapes
made with the drawing tools.
To autotrace a polyline/polygon while digitizing, do the following:
1. Activate Snap mode (press the S key), and click on a node of the polyline/polygon you
want to autotrace.
2. Move the puck to another node of the same object.
3. Do one of the following:
As soon as you press either the SHIFT or CTRL key, MapInfo highlights the path to be
autotraced. When you click, MapInfo automatically traces all the segments between the
two nodes and adds them to the polyline/polygon you are drawing.
Note:
The SHIFT key autotraces the shorter path between the two nodes (the path with the lessor
number of nodes), and the CTRL key autotraces the longer path (the path with the greater
number of nodes). Autotrace works the same way as when you are selecting multiple
nodes in Reshape mode.
You can only autotrace one object at a time. The second node you SHIFT/CTRL-click on must
belong to the same object as the first node. If it belongs to a different object, MapInfo will draw a
straight line between the two nodes. If you click on a node thats shared by two objects (e.g., a
shared border), you can begin autotracing from either polygon.
518
MI_UG.PDF
At the Digitizer Setup dialog box, be sure to specify negative coordinates if your map includes west
longitude and/or south latitudes. For instance, for maps in the United States, you should specify a
negative X coordinate. For Africa, the Y coordinate is negative. For South America, both
coordinates are negative. (For Europe, both coordinates are positive).
If you still do not see your map in the expected location, it could be due to bad control points,
incorrect projection, or map units, etc.
When Switching to Digitizer Mode, the Digitizer Cursor Does Not Appear
If you do not see the cursor when you switch into digitizer mode, check to make sure the
coordinates are correct. You may need to specify negative coordinates (see Digitized Map does
not Display in Expected Location, above).
Other things to do:
Set the center of the map to be one of your control points. In the Change View dialog box you can
specify the coordinates of a point that falls in the general center of your paper map.
Put the cursor exactly on one of the control points.
519
MI_UG.PDF
Make sure the tablet is turned on and is correctly connected to the computer.
There is no problem with the tablet, the connection, or the connecting cables.
If the tablet works with other applications or is being used as a mouse pointer in windows, and
everything listed above checks out fine, there may be a problem with our support of the tablet. If
possible, configure the tablet to emulate different tablets supported by MapInfo. Make sure the
system.ini file is updated to reflect the changes, and restart Windows each time a change is made
to the system.ini.
If the tablet works with other applications or is being used as a mouse pointer in windows, and
everything listed above checks out fine, there may be a problem with our support of the tablet. If
possible, configure the tablet to emulate different tablets supported by MapInfo.
Limitations of Digitizing
The Snap to nodes feature is available while digitizing. However, the snap tolerance is a pixel
value that is based on the current zoom level of the Map window. Press the S key to turn Snap
mode off.
Auto polygon closure does not work in digitizing. You must click on the button you set up to close a
polygon (or double-click on the button if you only have one digitizing button).
If you change the zoom level of your map, or scroll in the Map window after you have selected your
digitizer points and then switch into digitizer mode, your cursor may disappear from the screen,
because the location in the map corresponding to the puck is no longer visible in the Map window.
The active Map window view must correspond to the view represented on the paper map to see
the cursor when in digitizer mode. Zoom out to see the cursor again.
520
MI_UG.PDF
Directory of MapInfo
Professional Shortcuts
This Appendix contains a comprehensive list of the shortcuts available in the MapInfo Professional
application. You can create custom shortcuts by editing the MAPINFOW.MNU file using a text editor.
CAUTION:
Making changes to the MAPINFOW.MNU file may cause the default shortcuts
you change to stop working. Make these changes carefully and record your
changes so you can change them back, if necessary.
In this Appendix:
Menu Item
Keystrokes
CTRL+N
CTRL+O
CTRL+S
CTRL+K
CTRL+P
ALT+F4
Menu Item
Keystrokes
CTRL+Z
CTRL+X
CTRL+C
CTRL+V
DEL
CTRL+R
CTRL+E
F7
Menu Item
Keystrokes
CTRL+U
522
MI_UG.PDF
Menu Item
Keystrokes
CTRL+T
CTRL+DELETE
Menu Item
Keystrokes
CTRL+W
CTRL+F
CTRL+G
Menu Item
Keystrokes
SHIFT+F8
CTRL+F8
ALT+F8
F8
523
MI_UG.PDF
Menu Item
Keystrokes
CTRL+L
F10
F11
F9
ALT+F9
ALT+LEFT ARROW
Menu Item
Keystrokes
ALT+LEFT ARROW
Menu Item
Keystrokes
F2
F3
F4
F5
CTRL+D
SHIFT+F4
SHIFT+F5
524
MI_UG.PDF
Shortcuts by Keystroke
Menu Items
Keystrokes
ALT+LEFT ARROW
CTRL+C
CTRL+D
CTRL+E
CTRL+F
CTRL+G
CTRL+K
CTRL+L
CTRL+N
CTRL+O
CTRL+P
CTRL+R
CTRL+S
CTRL+T
CTRL+U
CTRL+V
CTRL+W
CTRL+X
CTRL+Z
CTRL+DELETE
F2
F3
F4
F5
F7
F8
F9
525
MI_UG.PDF
Menu Items
Keystrokes
F10
F11
ALT+F4
ALT+F8
ALT+F9
CTRL+F8
SHIFT+F4
SHIFT+F5
SHIFT+F8
DEL
526
MI_UG.PDF
527
MI_UG.PDF
Elements of a Coordinate
System
In this Appendix:
Cassini-Soldner
X X
Double Stereographic
X X
Eckert IV
Eckert VI
Equidistant Conic
X X
Gall
X X
X X
Longitude-Latitude
Mercator
Miller
Mollweide
X X
X X
Polyconic
X X
X X
Regional Mercator
Robinson
Sinusoidal
Range
Azimuthal Equidistant
X X
False Northing
X X
Scale Factor
False Easting
Azimuth
Origin, Longitude
Standard Parallel 2
Units
Origin, latitude
Datum
Standard Parallel 1
The following table indicates the parameters applicable to each projection. The parameters are
listed in the order they appear in the relevant coordinate system lines in the MAPINFOW.PRJ file.
X X
X*
X
X X
X
X X X
X X
X X
X X X X
X
X
X X
X X
529
MI_UG.PDF
Stereographic
X X
X X X
X X
X X
Transverse Mercator
X X
X X X
* MapInfo supports the Azimuthal Equidistant and Lambert Azimuth Equal-Area projections in the
polar aspect only. The Origin Latitude for these projections must be either 90 or -90.
Versions of MapInfo prior to 6.0 support the Azimuthal Equidistant and Lambert Azimuthal
Equal-Area projections in the polar aspect only. The Origin Latitude for these projections must be
either 90 or -90. An Oblique Azimuthal Equidistant projection was introduced in version 6.0 that
supports all Origin Latitudes, including the poles. For version 6.5 a new Lambert Azimuthal EqualArea projection has been added that also supports all Origin Latitudes, including the poles.
Projection
The projection is the equation or equations used by a coordinate system. The following list names
the projections MapInfo uses and gives the number used to identify the projection in the
MAPINFOW.PRJ file:
Number
Projection
28
30
Cassini-Soldner
Cylindrical Equal-Area
31
Double Stereographic
14
Eckert IV
15
Eckert VI
17
Gall
29
19
Longitude/Latitude
10
Mercator
MapInfo Professional 7.5
530
MI_UG.PDF
Number
Projection
11
Miller Cylindrical
13
Mollweide
18
27
Polyconic
26
Regional Mercator
12
Robinson
16
Sinusoidal
20
Stereographic
25
21
22
23
24
Projection numbers in the MAPINFOW.PRJ may be modified by the addition of a constant value to
the base number listed in the Projection table, above. Valid values and their meanings are
tabulated below:
Constant
Meaning
Parameters
1000
2000
3000
Example:
Assume you want to work with a simple system based on the Transverse Mercator projection and
using the NAD 1983 datum. You might have a line such as the following in your MAPINFOW.PRJ
file:
"UTM Zone 1 (NAD 83)", 8, 74, 7, -177, 0, 0.9996, 500000, 0
531
MI_UG.PDF
Now lets say that you want a system based on this, but with an affine transformation specified by
the following parameters: Units=meters; A=0.5; B=-0.866; C=0; D=0.866; E=0.5; and F=0. The
required line in the MAPINFOW.PRJ file is:
"UTM Zone 1 (NAD 83) - rotated 60 degrees", 1008, 74, 7, -177, 0, 0.9996, 500000, 0, 7, 0.5,
-0.866, 0, 0.866, 0.5, 0
Alternatively, if you want to bound the system to (x1, y1, x2, y2)=(-500000, 0, 500000, 1000000),
the required line is:
"UTM Zone 1 (NAD 83) - bounded", 2008, 74, 7, -177, 0, 0.9996, 500000, 0,
-500000, 0, 500000, 1000000
To customize the system using both of these modifications, the line is:
"UTM Zone 1 (NAD 83) - rotated and bounded", 3008, 74, 7, -177, 0, 0.9996, 500000, 0, 7,
0.5, -0.866, 0, 0.866, 0.5, 0, -500000, 0, 500000, 1000000
Projection Datums
The datum is established by tying a reference ellipsoid to a particular point on the earth. The
following table lists these details for each datum:
Datum
Area Maps
Ellipsoid
Adindan
Ethiopia, Mali,
Senegal, Sudan
Clarke 1880
Afgooye
Somalia
Krassovsky
1007
Australia, A.C.T.
Australian National
1008
Australia, Tasmania
Australian National
1009
Australia, Victoria/
NSW
Australian National
1006
Australia
Australian National
Bahrain Island
International
118
American Samoa
American Samoa
Islands
Clarke 1866
Cocos Islands
Australian National
532
MI_UG.PDF
Number
Datum
Area Maps
Ellipsoid
119
Antigua, Leeward
Islands
Clarke 1880
Arc 1950
Botswana, Lesotho,
Malawi, Swaziland,
Zaire, Zambia,
Zimbabwe
Clarke 1880
Arc 1960
Kenya, Tanzania
Clarke 1880
Ascension Island
International
Tern Island
International
Astro Beacon E
International
10
International
11
Marcus Island
International
151
Canada
ATS77
12
Australia and
Tasmania Island
Australian National
13
Australia and
Tasmania Island
Australian National
151
120
Ayabelle Lighthouse
Djibouti
Clarke 1880
110
Belgium
Belgium
International
14
Bellevue (IGN)
International
15
Bermuda 1957
Bermuda Islands
Clarke 1866
16
Bogota Observatory
Colombia
International
121
Bukit Rimpah
Bessel 1841
17
Campo Inchauspe
Argentina
International
18
Phoenix Islands
International
19
Cape
South Africa
Clarke 1880
20
Cape Canaveral
Clarke 1866
1005
Cape, 7 parameter
South Africa
WGS 84
21
Carthage
Tunisia
Clarke 1880
533
MI_UG.PDF
Number
Datum
Area Maps
Ellipsoid
22
Chatham 1971
International
23
Chua Astro
Paraguay
International
122
Estonia
Bessel 1841
24
Corrego Alegre
Brazil
International
123
Dabola
Guinea
Clarke 1880
124
Deception Island
Deception Island,
Antarctica
Clarke 1880
1000
Deutsches Hauptdreicksnetz
(DHDN)
Germany
Bessel
25
Djakarta (Batavia)
Sumatra Island
(Indonesia)
Bessel 1841
26
DOS 1968
International
27
Easter Island
International
115
EUREF 89
Europe
GRS 80
28
Austria, Belgium,
Denmark, Finland,
France, Germany,
Gibraltar, Greece, Italy,
Luxembourg,
Netherlands, Norway,
Portugal, Spain,
Sweden, Switzerland
International
29
Austria, Finland,
Netherlands, Norway,
Spain, Sweden,
Switzerland
International
108
Europe
International
125
Clarke 1880
30
Gandajika Base
Republic of Maldives
International
116
GDA 94
Australia
GRS 80
32
Worldwide
GRS 67
33
Worldwide
GRS 80
534
MI_UG.PDF
Number
Datum
Area Maps
Ellipsoid
126
International 1924
34
Guam 1963
Guam Island
Clarke 1866
35
GUX 1 Astro
Guadalcanal Island
International
150
Hartbeesthoek 94
South Africa
WGS 84
127
Herat North
Afghanistan
International 1924
128
Hermannskogel
Yugoslavia (Prior to
1990), Slovenia,
Croatia, Bosnia and
Herzegovina, Serbia
Bessel 1841
36
International
37
Hjorsey 1955
Iceland
International
38
Hong Kong
International
1004
Hungary
GRS 67
39
Hu-Tzu-Shan
Taiwan
International
40
Indian
41
Indian
Bangladesh, India,
Nepal
129
Indian
Pakistan
Everest (Pakistan)
130
Indian 1954
Thailand
131
Indian 1960
Vietnam
132
Indian 1975
Thailand
133
Indonesian 1974
Indonesia
Indonesian 1974
42
Ireland 1965
Ireland
Modified Airy
134
International 1924
43
Diego Garcia
International
152
Japan
GRS80
44
Johnston Island
International
45
Kandawala
Sri Lanka
46
Kerguelen Island
Kerguelen Island
International
535
MI_UG.PDF
Number
Datum
Area Maps
Ellipsoid
47
Kertau 1948
135
Caroline Islands,
Federated States of
Micronesia
International 1924
48
L.C. 5 Astro
Clarke 1866
136
Leigon
Ghana
Clarke 1880
49
Liberia 1964
Liberia
Clarke 1880
113
Lisboa (DLx)
Portugal
International
50
Luzon
Philippines (excluding
Mindanao Island)
Clarke 1866
51
Luzon
Mindanao Island
Clarke 1866
52
Mahe 1971
Mahe Island
Clarke 1880
53
Marco Astro
Salvage Islands
International
54
Massawa
Eritrea (Ethiopia)
Bessel 1841
114
Portugal
International
55
Merchich
Morocco
Clarke 1880
56
Midway Island
International
57
Minna
Nigeria
Clarke 1880
137
Montserrat, Leeward
Islands
Clarke 1880
138
MPoraloko
Gabon
Clarke 1880
58
Nahrwan
Clarke 1880
59
Nahrwan
Clarke 1880
60
Nahrwan
Saudi Arabia
Clarke 1880
61
Naparima, BWI
International
109
Netherlands
Netherlands
Bessel
31
New Zealand
International
62
Continental US
Clarke 1866
63
Alaska
Clarke 1866
536
MI_UG.PDF
Number
Datum
Area Maps
Ellipsoid
64
Bahamas (excluding
San Salvador Island)
Clarke 1866
65
Clarke 1866
66
Canada (including
Newfoundland Island)
Clarke 1866
67
Canal Zone
Clarke 1866
68
Clarke 1866
69
Central America
(Belize, Costa Rica,
El Salvador, Guatemala, Honduras,
Nicaragua)
Clarke 1866
70
Cuba
Clarke 1866
71
Greenland (Hayes
Peninsula)
Clarke 1866
72
Mexico
Clarke 1866
73
74
Alaska, Canada,
Central America,
Continental US,
Mexico
GRS 80
139
Algeria
Clarke 1880
107
Nouvelle Triangulation
Francaise (NTF) Greenwich
Prime Meridian
France
1002
Nouvelle Triangulation
Francaise (NTF) Paris Prime
Meridian
France
111
NWGL 10
Worldwide
WGS 72
117
NZGD 2000
New Zealand
GRS 80
1010
New Zealand
International
537
MI_UG.PDF
Number
Datum
Area Maps
Ellipsoid
75
Observatorio 1966
International
140
Observatorio Meteorologico
1939
International 1924
76
Old Egyptian
Egypt
Helmert 1906
77
Old Hawaiian
Hawaii
Clarke 1866
78
Oman
Oman
Clarke 1880
79
Airy
80
Canary Islands
International
81
Pitcairn Island
International
141
Point 58
Clarke 1880
142
Congo
Clarke 1880
143
International 1924
1000
Potsdam
Germany
Bessel
82
Bolivia, Chile,
Colombia, Ecuador,
Guyana, Peru,
Venezuela
International
36
International
83
Puerto Rico
Clarke 1866
1001
Pulkovo 1942
Germany
Krassovsky
1012
PZ90
Russia
PZ90
84
Qatar National
Qatar
International
85
Qornoq
South Greenland
International
1000
Rauenberg
Germany
Bessel
86
Reunion
Mascarene Island
International
112
Sweden
Bessel
1011
Sweden
Bessel
538
MI_UG.PDF
Number
Datum
Area Maps
Ellipsoid
87
Rome 1940
Sardinia Island
International
88
Santo (DOS)
International
89
So Braz
So Miguel, Santa
Maria Islands (Azores)
International
90
International
91
Schwarzeck
Namibia
144
Salvage Islands
International 1924
145
Sierra Leone
Clarke 1880
146
S-JTSK
Czech Republic
Bessel 1841
1013
SK42
Russia
PZ90
1024
SK95
Russia
PZ90
92
Argentina, Bolivia,
Brazil, Chile,
Colombia, Ecuador,
Guyana, Paraguay,
Peru, Venezuela,
Trinidad, and Tobago
93
South Asia
Singapore
94
Southeast Base
International
95
Southwest Base
International
1003
Switzerland
Bessel
147
Tananarive Observatory
1925
Madagascar
International 1924
96
Timbalai 1948
97
Tokyo
Japan, Korea,
Okinawa
Bessel 1841
1015
Tokyo97
Japan
Bessel 1841
98
Tristan da Cunha
International
99
Clarke 1880
148
Voirol 1874
Tunisia/Algeria
Clarke 1880
539
MI_UG.PDF
Number
Datum
Area Maps
Ellipsoid
149
Voirol 1960
Algeria
Clarke 1880
100
Wake-Eniwetok 1960
Marshall Islands
Hough
101
Worldwide
WGS 60
102
Worldwide
WGS 66
103
Worldwide
WGS 72
104
Worldwide
WGS 84
105
Yacare
Uruguay
International
106
Zanderij
Surinam
International
Units
The following table lists the available coordinate units and the number used to identify the unit in
the MAPINFOW.PRJ file:
Number
Units
Centimeters
31
Chains
Inches
Kilometers
30
Links
Meters
Miles
Millimeters
Nautical Miles**
32
Rods
Yards
540
MI_UG.PDF
541
MI_UG.PDF
Polyconic Projection
The following description is copied from Map Projections A Working Manual, USGS
Professional Paper 1395, by John P. Snyder.
The Polyconic projection, usually called the American Polyconic in Europe, achieved its name
because the curvature of the circular arc for each parallel on the map is the same as it would be
following the unrolling of a cone which had been wrapped around the globe tangent to the
particular parallel of latitude, with the parallel traced onto the cone. Thus, there are many (poly-)
cones involved, rather than the single cone of each regular conic projection.
The Polyconic projection is neither equal-area nor conformal. Along the central meridian, however,
it is both distortion free and true to scale. Each parallel is true to scale, but the meridians are
lengthened by various amounts to cross each parallel at the correct position along the parallel, so
that no parallel is standard in the sense of having conformality (or correct angles), except at the
central meridian. Near the central meridian, distortion is extremely small.
This projection is not intended for mapping large areas. The conversion algorithms used break
down when mapping wide longitude ranges. For example, WORLD.TAB, from the sample data
shipped with MapInfo Professional, may exhibit anomalies if reprojected using Polyconic.
542
MI_UG.PDF
American Cartographic Association. Which Map is Best? Projections for World Maps. Falls
Church, VA: American Congress on Surveying and Mapping. Special Publication No. 1. 1986.
John P. Snyder. Map ProjectionsA Working Manual. Washington: U.S. Geological Survey
Professional Paper 1395. 1987
John P. Snyder and Philip M. Voxland. An Album of Map Projections. Washington: U.S. Geological
Survey Professional Paper 1453. 1989.
Contact Information
American Congress on Surveying and Mapping
5410 Grosvenor Lane, Suite 100
Bethesda, MD 20814 2212
(301) 493-0200
Earth Science Information Center
U.S. Geological Survey
507 National Center
Reston, VA 22092
(703) 860-6045 or (800) USA-MAPS
Peter H. Dana of the Department of Geography, University of Texas at Austin has also put up an
incredible website for explanations of Map projections, Geodetic Datums, and Coordinate
systems. It is a valuable as many of these explanations were also presented using MapInfo
Professional. The materials may be used for study, research, and education, but please credit the
author:
Peter H. Dana, The Geographers Craft Project, Department of Geography, The University of
Texas at Austin.
For Geodetic Datum information and explanations, go to:
http://www.colorado.edu/geography/gcraft/notes/datum/datum.html
For Information on Coordinate systems and other principles, go to:
http://www.colorado.edu/geography/gcraft/notes/coordsys/coordsys.html
For Information on Map Projections go to:
http://www.colorado.edu/geography/gcraft/notes/mapproj/mapproj.html
543
MI_UG.PDF
Registering SPOT
Images
In this Appendix:
.HDR file A header file in ASCII form that contains information about the images size,
coordinate system, (SPOTView only) and location on the earth.
.BIL file A binary file that contains the images raw raster data.
.CLR file A palette file that contains a list of suggested colors to be used with the image.
This file is only provided with color images, and MapInfo reads the contents of this file
when present.
A report (.REP) file in ASCII form also accompanies each Geospot product. Although MapInfo
does not read this file, you may find that it too contains useful information for registering the image,
particularly image rotation and coordinate system information.
545
MI_UG.PDF
SPOTView Settings
! GIS FORMAT HEADER FILE
! IDENTIFICATION BLOCK
PRODUCT_NAME
SPOTView Custom Frame Special Change Detection
FORMAT_VERSION
1.5
MAP_FRAME
22 X 30
SCENE_ID
2_595272_910701_165923_2X
!
2_595272_930410_171958_2P
!
2_595272_930729_170345_2X
IMAGE_DATE
01 JUL 91
!
10 APR 93
!
29 JUL 93
CORRECTION_LEVEL
TER
! IMAGE INFORMATION BLOCK
NCOLS
4276
NROWS
4251
ULXMAP
522147
ULYMAP
4086917
MAPUNITS
Meters
XDIM
10.00
YDIM
10.00
NBANDS
3
NBITS
8
LAYOUT
BIL
BYTEORDER
I
SKIPBYTES
0
BANDROWBYTES
4276
TOTALROWBYTES
12828
BAND_RGB
321
! MAP INFORMATION BLOCK
MAP_NAME
St Louis, MO Change Detection
UL_LON/LAT
LR_LON/LAT
PROJECTION
Albers Equal Area
ORIGIN_LON
W 96,30,00
ORIGIN_LAT
N 00,00,00
STD_PARALLEL_1
N 36,36,00
STD_PARALLEL_2
N 43,00,00
DATUM
NAD27
Geospot Settings
The .HDR and .REP files will contain settings similar to these.
(.HDR file contains the following)
! GIS FORMAT HEADER
! COORDINATE BLOCK
PRODUCT_NAME
FORMAT_VERSION
MAP_FRAME
SCENE_ID
!
!
IMAGE_DATE
!
!
CORRECTION_LEVEL
FILE
SPOTView Custom Frame Special Change Detection
1.5
22 X 30
2_595272_910701_165923_2X
2_595272_930410_171958_2P
2_595272_930729_170345_2X
01 JUL 91
10 APR 93
29 JUL 93
TER
MapInfo Professional 7.5
546
MI_UG.PDF
547
MI_UG.PDF
Comparing the origin and standard parallel settings (arguments 4 through 7) to the ORIGIN_LON,
ORIGIN_LAT, STD_PARALLEL_1, and STD_PARALLEL_2 settings in the .HDR file shown above,
youll see that they do not match up. In this case, you would need to add a line like this to the
MAPINFOW.PRJ file:
Albers Equal-Area Conic (St. Louis), 9, 62, 7, -96.5, 0, 36.6, 43, 0, 0
Note that when adding a new coordinate system for an image, if a required setting is missing from
the .HDR file, enter zero in its place. In the sample line above, for example, zero was used for the
False Easting and False Northing settingsthe final two arguments on the line.
The following table shows the pixel coordinates and corresponding equations for determining the
three control points. The column on the right of the table shows the results of calculating the
control points using the sample data from above. In this case, the image has no .REP file.
Image X,Y
Equation
Example
0,0
ULXMAP,ULYMAP
522147,4086917
1,0
522157,4086917
0,1
522147,4086907
Notice that the control points are at the top left corner of the image (0,0), one pixel to the left
(1,0), and one pixel below (0,1); no additional accuracy is gained by choosing control points
that are any further apart. Here are the settings you would enter in the Register Raster Image
dialog when registering the sample SPOT image:
Label
Map X
Map Y
Image X
Image Y
Pt 1
522147 m
4086917 m
Pt 2
522157 m
4086917 m
Pt 3
522147 m
4086907 m
See Registering the Coordinates of a Raster Image on page 427 if it is unclear to you where to
enter this information.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
548
MI_UG.PDF
You can contact SPOT Image Corporation directly for more information on SPOT images and the
SPOTView product line.
SPOT Image Corporation
1897 Preston White Drive
Reston, VA 22091-4368
Phone (703)620-2200 Fax (703)648-1813
549
MI_UG.PDF
This appendix describes the data interchange format for MapInfo Professional. In this appendix, you will
find information on:
MIF File Header
MIF Data Section
Pen, Brush, Symbol, and Font Codes in MIF
MID File
This versatile format allows generic data to be attached to a variety of graphical items. Since it is ASCII, it
is editable, relatively easy to generate, and works on all platforms supported by MapInfo. Perhaps the best
way to understand the MapInfo Interchange Format (MIF) is to study the sample file at the end of this
appendix in conjunction with the explanation of the file format. You can also create samples of your own by
exporting files to MIF and then examining those files in a text editor.
MapInfo data is in two files the graphics reside in a .MIF file and textual data is contained in a .MID file.
The textual data is delimited data, with one row per record and either Carriage Return, Carriage Return
plus Line Feed, or Line Feed between lines. The MIF file has two areas the file header area and the
data section. Information on how to create MapInfo tables is in the header; the graphical object definitions
are in the data section.
In this Appendix:
Once a table is 'upgraded' to a later version, MapInfo Professional does not 'downgrade' it
to an earlier version if the feature which forced the 'upgrade' is removed.
Workspaces are written fresh each time, and so can be 'downgraded' if there are no
features that require the 'upgrade'.
MIF/MID files created by exporting TAB files from MapInfo Professional match the version
of the TAB file.
Pen(0,0,0) and Brush(0,0,0) which were valid in 4.1 are not valid in 4.5 and later.
Line widths in points are encoded in the Pen clause by multiplying the line width value by
10 and adding 10 do the result (.2 -> 12, 1.0 -> 20, etc.). This forces a 450 in the MIF file
header.
Interleaved line styles are encoded in the Pen clause by increasing the line style value by
128. This does not force a 450 workspace, appears to be 4.x compatible, and gets a 400.
551
MI_UG.PDF
TAB
MIF MID
WOR
Action
Table is a linked ODBC table
410
450
Region and polyline objects, that have more than 32K nodes
!edit_version 450 and !version 300
452
500
550
600
552
MI_UG.PDF
Version
Number
TAB
X
MIF MID
WOR
Action
ATS 77 ellipsoid - #(51)
New Datums introduced in Version 6.0. Their numbers are in
a range 115-150 (115 and 150 included) and 1004-1011
(1004 and 1011 included) 600, since MapInfo Professional
writes Datum number if all the parameters match to the
parameters of our internal Datum table. Also note, that we
write the FIRST datum number with these parameters, that
we find in our internal table. That means that if for example
table was
created using Datums EUREF89 (115), GDA94 (116) or
NZGD2000 (117), the MIF file will have Datum GRS 80 (33)
written into it and MIF file version would not be
incremented. Since MapInfo Professional does not write
datum number into TAB file, version will be incremented only
if ellipsoid is new.
650
700
New object types (Multipoint and Collection) created in a cosmetic layer or in a layout
553
MI_UG.PDF
Version
Number
TAB
X
MIF MID
X
WOR
X
Action
#152 - JGD2000 datum used in Japan.
#1012 - PZ90 datum based on PZ90 ellipsoid. This datum is
used in Russia.
#1013 - SK42 datum based on PZ90 ellipsoid. This datum is
used in Russia.
#1014 - SK95 datum based on PZ90 ellipsoid. This datum is
used in Russia.
"Longitude / Latitude (Russia PZ90)", 1, 1012
Longitude / Latitude (Russia SK42)", 1, 1013
Longitude / Latitude (Russia SK95)", 1, 1014
Double Stereographic projection.
New datum - ATS77 (which uses ATS77 ellipsoid).
Prince Edward Island and New Brunswick Projection
Charset
The Charset clause specifies which character set was used to create text in the table. For
example: Specify WindowsLatin1 to indicate that the file was created using the Windows US &
Western Europe character set; specify MacRoman to specify the Macintosh US & Western
Europe character set; or specify Neutral to avoid converting the text into another character set. If
you are not using one of these character sets, you can determine the correct syntax for your
character set by exporting a table and examining the .MIF file in a text editor.
Delimiter
Specify the delimiting character in quotation marks, for example:
DELIMITER ;
The default delimiter is Tab; if you are using the default, you do not need the DELIMITER line.
Unique
Specify a number. This number refers to a database column; 3 is the third column, 7 is the seventh
column, and so forth. What happens to columns in the UNIQUE list is subtle. For example,
imagine that you have a database with highways in it. Each highway has only one name, but it
might be represented by several segments. You would put the NAME column in the UNIQUE list,
while the column containing data for the individual segments would not be in that list. This has the
effect of creating two related tables; one with names, and one with the other attributes of the
objects. This is how MapInfos various street maps (StreetPro) are prepared.
554
MI_UG.PDF
Index
To indicate that columns in the table are indexed, include a number (or a comma-separated list of
numbers) in the Index clause. Each number refers to a database column; 3 is the third column, 7 is
the seventh column, and so forth. Columns in the INDEX list will have indexes prepared for them.
CoordSys Clause
Specify the COORDSYS clause to note that the data is not stored in longitude/latitude form. When
no COORDSYS clause is specified, data is assumed to be stored in longitude/latitude form.
All coordinates are stored with respect to the northeast quadrant. The coordinates for points in the
United States have a negative X while coordinates for points in Europe (east of Greenwich) have a
positive X. Coordinates for points in the Northern hemisphere have a positive Y while coordinates
for points in the Southern hemisphere have a negative Y.
Syntax1
CoordSys Earth
[ Projection type,
datum,
unitname
[ , origin_longitude]
[ , origin_latitude ]
[ , standard_parallel_1 [ , standard_parallel_2 ] ]
[ , azimuth ]
[ , scale_factor ]
[ , false_easting ]
[ , false_northing]
[ , range
] ]
[ Affine Units unitname, A, B C, D, E, F ]
[ Bounds ( minx, miny) ( maxx, maxy) ]
Syntax2
CoordSys Nonearth
[ Affine Units unitname, A, B C, D, E, F ]
Units unitname
Bounds ( minx, miny) ( maxx, maxy)
Syntax3
CoordSys
Layout
Units
paperunitname
Syntax4
CoordSys
Table
tablename
Syntax5
CoordSys
Window
window_id
555
MI_UG.PDF
Transform Clause
When you have MIF files with coordinates stored with respect to the northwest quadrant (quadrant
2), you can transform them to the northeast quadrant (quadrant 1) with a transform clause.
Quadrant 2: Northwest Quadrant
To transform quadrant 2 data into quadrant 1 data, use the following transform clause:
TRANSFORM -1,0,0,0
Change the application so that it adds a TRANSFORM clause to the MIF files
556
MI_UG.PDF
Columns
Specify the number of columns. Then, for each column, create a row containing the column name,
the column type, and, for character and decimal columns, a number to indicate the width of the
field.
Note:
char (width)
smallint (which is 2 bytes, so it can only store numbers between -32767 and +32767)
decimal (width,decimals)
float
date
logical
For the database specified in this header, the MID file has three columns:
an AREA column that consists of a decimal field with up to 8 total characters (digits,
decimals points, and optional sign) and 4 digits after the decimal.
The data section of the MIF file can have any number of graphical primitives, one for each graphic
object. MapInfo matches up entries in the MIF and MID files, associating the first object in the MIF
file with the first row in the MID file, the second object in the MIF file with the second row in the MID
file, and so on.
When there is no graphic object corresponding to a particular row in the MID file, a blank object
(NONE) must be written as a place holder in the corresponding place in the MIF file.
NONE
557
MI_UG.PDF
polyline
region
arc
text
rectangle
rounded rectangle
ellipse
multipoint
collection
A point object takes two parameters; an X coordinate and a Y coordinate. As an option, specify the
symbol that represents the point. Symbols are designated by numbers. If you omit the SYMBOL
clause, the current symbol is used.
POINT
x y
[ SYMBOL (shape, color, size)]
Each MapInfo version supports variations on the SYMBOL clause; see Symbol Styles on
page 563 in this appendix.
A line objects requires four parameters; an X and a Y coordinate for each end point. As an option,
specify a pen type. When no pen type is specified, the current pen type is used.
LINE
x1 y1 x2 y2
[ PEN (width, pattern, color)]
A polyline object consists of one or more sections. If the polyline has more than one section,
include the MULTIPLE keyword, followed by the number of sections. For each section, specify a
numpts argument (which indicates the number of nodes in that section), followed by an x/y
coordinate pair for each node. Use the optional PEN clause (described later in this appendix) to
specify the line style. If you include the optional SMOOTH keyword, the polyline is smoothed.
PLINE [ MULTIPLE numsections ]
numpts1
x1 y1
x2 y2
:
[ numpts2
x1 y1
x2 y2
]
:
[ PEN (width, pattern, color)]
[ SMOOTH ]
A region object consists of one or more polygons. Specify the number of polygons through the
numpolygons argument (immediately after the REGION keyword). For each polygon, specify a
numpts argument (which indicates the number of nodes in that polygon), followed by an x/y
coordinate pair for each node. Use the optional PEN and BRUSH clauses (described later in this
appendix) to specify the objects style. Use the optional CENTER clause to define the objects
centroid explicitly. The centroid must be within the object.
REGION numpolygons
numpts1
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
558
MI_UG.PDF
x1 y1
x2 y2
:
[ numpts2
x1 y1
x2 y2 ]
:
[ PEN (width, pattern, color)]
[ BRUSH (pattern, forecolor, backcolor)]
[ CENTER x y ]
An arc requires the diagonally opposite corners of its bounding rectangle and the beginning (a)
and ending (b) angles of the arc in degrees, moving counter-clockwise with zero at three oclock.
As an option, specify the pen type. (An arc specifies a section of an ellipse, the corners of which
are determined by the bounding rectangle.)
ARC x1 y1 x2 y2
a b
[ PEN (width, pattern, color)]
A text object consists of a text string, up to 255 characters long. To make the text string wrap onto
multiple lines, insert the characters \n within the textstring argument (e.g. First line \nSecond line
\nThird line). The x1, y1, x2, and y2 arguments specify the location of the text on the map.
Spacing can be 1.0 (single spacing), 1.5, or 2.0 (double spacing). Use the Font clause (described
later in this appendix) to control the typeface, etc.
TEXT textstring
x1 y1 x2 y2
[ FONT...]
[ Spacing {1.0 | 1.5 | 2.0}]
[ Justify {Left | Center | Right}]
[ Angle text_angle]
[ Label Line {simple | arrow} x y ]
A rectangle requires the coordinates of the diagonally opposite corners. As an option, specify pen
and brush types.
RECT x1 y1 x2 y2
[ PEN (width, pattern, color)]
[ BRUSH (pattern, forecolor, backcolor)]
A rounded rectangle requires the coordinates of the diagonally opposite corners and the degree of
rounding (a). As an option, specify pen and brush types. Degree of rounding is expressed in
coordinate units.
ROUNDRECT x1 y1 x2 y2
a
[ PEN (width, pattern, color)]
[ BRUSH (pattern, forecolor, backcolor)]
An ellipse object requires the coordinates of the diagonally opposite corners of its bounding
rectangle. As an option, specify pen and brush types.
ELLIPSE x1 y1 x2 y2
[ PEN (width, pattern, color)]
[ BRUSH (pattern, forecolor, backcolor)]
559
MI_UG.PDF
A multipoint object takes multiple parametrics, consisting of xy coordinate pairs. The number of
points is indicated by the num_points parameter as an option, specify the symbol that represents
the multipoint. Symbols are designed by numbers. If you omit the SYMBOL claus4e, the current
symbol is used.
MULTIPOINT num_points
x1 y1 x2 y2 x3 y3 ...
EXAMPLE:
Multipoint 7
-3.113504 10.532464
-2.113504 11.532464
-1.113504 12.532464
-0.113504 14.532464
-4.113504 11.532464
-0.113504 8.532464
0.886496 13.532464
Symbol (35,0,12)
Collection format
Collection num_parts
Region
.......
Pline
......
Multipoint
..........
A collection object takes multiple parameters, consisting of the parameters of the object types
included in the collection. Individual formats for the Region, Pline, and Multipoint parts of the
collection are the same as those for the corresponding object type. The num_parts parameter is
required if the number of parts in the collection is less than three. If this number is omitted, it is
assumed that the collection contains all three parts. In exports, MapInfo always writes this number
into the MIF file.
COLLECTION num_parts
Region
Pline
Multipoint
EXAMPLE:
Collection 3
Region 3
5
4.850832 10.077456
5.850832 11.077456
6.850832 13.077456
12.850832 19.077456
4.850832 10.077456
4
-5.149168 0.077456
-4.149168 1.077456
-3.149168 3.077456
-5.149168 0.077456
4
14.850832 20.077456
15.850832 21.077456
16.850832 23.077456
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
560
MI_UG.PDF
14.850832 20.077456
Pen (1,2,0)
Brush (2,16777215,16777215)
Center 8.850832 14.577456
Pline 3
-7.149168 0.077456
-3.149168 -2.922544
-2.149168 2.077456
Pen (1,2,0)
Multipoint 2
-6.149168 -0.922544
-5.149168 0.077456
Symbol (35,0,12)
Pen Styles
The Pen clause specifies the width, pattern, and color of a linear object, such as a line, polyline
arc, or the border of a region. The Pen clause has the following syntax:
PEN (width, pattern, color)
Width is a number from 1 to 7. 17 is the width in screen pixels. 112047 are values that will be
converted to points:
penwidth = (number of points * 10) + 10
0 is only valid when the pen pattern is 1 for invisible lines.
Color is an integer, representing a 24-bit RGB color value.
Pattern is an integer from 1 to 118; pattern number 1 is invisible. The pattern number corresponds
to a pen number in the pen file. The pen file can be modified using a pen editor.
Valid pen numbers are from 1 to maximum number of pens in the pen file, which should not
exceed 127. If a pen style is interleaved, 128 will be added to the pen number. Interleaved styles
are in the range 129255. Because the pen file can be modified, and interleaved can be specified,
the pen pattern can be a number between 1255.
561
MI_UG.PDF
Brush Styles
Brush specifies the pattern, foreground color, and background color of a filled object, such as a
circle or region. The Brush clause has the following syntax:
Brush (pattern, forecolor
[, backcolor ])
The forecolor and backcolor arguments are both integers, representing 24-bit RGB color values.
Pattern is a number from 1 to 71. Note: Pattern number 1 is no fill, and pattern number 2 is a
solid fill. Pattern numbers 911 are reserved.
Note:
To specify a transparent fill style, use pattern number three or larger, and omit the
backcolor argument. For example: Brush( 5, 255)
562
MI_UG.PDF
Symbol Styles
The Symbol clause specifies the appearance of a Point object. There are three different forms of
the Symbol clause:
The shape argument is an integer value, 31 or larger; 31 represents a blank symbol (i.e. the object
will not be visible). The standard set of symbols includes symbols 32 through 67, inclusive, but the
user can customize the symbol set by using the Symbol application.
The color argument is an integer representing a 24-bit RGB color value.
The size argument is an integer from 1 to 48, representing a point size.
The following table lists the default symbols provided with MapInfo:
563
MI_UG.PDF
The fontname argument is a text string that identifies the name of a font (e.g. Wingdings).
The fontstyle argument is an integer that controls settings such as Bold. The following table lists
the values you can use as fontstyle.
fontstyle value
Plain text
Bold text
16
32
Drop shadow
256
To specify two or more style attributes, add the values from the left column. For example, to
specify Bold and Drop Shadow, use 33.
The rotation argument is a floating-point number, representing a rotation angle, in degrees.
The filename argument is a text string that identifies a bitmap file (e.g. ARROW.BMP) in the
CustSymb directory.
The customstyle argument is an integer that controls whether color and background attributes are
used. The following table lists the values you can use as customstyle:
customstyle value
Both the Show Background setting and the Apply Color setting are
off; symbol appears in default state. White pixels in the bitmap
appear transparent, allowing whatever is behind the symbol to
show through.
The Show Background settings is on; white pixels in the image are
opaque.
The Apply Color setting is on; non-white colors in the image are
replaced with the Symbols color value.
564
MI_UG.PDF
Fontname in double quotation marks is the typeface to be displayed. Style is the text attribute of
the typeface as shown in the following table. Size must be 0 in a MIF file, because each text object
on a Map is attached to the map itself (thus the text size changes as you zoom in or out). Forecolor
is an integer representing a 24-bit RGB color. The background color is optional; if you include it,
MapInfo fills the area behind the text with the color you specify.
style value
Plain
Bold
Italic
Underline
16
32
Shadow
256
Halo
512
All Caps
1024
Expanded
To specify two or more style attributes, add the values from the left column. For example, to
specify Bold and All Caps, use 513.
565
MI_UG.PDF
Yellow: 16776960
Black: 0
MID File
The MID file contains data, one record of data per row, delimited by the character specified in the
delimiter statement. The default delimiter is Tab. Each row in the MID file is associated with a
corresponding object in the MIF file; first row with first object, second row with second object.
If delimiter character is included as part of the data in a field, enclose the field in quotation marks.
The MID file is an optional file. When there is no MID file, all fields are blank.
566
MI_UG.PDF
567
MI_UG.PDF
In the Region Style dialog box, you have the option of selecting fill patterns for regions. This appendix
shows the fill patterns and their ID numbers.
MB ID
1
Image
None
MB ID
Image
MB ID
27
50
28
51
29
52
30
53
31
54
32
55
33
56
34
57
12
35
58
13
36
59
14
37
60
15
38
61
16
39
62
17
40
63
Image
569
MI_UG.PDF
MB ID
Image
MB ID
Image
MB ID
18
41
64
19
42
65
20
43
66
21
44
67
22
45
68
23
46
69
24
47
70
25
48
71
26
49
Image
Image
MB ID
Image
MB ID
72
107
142
73
108
143
74
109
144
Image
570
MI_UG.PDF
MB ID
Image
MB ID
Image
MB ID
75
110
145
76
111
146
77
112
147
78
113
148
79
114
149
80
115
150
81
116
151
82
117
152
83
118
153
84
119
154
85
120
155
86
121
156
87
122
157
88
123
158
89
124
159
Image
571
MI_UG.PDF
MB ID
Image
MB ID
Image
MB ID
90
125
160
91
126
161
92
127
162
93
128
163
94
129
164
95
130
165
96
131
166
97
132
167
98
133
168
99
134
169
100
135
170
101
136
171
102
137
172
103
138
173
104
139
174
Image
572
MI_UG.PDF
MB ID
Image
MB ID
105
140
106
141
Image
MB ID
Image
175
573
MI_UG.PDF
Custom Datums
A datum is a mathematical description of the earths shape and orientation. Because the earths shape is
not uniform, there are many different local datums used in different parts of the world. These local datums
provide a close approximation to the earths surface in a particular area.
Each Earth coordinate system uses a specific datum to approximate the earths surface. If two coordinate
systems use different datums, then MapInfo Professional must perform a datum transformation when it
converts coordinates from one coordinate system to the other. MapInfo uses the Bursa-Wolfe datum
transformation method, which is generally accurate to within 10 meters. (When MapInfo converts between
two coordinate systems that use the same datum, no datum transformation is performed, and the results
are generally accurate to within 0.1 meter.)
In this Appendix:
An ellipsoid, also called a spheroid. This is an ellipse rotated around its minor axis to form
a three-dimensional surface. The ellipsoid is described by two mathematical parameters:
the length, in meters, of its semi-major axis (denoted by the letter a) and its degree of
flattening (denoted by the letter f). MapInfo supports over 40 predefined ellipsoids, which
are listed in the next table.
Three shift parameters specifying the distance, in meters, to shift the ellipsoid along each
of its axes. These parameters are usually denoted by dX, dY, and dZ. You may also see
them denoted by DX, DY, and DZ, or by u, v, and w.
Three rotation parameters specifying the angle, in arc-seconds, to rotate the ellipsoid
around each of its axes. These parameters are usually denoted by EX, EY, and EZ. You
may also see them denoted by eX, eY, and eZ, or by e, y, and w.
A scale correction factor specifying the amount, in parts per million, to adjust the size of
the ellipsoid. This parameter is denoted by the letter m, or sometimes k.
The longitude of the prime meridian, in degrees east of Greenwich. The prime meridian
specifies which location on earth is assigned longitude 0. Most datums use Greenwich as
the prime meridian, so this parameter is usually zero. However, some datums use a
different location as the prime meridian. For example, the NTF datum uses Paris as its
prime meridian, which is 2.33722917 degrees east of Greenwich. If you use the NTF
datum in a coordinate system, all longitudes in that coordinate system are relative to Paris
instead of Greenwich.
You can define a custom datum in any coordinate system definition. Appendix F describes how to
define a coordinate system. To define a custom datum in a coordinate system, you use datum
number 9999 followed by the datum parameters, in this order:
9999, EllipsoidNumber, dX, dY, dZ, EX, EY, EZ, m, PrimeMeridian
Some datums specify only an ellipsoid and shift parameters (dX, dY, dZ), with no rotation
parameters, scale correction, or prime meridian. In those cases, you can use datum number 999
instead of 9999, to simplify the definition:
999, EllipsoidNumber, dX, dY, dZ
The ellipsoid number must be chosen from the following list. Currently, there is no way to define a
custom ellipsoid. If you need to use an ellipsoid that does not appear on this list, please notify
MapInfo Technical Support so that we can add your ellipsoid to a future MapInfo release.
Two ellipsoids have been added. These are: Everest Pakistan #50, and ATS 77 (Average
Terrestrial System) #51.
The ellipsoid names for Everest ellipsoids have been standardized according to NIMA specs to
conform to the most current standards used in the GIS and mapping communities.
575
MI_UG.PDF
Old Name
11
Everest (1830)
17
Everest (Kertau)
39
Everest (Timbalai)
48
40
Everest (Kalianpur)
The additions and the new names are reflected in this table.
Number
Ellipsoid
1/f
Airy 1930
6377563.396
299.3249646
13
6377340.189
299.3249646
51
ATS7 77
6378135.0
298.257
Australian
6378160.0
298.25
10
Bessel 1841
6377397.155
299.1528128
35
6377492.0176
299.15281
14
6377483.865
299.1528128
36
Clarke 1858
6378293.639
294.26068
Clarke 1866
6378206.4
294.9786982
6378450.0474844
81
294.9786982
Clarke 1880
6378249.145
293.465
15
6378249.145326
293.4663076
30
6378249.2
293.4660213
37
6378249.136
293.46631
16
6378249.2
293.46598
38
6378300.79
293.46623
39
6377298.556
300.8017
11
6377276.345
300.8017
576
MI_UG.PDF
Number
Ellipsoid
1/f
40
6377301.243
300.80174
50
Everest (Pakistan)
6377309.613
300.8017
17
6377304.063
300.8017
48
6377295.664
300.8017
18
Fischer 1960
6378166.0
298.3
19
6378155.0
298.3
20
Fischer 1968
6378150.0
298.3
21
GRS 67
6378160.0
298.247167427
GRS 80
6378137.0
298.257222101
Hayford
6378388.0
297.0
22
Helmert 1906
6378200.0
298.3
23
Hough
6378270.0
297.0
31
IAG 75
6378140.0
298.257222
41
Indonesian
6378160.0
298.247
International 1924
6378388.0
297.0
49
Irish (WOFO)
6377542.178
299.325
Krassovsky
6378245.0
298.3
32
MERIT 83
6378137.0
298.257
33
6378157.5
298.25
43
NWL 10D
6378135.0
298.26
42
NWL 9D
6378145.0
298.25
44
OSU86F
6378136.2
298.25722
45
OSU91A
6378136.3
298.25722
46
Plessis 1817
6376523.0
308.64
52
PZ90
6378136.0
298.257839303
24
South American
6378160.0
298.25
12
Sphere
6370997.0
0.0
47
Struve 1860
6378297.0
294.73
577
MI_UG.PDF
Number
Ellipsoid
1/f
34
Walbeck
6376896.0
302.78
25
War Office
6378300.583
296.0
26
WGS 60
6378165.0
298.3
27
WGS 66
6378145.0
298.25
WGS 72
6378135.0
298.26
28
WGS 84
6378137.0
298.257223563
The shift and rotation parameters describe the ellipsoids orientation in space, as compared to the
WGS 84 datum. Its important to make sure that these parameters have the correct signs (positive
or negative). Usually, a document describing a local datum will list the parameters required to
convert coordinates from the local datum to WGS 84. (This is the same as saying that the
parameters were derived by subtracting the local datum from WGS 84.) In that case, you can use
the parameters exactly as they appear in the document. However, if you have a document that lists
parameters for converting coordinates in the opposite direction from WGS 84 to the local datum
then you must reverse the signs of the shift, rotation, and scale correction parameters.
Its also very important to list the parameters in the correct order. Some documents list the rotation
parameters with EZ first, like this: EZ, EY, EX. In those cases, you must reverse the order of the
rotation parameters when defining the custom datum. This is especially easy to overlook when
your document uses Greek letters to denote the parameters. If the document lists the parameters
in order as w, y, e, then you must reverse their order in the custom datum definition.
Heres an example of a local datum description (well call it LD-1) as it might appear in a technical
article:
LD-1 ellipsoid: International
a
6378388.0 m
1 / 297.0
93.5 m
DY
103.5 m
DZ
123.3 m
eX
-0.25??
eY
0.11??
eZ
0.07??
-2.1 ppm
578
MI_UG.PDF
This datum uses the International ellipsoid, which is number 4 in the ellipsoid table above. The
other parameters describe a conversion from WGS 84 to the local datum, so we must reverse their
signs. No prime meridian is listed, so we can assume that Greenwich is used. The custom datum
definition in MapInfo would look like this:
9999, 4, -93.5, -103.5, -123.3, 0.25, -0.11, -0.07, 2.1, 0
You can insert this string of numbers in place of the datum number in any line in the
MAPINFOW.PRJ file. For example, you could define the following coordinate systems using this
custom datum:
Note:
Longitude / Latitude (LD-1), 1, 9999, 4, -93.5, -103.5, -123.3, 0.25, 0.11, -0.07, 2.1, 0
UTM Zone 30 (LD-1), 8, 9999, 4, -93.5, -103.5, -123.3, 0.25, -0.11, -0.07,
2.1, 0, 7, -3, 0, 0.9996, 500000, 0
Heres another sample local datum description, called LD-2 this time:
LD-2 ellipsoid: Krassovsky
a
6378245.0 m
1 / 298.3
+24 m
123 m
94 m
+0.13??
+0.25??
-0.02??
+1.1 10-6
This datum uses the Krassovsky ellipsoid, which is number 3 in the ellipsoid table above. We do
not need to reverse the signs of the parameters, since they describe a conversion from the local
datum to WGS 84. However, the rotation parameters are listed with w first, so we must reverse
their order in the custom datum definition:
9999, 3, 24, -123, -94, -0.02, 0.25, 0.13, 1.1, 0
Heres a final example, LD-3, that provides only the ellipsoid and shift parameters:
LD-3 ellipsoid: Clarke 1880
a
6378249.145 m
1 / 293.465
579
MI_UG.PDF
-7 m
dY
36 m
dZ
225 m
This datum uses the Clarke 1880 ellipsoid, which is number 6 in the ellipsoid table above. We do
not need to reverse the signs of the parameters or worry about the order of the rotation parameters
(since they arent present). In this case, you can use datum number 999 instead of 9999 in the
custom datum definition. These two definitions are equivalent, and you can use either one:
999, 6, -7, 36, 225
9999, 6, -7, 36, 225, 0, 0, 0, 0, 0
As with the other custom datum definitions, you would insert one of these definitions in place of the
datum number in a MAPINFOW.PRJ line, as follows:
Longitude / Latitude (LD-3), 1, 999, 6, -7, 36, 225
UTM Zone 30 (LD-3), 8, 999, 6, -7, 36, 225, 7, -3, 0, 0.9996, 500000, 0
Datum Conversion
When converting coordinates from one datum to another, MapInfo has used the Molodensky (3parameter) and Bursa-Wolf (7-parameter) methods. These are general-purpose methods that can
convert coordinates from any datum to any other datum.
After the NAD 83 datum was introduced, NOAA developed a program called NADCON, which
stands for North American Datum CONversion. This is a very specialized program that converts
coordinates only from NAD 27 to NAD 83 and vice versa. For this specialized task, its much more
accurate than the Molodensky general-purpose method; NADCON is accurate to about 0.1 meter,
and Molodensky is accurate to only 1030 meters. Most U.S. government agencies, including the
Census Bureau, have standardized on NADCON for converting between NAD 27 and NAD 83.
Beginning with MapInfo 4.1.2, the NADCON algorithm is used to convert coordinates between
NAD 27 and NAD 83 if those coordinates lie within the areas covered by NADCON (United States,
Puerto Rico, and the Virgin Islands). If the coordinates lie outside those areas, or if they use
datums other than NAD 27 or NAD 83, MapInfo uses the Molodensky or Bursa-Wolfe conversion
methods.
Due to the file access required, the NADCON conversion method can be slightly slower than the
Molodensky method. If you want to turn off the NADCON conversion, add a NADCON entry to
the registry. The registry entry should have this path:
HKEY_LOCAL_MACHINE\Software\MapInfo\MapInfo\Common\NADCON
If this entry is set to zero, then the Molodensky conversion method will be used instead of
NADCON.
580
MI_UG.PDF
If using the 16-bit version of MapInfo, add this line to the [MAPINFO COMMON] section in
MAPINFO.INI to turn off the NADCON conversion:
NADCON=0
581
MI_UG.PDF
In this Appendix:
Asia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
Europe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
North America . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
World . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Asia
Australia
Source: Copyright and Intellectual Property in the attached data sets rests with one of the
following: The Australian Government represented by the Australian Bureau of Statistics; The
Government of New South Wales represented by The Land Information Centre. MapInfo Australia
Pty Ltd and PSMA Australia Ltd.
Data: Locations of the state boundaries and capitals and over 4000 major and minor cities. Map of
major rivers and major roads.
Local government area boundary for Manly.
Tasmania area boundaries, feature points and water boundaries.
Map of New South Wales.
Sydney feature points, rivers, suburbs, towns, census collection district and postcode boundaries,
and customer database.
Component street table and grid surrounding for Sydney. Streetworks samples
Source: MapInfo from Digital Chart of the World
Data: Generalized map of major highways
Source: SPOT Image Corporation CNES 1995
Data: Raster map of Sydney
Source: MapInfo Corporation from National Imagery and Mapping Agency (NIMA)
Data: Country boundary
Source: Hervey Bay City Council, 2000
Data: Point Vernon and Hervey Bay, Australia
China
Source: MapInfo from Digital Chart of the World
Data: Over 5,000 major and minor cities and major highways.
Source: MapInfo Corporation from National Imagery and Mapping Agency (NIMA)
Data: Country and surrounding country boundaries.
Japan
Source: GisNET data licensed to MapInfo by GISdata Limited. GDC Ltd 1993
Data: Water, highway, rivers, lakes and major railroads.
Source: MapInfo from Digital Chart of the World.
Data: 142 major and minor cities including all prefecture capitals.
Source: MapInfo Corporation from National Imagery and Mapping Agency (NIMA)
Data: Country boundary.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
583
MI_UG.PDF
India
Source: Risk Management Solutions, Inc.
Data: State, country and district boundaries.
Source: MapInfo from Digital Chart of the World
Data: Major and minor cities and state capitals.
Europe
Austria, Belgium, Denmark, Deutschland, Espana, France, Italy,
Netherlands, Norway, Portugal, Sweden, Switzerland, United Kingdom
Source: 2001 Tele Atlas B.V. 's-Hertogenbosch. All Rights Reserved.
Data: StreetPro Austria, Belgium, Denmark, Deutschland, Espana, France, Italy, Netherlands,
Norway, Portugal, Sweden, and Switzerland.
Source: GisNET data licensed to MapInfo by GISdata Limited. GDC Ltd 1993
Data: Water and highway/roadway maps.
Source: MapInfo Corporation from National Imagery and Mapping Agency (NIMA)
Data: Country Boundaries (Austria, Belgium, Denmark, Deutschland, Espana, France, Italy,
Netherlands, Norway, Portugal, Sweden, Switzerland, Europe and United Kingdom.)
Great Britain
Source: 2001 Tele Atlas B.V. 's-Hertogenbosch. All Rights Reserved. This product includes
mapping data licensed from Ordnance Survey (R). (c) Crown 2001. License number 100020348
Data: StreetPro Great Britain
North America
Canada
Source: Geographic Data Technology Canada
Data: (Prince Edward Island) Airports, Census subdivisions, Major Primary and Secondary
Highways, Institutions, Large Areas land use, Parks, Road Buffers, Streets, Transportation points,
Urban Agglomeration, Province, Railways, Utility lines and Water areas.
Source: MapInfo from Digital Chart of the World
Data: Over 3000 major and minor cities and generalized map of major highways.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
584
MI_UG.PDF
Mexico
Source: MapInfo Corporation
Data: Surrounding water and country boundary.
Source: MapInfo from the Bureau of Transportation Statistics
Data: State boundaries.
Source: MapInfo from Digital Chart of the World
Data: Generalized map of major highways and locations of all state capitals, major and minor
cities.
United States, DC
Source: 1997 Geographic Data Technology, Inc.
Data: Postal code boundaries.
Source: MapInfo Canada
Data: 2000 Demographic data Blockgroup.
Source: 2001 Geographic Data Technology, Inc.
Data: StreetPro and 5 digit postal codes
Source: MapInfo Corporation 2001. Aerial Photography used with permission of
RSC Group, LLC 2001. All rights reserved.
Data: 5 mile by 5 mile area of 1m and 3m ground resolution raster images.
Source: MapInfo Corporation
Data: Shields in StreetPro. Listing of NPA/NXXs covered in DC. Competitive, Local Exchange
Carriers (CLEC), Personal Communications Services (PCS) markets, cellular telephone service
areas as defined by the FCC, Local Exchange Carriers (LEC), Local Access Transport Areas
(LATAs), Competitive Local Exchange Carriers (CLEC), rate center locations and wire center
serving boundaries, Point Of Presence (POP) locations for long distance telephone carriers. Area
Codes. POPINFO and ObstacleInfo.
Point file showing wireless (Cellular, Paging, PCS and SMR) switch locations.
Records of hurricanes between 1988 - 1996
Gas, electric utilities and cable franchise areas.
StreetPro - component tables.
Wireless samples for Sprint, ATT, Bell Atlantic, PGNT_P, PGMT_P, Nextel and GTE.
Current hazardous waste notifiers, Superfund Cleanup and National Priority List sites as defined
by the EPS.
585
MI_UG.PDF
United States
Source: 1997- 1998 Schlosser Geographic Systems, Inc.
Data: Orthophoto Image of Seattle Airport.
Source: 2001 Geographic Data Technology, Inc.
Data: Postal code boundaries and Postal code points.
Source: MapInfo Canada
Data: 1990 Demographics by states and counties.
Source: MapInfo Corporation
Data: Sample customer database in various database formats. State boundaries with the states of
Alaska and Hawaii inset.
Source: MapInfo from Digital Chart of the World
Data: Location of the state capitals and the location of 8875 cities. Point elevation data in feet and
meters.
Source: MapInfo from NOAA
Data: Annual temperature and rainfall.
Source: MapInfo from the Bureau of Transportation Statistics
Data: A very generalized version of the Roadnet interstate data
Source: MapInfo from the US Census Bureau
Data: Updated County boundaries from Census 2000 including Puerto Rico. Map containing the
location of 125 major cities and locations of 208,857 points of interest and landmarks.
Source: MapInfo from USGS
Data: MapInfo grid file of Washington DC East and West
Source: Public Domain - OSU
Data: MapInfo grid file of Mt. St. Helens before and after eruption. MapInfo grid file of Crater Lake,
Oregon
Source: Sure!MAPS RASTER HTI 1995
Data: Raster image of Alaska, DC, Big Bend TX, Florida, Gulf Coast, Mid-Atlantic, Mississippi
River, North Central, Northeastern US, Northern US Northwestern US, Rockies, Southwestern US.
Seamless raster of 50 US states.
586
MI_UG.PDF
World
Source: MapInfo Corporation
Data: Military Grid Reference System 84 NL to 80 SL, North & South Polar Regions. Grid of
latitude and longitude at 15 degree increments.
Source: MapInfo from Digital Chart of the World
Data: Location of world capitals and point locations for major and minor cities.
Source: MapInfo Corporation from National Imagery and Mapping Agency (NIMA)
Data: World Boundaries.
587
MI_UG.PDF
These are the new statements and functions available for the MapInfo Professional 7.5 product.
Enhanced statements
Syntax
Objects Move
Angle angle
Distance distance
[Units unit]
[Type {Spherical | Cartesian}]
Description
Objects Move moves the objects within the input table. The source objects are obtained from the
current selection. The resulting objects replace the input objects. No data aggregation is
performed or necessary, since the data associated with the original source objects is unchanged.
The object is moved in the direction represented by angle, measured from the positive X-axis
(east) with positive angles being counterclockwise, and offset at a distance given by the distance
parameter. The distance is in the units specified by unit parameter, if present. If the Units clause is
not present, then the current distance unit is the default. By default, MapBasic uses miles as the
distance unit; to change this unit, see the Set Distance Units statement.
The optional Type sub-clause lets you specify the type of distance calculation used to create the
offset. If the Spherical type is used, then the calculation is done by mapping the data into a
Latitude/Longitude On Earth projection and using distance measured using Spherical distance
calculations. If the Cartesian type is used, then the calculation is done by considering the data to
be projected to a flat surface and distances are measured using cartesian distance calculations. If
the Type sub-clause is not present, then the Spherical distance calculation type is used. If the
data is in a Latitude/Longitude Projection, then Spherical calculations are used regardless of the
Type setting. If the data is in a NonEarth Projection, the Cartesian calculations are used
regardless of the Type setting.
There are some considerations for Spherical measurements that do not hold for Cartesian
measurements. If you move an object that is in Lat/Long, the shape of the object remains the
same, but the area of the object will change. This is because you are picking one offset delta in
degrees, and the actual measured distance for a degree is different at different locations.
For the Offset functions, the actual offset delta is calculated at some fixed point on the object (e.g.,
the center of the bounding box), and then that value is converted from the input units into the
Coordinate System's units. If the coordinate system is Lat/Long, the conversion to degrees uses
the fixed point. The actual converted distance measurement could vary at different locations on the
object. The distance from the input object and the new offset object is only guaranteed to be exact
at the single fixed point used.
589
MI_UG.PDF
Example
Objects Move Angle 45 Distance 100 Units mi Type Spherical
Syntax
Objects Offset
[Into Table intotable]
Angle angle
Distance distance
[Units unit]
[Type {Spherical | Cartesian}]
[Data column = expression [, column = expression ...]]
Description
Objects Offset makes a new copy of objects offset from the original source objects. The source
objects are obtained from the current selection. The resulting objects are placed in the Into Table,
if the Into clause is present. Otherwise, the objects are placed into the same table as the input
objects are obtained from (i.e., the base table of the selection).
The object is moved in the direction represented by angle, measured from the positive X-axis
(east) with positive angles being counterclockwise, and offset at a distance given by the distance
parameter. The distance is in the units specified by unit parameter, if present. If the Units clause is
not present, then the current distance unit is the default. By default, MapBasic uses miles as the
distance unit; to change this unit, see the Set Distance Units statement.
The optional Type sub-clause lets you specify the type of distance calculation used to create the
offset. If the Spherical type is used, then the calculation is done by mapping the data into a
Latitude/Longitude On Earth projection and using distance measured using Spherical distance
calculations. If the Cartesian type is used, then the calculation is done by considering the data to
be projected to a flat surface and distances are measured using cartesian distance calculations. If
the Type sub-clause is not present, then the Spherical distance calculation type is used. If the
data is in a Latitude/Longitude Projection, then Spherical calculations are used regardless of the
Type setting. If the data is in a NonEarth Projection, the Cartesian calculations are used
regardless of the Type setting.
If you specify a Data clause, the application performs data aggregation.
There are some considerations for Spherical measurements that do not hold for Cartesian
measurements. If you move an object that is in Lat/Long, the shape of the object remains the
same, but the area of the object will change. This is because you are picking one offset delta in
degrees, and the actual measured distance for a degree is different at different locations.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
590
MI_UG.PDF
For the Offset functions, the actual offset delta is calculated at some fixed point on the object (e.g.,
the center of the bounding box), and then that value is converted from the input units into the
Coordinate System's units. If the coordinate system is Lat/Long, the conversion to degrees uses
the fixed point. The actual converted distance measurement could vary at different locations on the
object. The distance from the input object and the new offset object is only guaranteed to be exact
at the single fixed point used.
Example
Objects Offset Into Table c:\temp\table1.tbl Angle 45 Distance 100 Units mi
Type Spherical
Offset() Function
Purpose
Returns a copy of the input object offset by the specified distance and angle.
Syntax
Offset(object, angle, distance, units)
where:
object is the object being offset,
angle is the angle to offset the object,
distance is the distance to offset the object, and
units is a string representing the unit in which to measure distance.
Return Value
Object
Description
This function produces a new object that is a copy of the input object offset by distance along
angle (in degrees with horizontal in the positive X-axis being 0 and positive being
counterclockwise). The unit string, similar to that used for ObjectLen or Perimeter, is the unit for
the distance value. The DistanceType used is Spherical unless the Coordinate System is
NonEarth. For NonEarth, Cartesian DistanceType is automatically used. The coordinate system
used is the coordinate system of the input object.
There are some considerations for Spherical measurements that do not hold for Cartesian
measurements. If you move an object that is in Lat/Long, the shape of the object remains the
same, but the area of the object will change. This is because you are picking one offset delta in
degrees, and the actual measured distance for a degree is different at different locations.
591
MI_UG.PDF
For the Offset functions, the actual offset delta is calculated at some fixed point on the object (e.g.,
the center of the bounding box), and then that value is converted from the input units into the
Coordinate System's units. If the coordinate system is Lat/Long, the conversion to degrees uses
the fixed point. The actual converted distance measurement could vary at different locations on the
object. The distance from the input object and the new offset object is only guaranteed to be exact
at the single fixed point used.
Example
Offset(Rect, 45, 100, mi)
SphericalOffset() Function
Purpose
Returns a copy of the input object offset by the specified distance and angle using a spherical
DistanceType.
Syntax
SphericalOffset(object, angle, distance, units)
where:
object is the object being offset,
angle is the angle to offset the object,
distance is the distance to offset the object, and
units is a string representing the unit in which to measure distance.
Return Value
Object
Description
This function produces a new object that is a copy of the input object offset by distance along
angle (in degrees with horizontal in the positive X-axis being 0 and positive being
counterclockwise). The unit string, similar to that used for ObjectLen or Perimeter, is the unit for
the distance value. The DistanceType used is Spherical. If the Coordinate System of the input
object is NonEarth, an error will occur, since Spherical DistanceTypes are not valid for NonEarth.
This is signified by returning a NULL object. The coordinate system used is the coordinate system
of the input object.
There are some considerations for Spherical measurements that do not hold for Cartesian
measurements. If you move an object that is in Lat/Long, the shape of the object remains the
same, but the area of the object will change. This is because you are picking one offset delta in
degrees, and the actual measured distance for a degree is different at different locations.
592
MI_UG.PDF
For the Offset functions, the actual offset delta is calculated at some fixed point on the object (for
example, the center of the bounding box), and then that value is converted from the input units into
the Coordinate System's units. If the coordinate system is Lat/Long, the conversion to degrees
uses the fixed point. The actual converted distance measurement could vary at different locations
on the object. The distance from the input object and the new offset object is only guaranteed to be
exact at the single fixed point used.
Example
SphericalOffset(Rect, 45, 100, mi)
CartesianOffset() Function
Purpose
Returns a copy of the input object offset by the specified distance and angle using a Cartesian
DistanceType.
Syntax
CartesianOffset(object, angle, distance, units)
where:
object is the object being offset,
angle is the angle to offset the object,
distance is the distance to offset the object, and
units is a string representing the unit in which to measure distance.
Return Value
Object
Description
This function produces a new object that is a copy of the input object offset by distance along
angle (in degrees with horizontal in the positive X-axis being 0 and positive being
counterclockwise). The unit string, similar to that used for ObjectLen or Perimeter, is the unit for
the distance value. The DistanceType used is Cartesian. If the Coordinate System of the input
object is Lat/Long, an error will occur, since Cartesian DistanceTypes are not valid for Lat/Long.
This is signified by returning a NULL object. The coordinate system used is the coordinate system
of the input object.
There are some considerations for Spherical measurements that do not hold for Cartesian
measurements. If you move an object that is in Lat/Long, the shape of the object remains the
same, but the area of the object will change. This is because you are picking one offset delta in
degrees, and the actual measured distance for a degree is different at different locations.
593
MI_UG.PDF
For the Offset functions, the actual offset delta is calculated at some fixed point on the object (e.g.,
the center of the bounding box), and then that value is converted from the input units into the
Coordinate System's units. If the coordinate system is Lat/Long, the conversion to degrees uses
the fixed point. The actual converted distance measurement could vary at different locations on the
object. The distance from the input object and the new offset object is only guaranteed to be exact
at the single fixed point used.
Example
CartesianOffset(Rect, 45, 100, mi)
OffsetXY() Function
Purpose
Returns a copy of the input object offset by the specified X and Y offset values.
Syntax
OffsetXY(object, xoffset, yoffset, units)
where:
object is the object being offset,
xoffset and yoffset are the distance along the x and y axes to offset the object, and
units is a string representing the unit in which to measure distance.
Return Value
Object
Description
This function produces a new object that is a copy of the input object offset by xoffset along the Xaxis and yoffset along the Y-axis. The unit string, similar to that used for ObjectLen or Perimeter, is
the unit for the distance values. The DistanceType used is Spherical unless the Coordinate System
is NonEarth. For NonEarth, Cartesian DistanceType is automatically used. The coordinate system
used is the coordinate system of the input object.
There are some considerations for Spherical measurements that do not hold for Cartesian
measurements. If you move an object that is in Lat/Long, the shape of the object remains the
same, but the area of the object will change. This is because you are picking one offset delta in
degrees, and the actual measured distance for a degree is different at different locations.
For the Offset functions, the actual offset delta is calculated at some fixed point on the object (e.g.,
the center of the bounding box), and then that value is converted from the input units into the
Coordinate System's units. If the coordinate system is Lat/Long, the conversion to degrees uses
594
MI_UG.PDF
the fixed point. The actual converted distance measurement could vary at different locations on the
object. The distance from the input object and the new offset object is only guaranteed to be exact
at the single fixed point used.
Example
OffsetXY(Rect, 92, -22, mi)
SphericalOffsetXY() Function
Purpose
Returns a copy of the input object offset by the specified X and Y offset values using a spherical
DistanceType.
Syntax
SphericalOffsetXY(object, xoffset, yoffset, units)
where:
object is the object being offset,
xoffset and yoffset are the distance along the x and y axes to offset the object, and
units is a string representing the unit in which to measure distance.
Return Value
Object
Description
This function produces a new object that is a copy of the input object offset by xoffset along the Xaxis and yoffset along the Y-axis. The unit string, similar to that used for ObjectLen or Perimeter, is
the unit for the distance values. The DistanceType used is Spherical. If the Coordinate System of
the input object is NonEarth, an error will occur, since Spherical DistanceTypes are not valid for
NonEarth. This is signified by returning a NULL object. The coordinate system used is the
coordinate system of the input object.
There are some considerations for Spherical measurements that do not hold for Cartesian
measurements. If you move an object that is in Lat/Long, the shape of the object remains the
same, but the area of the object will change. This is because you are picking one offset delta in
degrees, and the actual measured distance for a degree is different at different locations.
For the Offset functions, the actual offset delta is calculated at some fixed point on the object (e.g.,
the center of the bounding box), and then that value is converted from the input units into the
Coordinate System's units. If the coordinate system is Lat/Long, the conversion to degrees uses
595
MI_UG.PDF
the fixed point. The actual converted distance measurement could vary at different locations on the
object. The distance from the input object and the new offset object is only guaranteed to be exact
at the single fixed point used.
Example
SphericalOffsetXY(Rect, 92, -22, mi)
CartesianOffsetXY() Function
Purpose
Returns a copy of the input object offset by the specified X and Y offset values using a cartesian
DistanceType.
Syntax
CartesianOffsetXY(object, xoffset, yoffset, units)
where:
object is the object being offset,
xoffset and yoffset are the distance along the x and y axes to offset the object, and
units is a string representing the unit in which to measure distance.
Return Value
Object
Description
This function produces a new object that is a copy of the input object offset by xoffset along the Xaxis and yoffset along the Y-axis. The unit string, similar to that used for ObjectLen or Perimeter, is
the unit for the distance values. The DistanceType used is Cartesian. If the Coordinate System of
the input object is Lat/Long, an error will occur, since Cartesian DistanceTypes are not valid for
Lat/Long. This is signified by returning a NULL object. The coordinate system used is the
coordinate system of the input object.
There are some considerations for Spherical measurements that do not hold for Cartesian
measurements. If you move an object that is in Lat/Long, the shape of the object remains the
same, but the area of the object will change. This is because you are picking one offset delta in
degrees, and the actual measured distance for a degree is different at different locations.
For the Offset functions, the actual offset delta is calculated at some fixed point on the object (e.g.,
the center of the bounding box), and then that value is converted from the input units into the
Coordinate System's units. If the coordinate system is Lat/Long, the conversion to degrees uses
596
MI_UG.PDF
the fixed point. The actual converted distance measurement could vary at different locations on the
object. The distance from the input object and the new offset object is only guaranteed to be exact
at the single fixed point used.
Example
CartesianOffsetXY(Rect, 92, -22, mi)
LayerInfo( ) function
We have added a new Layer_Info_Type to accommodate the new WMS functionality.
Purpose
Returns information about a layer in a Map window.
Syntax
LayerInfo( map_window_id , layer_number , attribute )
map_window_id is a Map window identifier
layer_number is the number of a layer in the current Map window (e.g., 1 for the top layer); to
determine the number of layers in a Map window, call MapperInfo( )
attribute is a code indicating the type of information to return; see table in the MapBasic 7.0
documentation
Note:
For information on the Return Value, the Restrictions, Attribute Codes, Description and the
Example, see the MapBasic 7.0 documentation.
attribute code
LAYER_INFO_TYPE
597
MI_UG.PDF
Items bolded in the syntax section of this part represent the enhanced part of the
statement
Purpose
Builds a MapInfo Professional table from a spreadsheet, database, text file, raster, or grid image.
Syntax
Register Table source_file
{Type NATIVE |
Type DBF [Charset char_set] |
Type ASCII [Delimiter delim_char] [Titles] [CharSet char_set] |
Type WKS [Titles] [Range range_name] |
Type WMS [Coordsys coordsys_string [CharSet char_set]
[Into destination_file]
Type XLS [Titles] [Range range_name] |
Type Access Table table_name [Password pwd] [CharSet char_set]
Type ODBC Connection {Handle ConnectionNumber | ConnectionString}
Toolkit toolkitname Cache {On | OFF}
Type "GRID" |
Type "RASTER" [ControlPoints (MapX1, MapY1) (RasterX1, RasterY1),
(MapX2, MapY2) (RasterX2, RasterY2),
(MapX3, MapY3) (RasterX3, RasterY3) [, ...]] [CoordSys ... ]
Type "SHAPEFILE" [Charset char_set] CoordSys...
[PersistentCache {On | Off}]
[Symbol...] [Linestyle Pen(...)] [Regionstyle Pen(...)
Brush(...)] [Interactive] [Into destination_file]
source_file is a string that specifies the name of an existing database, spreadsheet, text file, raster,
or grid image. If you are registering an Access table, this argument must identify a valid Access
database.
char_set is the name of a character set; see the separate CharSet discussion.
delim_char specifies the character used as a column delimiter. If the file uses Tab as the delimiter,
specify 9. If the file uses commas, specify 44.
range_name is a string indicating a named range (e.g., MyTable) or a cell range (e.g., an Excel
range can be specified as Sheet1!R1C1:R9C6 or as Sheet1!A1:F9).
table_name is a string that identifies an Access table.
pwd is the database-level password for the database, to be specified when database security is
turned on.
ConnectionNumber is an integer value that identifies an existing connection to an ODBC
database.
ConnectionString is a string used to connect to a database server. See the Server Connect
function.
toolkitname is ODBC or ORAINET.
598
MI_UG.PDF
Description
Before you can use a non-native file (e.g., a dBASE file) in MapInfo, you must register the file. The
Register Table statement tells MI Pro to examine a non-native file (e.g., filename.DBF) and build a
corresponding table file (filename.TAB). Once the Register Table operation has built a table file,
you can access the file as an MapInfo table.
The Register Table statement does not copy or alter the original data file. Instead, it scans the
data, determines the datatypes of the columns, and creates a separate table file. The table is not
opened automatically. To open the table, use an Open Table statement.
Note:
Each data file need only be registered once. Once the Register Table operation has built
the appropriate table file, subsequent MI Pro sessions simply Open the table, rather than
repeat the Register Table operation.
The Type clause specifies where the file came from originally. This consists of the keyword Type,
followed by one of the following character constants: NATIVE, DBF, ASCII, WKS, XLS, Raster,
Access, or Grid. The other information is necessary for preparing certain types of tables. If the type
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
599
MI_UG.PDF
of file being registered is a grid, the coordsys string will be read from the grid file and a MapInfo
.TAB file will be created. If a raster file is being registered, the .TAB file that is generated will be the
same as if the user selected Display when opening a raster image from the Open dialog box.
If the type of file being registered is a grid, the coordsys string will be read from the grid file and a
MapInfo .TAB file will be created. If a raster file is being registered, the .TAB file that is generated
depends upon if georegistration information can be found in the image file or associated World file.
The CharSet clause specifies a character set. The char_set parameter should be a string such as
MacRoman or WindowsLatin1. If you omit the CharSet clause, MI Pro uses the default
character set for the hardware platform that is in use at run-time. See the CharSet clause
discussion for more information.
The Delimiter clause is followed by a string containing the delimiter character. The default
delimiter is a TAB. The Titles clause indicates that the row before the range of data in the
worksheet should be used as column titles. The Range clause allows the specification of a named
range to use. The Into clause is used to override the table name or location of the .TAB file. By
default, it will be named the same as the data file, and stored in the same directory. However,
when reading a read-only device such as a CD-ROM, you need to store the .TAB file on a volume
that is not read-only.
Do not alter the counter column in any way. It must be exclusively maintained
automatically by MapInfo.
Access datatypes are translated into the closest MapInfo datatypes. Special Access datatypes,
such as OLE objects and binary fields, are not editable in MapInfo Professional.
600
MI_UG.PDF
With MS ACCESS if the key is character, it will not display rows where the key value is
less than the full column width e.g., if the key is char(5) the value 'aaaa' will look like a
deleted row.
For Live Access, the ReadOnly checkbox on the save table dialogue will be grayed out.
Changes made by another user are not visible until a browser is scrolled or somehow
refreshed. Inserts by another user are not seen until either: 1). An MBR search returns the
row or 2). PACK command is issued In addition if cache is on another users updates may
not appear until the cache is invalidated by a pan or zooming out.
There will be a problem if a client side join (through SQL Select menu item or MapBasic) is
done against 2 or more SPATIALWARE tables that are stored in different coordinate
systems. This is not an efficient thing to do (it is better to do the join in the SQL statement
that defines the table) but it is a problem in the current build.
Oracle 7 tables that are indexed on a decimal field larger than 8 bytes will cause MI Pro to
crash when editing.
If the Cache OFF statement is before the connection string an error will be generated at
compile time.
Registering Shapefiles
When you register shapefiles, they can be opened in MapInfo Professional with read-only access.
Since a shapefile itself does not contain projection information, you must specify a CoordSys
clause. It is also possible to set styles that will be used when shapefile objects are displayed in
MapInfo Professional. Projection and style information is stored as metadata in the TAB file.
Examples
Example 1
Register Table c:\mapinfo\data\rpt23.dbf
Type DBF
Into Report23
Open Table c:\mapinfo\data\Report23
Example 2
Open Table C:\Data\CANADA\Canada.tab Interactive
Map From Canada
set map redraw off
Set Map Zoom 1000 Units mi
set map redraw on
Register Table odbc_cancaps
TYPE ODBC
TABLE Select * From informix.can_caps
CONNECTION
DSN=ius_adak;UID=informix;PWD=informix;DATABASE=sw;HOST=adak;
SERVER=adak_tli;SERVICE=sqlexec;PROTOCOL=onsoctcp;
Into
D:\MI\odbc_cancaps.TAB
Open Table D:\MI\odbc_cancaps.TAB Interactive
Map From odbc_cancaps
601
MI_UG.PDF
Example 3
Registering a completely georeferenced raster image (the raster handler can return at least 3
control points and a projection)
Register Table "GeoRef.tif" type "raster" into "GeoRef.TAB"
Example 4
Registering a raster image that has an associated World file containing control point information,
but no projection.
Register Table "RasterWithWorld.tif" type "raster" coordsys earth projection
9, 62, "m", -96, 23, 29.5, 45.5, 0, 0 into "RasterWithWorld.TAB"
Example 5
Registering a raster image that has no control point or projection information.
Register Table "NoRegistration.BMP" type "raster" controlpoints (1000,2000)
(1,2), (2000,3000) (2, 3), (5000,6000) (5,6) coordsys earth projection 9, 62,
"m", -96, 23, 29.5, 45.5, 0, 0 into "NoRegistration.tab"
Example 6
The following example registers a shapefile.
Register Table "C:\Shapefiles\CNTYLN.SHP" TYPE SHAPEFILE Charset
"WindowsLatin1" CoordSys Earth Projection 1, 33 PersistentCache Off linestyle
Pen (2,26,16711935) Into "C:\Temp\CNTYLN.TAB"
Open Table "C:\Temp\CNTYLN.TAB" Interactive
Map From CNTYLN
See Also
Open Table, Create Table
Items bolded in the syntax section of this part represent the enhanced part of the
statement.
Purpose
This function identifies the spatial information for a server table. It does not alter the table to add
the spatial columns.
A new object type clause in the Server Create Map statement allows you to specify objects as
regions, lines, or all objects. If no object type clause is specified, the default is points.
602
MI_UG.PDF
Syntax
Server ConnectionNumber Create Map
For DBMSTableName
Type { see Maptypes below }
CoordSys ...
[MapBounds {Data|Coordsys|Values (x1, y1) (x2, y2)} ]
[ObjectType { Point | Line | Region | ALL } ]
[Symbol (...) ]
[Linestyle Pen(...) ]
[Regionstyle Pen(...) Brush(...) ]
[StyleType style_number (0 or 1) [ Column column_name ]
CoordSys ... This clause specifies the coordinate system and projection to be used. For Oracle
Spatial, this is not required because it is determined from the Oracle Server metadata.
ObjectType clause This clause specifies the type of object in the table, defaults to points.
Symbol (...) clause This clause specifies the symbol style to be used for a point object type
Linestyle Pen (...) clause This clause specifies the line style to be used for a line object type
Regionstyle Pen (...) Brush(...) clause This clause specifies the line style and fill style to be used
for a region object type
StyleType sets per row symbology. The Column token and argument need to be present when
StyleType is set to 1 (one). When style_number is set to zero, the Column token is ignored and the
rendition columns in the MAPCATALOG are cleared.
Description
The Server Create Map statement makes a table linked to a remote database mappable. For a
SpatialWare or Oracle Spatial table, you can make the table mappable for points, lines, or regions.
For all other tables, you can make a table mappable for points only. Any MapInfo table may be
displayed in a Browser, but only a mappable table may have graphical objects attached. Only
mappable tables can display in Map windows.
603
MI_UG.PDF
Note:
If Oracle9i is the server and the coordinate system is specified Lat/Long without specifying
the datum, the default datum World Geodetic System 1984(WGS 84) is assigned as the
coordinate system. This behavior is consistent with the Server Create Table statement and
EasyLoader.
The MapBounds option allows you to specify what to store for the entire/default table view bounds
in the MapCatalog. The default is Data which calculates the bounds of all the data in the layer. (For
programs compiled before 7.5, the default will be CoordSys.)
The Coordsys MapBounds option stores the coordinate system bounds. This is not recommended
as it may cause the entire layer.default view to appear empty if the coordsys bounds are
significantly greater than the bounds of the actual data. Most users are zoomed out too far to see
their data using this option.
The Values option lets you specify your own bounds values for the MapCatalog.
TableInfo( ) function
Purpose
Returns information about an open table.
Syntax
TableInfo( table_id , attribute )
table_id is a String representing a table name, a positive Integer table number, or 0 (zero)
attribute is an Integer code indicating which aspect of the table to return
Note:
For information on the Return Values, the Restrictions, Attribute Codes, Descriptions and
the Examples, see the MapBasic 7.0 documentation.
attribute code
TableInfo( ) returns
TAB_INFO_TYPE
604
MI_UG.PDF
605
MI_UG.PDF
Glossary of Terms
GL
Alias
The name assigned to an expression or a column when you are working in the Select Columns
field in the SQL Select dialog box. This name appears as the column title for that expression or
column in a Browser.
Application
A computer program used for a particular kind of work, such as word processing. Application is
often interchangeable with the word program.
ASCII
The acronym for American Standard Code for Information Interchange. ASCII is a standard code
used in most microcomputers, computer terminals, and printers for representing characters as
numbers. It not only includes printable characters, but also control codes to indicate carriage
return, backspace, and so forth.
Axis
Used in a graph, these are graduated lines bordering the plot area of a graph. Location
coordinates are measured relative to the axes. By convention the X-axis is horizontal, the Y-axis is
vertical.
Base Map
Usually the dominant or underlying layer in a given map. (These are typically the data layers that
MapInfo offers as ready products.) Users usually layer their own data on top of these base maps
or use these base maps to geocode or to make new layers. Examples are joining industry data to
postal code boundaries for analysis and then combining arrangements of the postal codes into
new territory layers.
Base Table
A permanent table, which is part of a map, as opposed to a query table, which is temporary. You
can edit the contents of base tables, and you can change their structure (by editing, deleting,
reordering columns and adding or deleting graphic objects). See Query Table on page 616.
Bitmap
A screen image displayed as an array of dots or bits. Software usually generates either bit-mapped
(raster) or object-oriented (vectored) files. MapInfo can work with both.
Boundary Region
In GIS a boundary is a region on a map enclosed by a border. Cambria County, Manitoba, and
Argentina would all be represented as boundaries on a map. Note that a single boundary could
encompass several polygons. Thus, Indonesia is a single boundary but consists of many
polygons.
Browser
A window for viewing a table (or database, spreadsheet or text file) in tabular form.
Buffer
A type of proximity analysis where areas or zones of a given distance are generated around
selected map objects. Buffers are user-defined or can be generated for a set of objects based on
those objects attribute values. The resulting buffer zones form region objects representing the
area that is within the specified buffer distance from the object.
Cadastral
A map set used to graphically define the cadastre or land ownership in a given area. A tax map is
an example of a cadastral map. The land registration, assessment roles, and tax maps comprise
the cadastre.
Cartesian
A coordinate system using an x,y scale not tied to any real-world system. Most CAD drawing
uses this method of registering objects (e.g., a drawing of a ball-bearing assembly, floor plans). If a
drawing uses Cartesian coordinates, one corner of the drawing probably has coordinates 0, 0.
Cartesian Coordinates
The conventional representation of geometric objects by x and y values on a plane.
Cartographic Legend
A MapInfo legend window that enables you to display cartographic information for any map layer in
the Map window.
Cartography
The art and science of making maps. In GIS it is also the graphic presentation and visual
interpretation of data.
607
MI_UG.PDF
Centroid
Usually the center of a map object. For most map objects, the centroid is located at the middle of
the object (the location halfway between the northern and southern extents and halfway between
the eastern and western extents of the object). In some cases, the centroid is not at the middle
point because there is a restriction that the centroid must be located on the object itself. Thus, in
the case of a crescent-shaped region object, the middle point of the object may actually lie outside
the limits of the region; however, the centroid is always within the limits of the region.
In MapInfo, the centroid represents the location used for automatic labeling, geocoding, and
placement of thematic pie and bar charts. If you edit a map in Reshape mode, you can reposition
region centroids by dragging them.
Check Box
A small square box that appears in a dialog box. You can click in the check box or on the text in
order to select the option. Check boxes are generally present when multiple options can be
selected at one time.
Command
A word or phrase, usually found in a menu, that displays a dialog box and/or carries out an action.
Conflict Resolution
When conflicts exist between the data residing on a remote database and new data that you want
to upload to the remote database via a MapInfo linked table. The conflict resolution process is
invoked whenever an attempt to save the linked table detects a conflict in an update.
Control Points
The points on a raster image whose coordinates serve as a reference for associating earth
coordinates with any location on the image. See Registration on page 616.
Coordinate
An x,y location in a Cartesian coordinate system, or a Latitude, Longitude location in an earth
coordinate system. Coordinates represent locations on a map relative to other locations. Earth
coordinate systems may use the equator and the Greenwich prime meridian as fixed reference
points. Plane coordinate systems describe a two-dimensional x,y location in terms of distance from
a fixed reference and are usually in the first quadrant so that all coordinates are positive numbers.
Coordinate System
A coordinate system is used to create a numerical representation of geometric objects. Each point
in a geometric object is represented by a pair of numbers. Those numbers are the coordinates for
that point. In cartography, coordinate systems are closely related to projections. You create a
coordinate system by supplying specific values for the parameters of a projection. See Cartesian
Coordinates on page 607, Projection on page 615, and Spherical Coordinates on page 617.
608
MI_UG.PDF
Cosmetic Layer
The topmost layer of a Map window. Objects may be placed in this layer such as map titles and
graphic objects. It is always displayed, and all objects placed in the Cosmetic Layer must be saved
to a new or existing layer.
Data Aggregation
A process that occurs when combining separate map objects into a single object. MapInfo
calculates what the column values for the new object should be, based on sums or averages of the
values of the original objects.
Data Disaggregation
A process that occurs when splitting a map object(s) into smaller parts where MapInfo splits the
data associated with the map object(s) into smaller parts to match the new map objects.
Data Sources
An ODBC data source is an SQL database and the information you need to access that database.
For example, an SQL Server data source is the SQL Server database, the server on which it
resides, and the network used to access that server.
Database
Any organized collection of data. The term is often used to refer to a single file or table of
information in MapInfo.
Decimal Degree
The decimal representation of fractions of degrees. Many paper maps express coordinates in
degrees, minutes, seconds (e.g., 40_30i10I), where minutes and seconds are fractions of
degrees. 30 minutes equal half a degree, and 30 seconds equal half a minute. MapInfo, however,
expresses coordinates in decimal degrees (e.g., 72.558 degrees), where fractions of degrees are
expressed as decimals. Thus, the longitude: 40 degrees, 30 minutes, would be expressed in
MapInfo as 40.5 degrees.
Default
The value or option used in the absence of explicit specification. Often the original setting or value
for a variable.
Derived Column
In a table created through the SQL Select, a derived column is one created by using an
expression. The column is derived in the sense that it isnt just a copy of the data in one of the
tables being accessed by the SQL Select command.
MapInfo Professional 7.5
October 2003 MapInfo Corporation. All rights reserved.
609
MI_UG.PDF
Derived Field
The same as a derived column.
Deselect
The process of undoing a selection. The object or area you deselect will not be affected by
subsequent commands. Performed by selecting another area, by clicking in a blank area, or by
executing the Unselect All command.
Districts Browser
A special browser that displays when redistricting. It differs from other Browser windows in the
following respects: one row can only be selected at one time, one row is always selected, and the
selected row becomes the target district into which you can add other objects.
Drawing Toolbar
A MapInfo window containing twelve buttons that access tools for drawing and modifying objects
on your map or layout.
Edit Handle
The small boxes that appear at the four corners of the minimum bounding rectangle of an object in
an editable layer of a Map window or in a Layout window.
Export
The process whereby a program saves information in a file to be used by another program.
Expression
A statement containing two parts: 1) column names and constants (i.e., specific data values), and
2) functions (e.g., area) and operators (e.g., +, -, >), in order to extract or derive information from a
database. Expressions are used in Select, SQL Select, Update Column, Create Thematic Map,
and Label with Column.
610
MI_UG.PDF
Field
A field in a table corresponds to a column in a Browser. A field contains a specific type of
information about an object, such as, name, abbreviation, land area, price, population, and so
forth. The record for each object consists of that objects values for each of the fields in the
database.
File
A collection of information that has been given a name and is stored on some electronic medium
such as a tape or disk. A file can be a document or an application.
Fill Pattern
The design and color used to fill a closed object.
Font
A character set based on a particular style used for text characters.
Generalization
The process of simplifying a data set to a size that can be easily manipulated and represented. For
example, a river may have many twists and turns; however, if a map covers a very large area, the
river may be represented as a straight line. Similarly, in a map of a very large area, a city might be
represented as a point marker.
Geocode
The process of assigning X and Y coordinates to records in a table or database so that the records
can be displayed as objects on a map.
Graph window
A window that displays numerical data in the form of a graph.
Graticule
A grid of horizontal (latitude) and vertical (longitude) lines displayed on an earth map, spaced at a
regular distance (e.g., every five degrees, every fifteen degrees). Used to establish a frame of
reference.
611
MI_UG.PDF
Heads-Up Digitizing
A method of digitizing where the user creates vector objects by tracing over a raster image
displayed on the screen. Thus, heads-up digitizing does not require a digitizing tablet.
Hot Views
MapInfo technology that automatically updates all the windows you have open for a particular table
when you make a change in any one of the windows. For example, if an item is selected in a Map
window, it will be selected in all other Map windows and Browsers you have open for that table.
Import
The process whereby a program loads a file that is the output of another program.
Join
The process of creating a relational link between two tables (databases).
Jump
Text graphics or parts of graphics that provide links to other Help topics or more information on the
current Help topic.
Latitude
The horizontal lines on a map that increase from 0 degrees at the Equator to 90 degrees at both
the North (+90.0 degrees) and South (-90.0 degrees) poles. Used to describe the North-South
position of a point as measured usually in degrees or decimal degrees above or below the equator.
Layer
A layer is a basic building block of MapInfo maps and consists of a table with graphic and text
settings like style override, labeling, and zoom layering. Maps are made of one or more
superimposed layers (e.g., a layer of street data superimposed over a layer of county or postal
code boundaries) which you can design to convey geographical or statistical information. Typically,
each map layer corresponds to one open table. Cosmetic Layers contain map objects that
represent temporary map annotations (e.g., text objects). Cosmetic Layers contain map objects
that represent temporary map annotations (e.g., labels). See Cosmetic Layer on page 609 and
Table on page 618.
612
MI_UG.PDF
Layout Window
A window where you arrange and annotate the contents of one or several windows for printing.
Legend Window
A window that displays the key to the different colors, shapes, or fill patterns used on the map. A
legend can also include a scale. See Cartographic Legend on page 607 and Theme Legend on
page 619.
Linked Table
A linked table is a special kind of MapInfo table that is downloaded from a remote database and
retains connections to its remote database table. You can perform most operations on a linked
table that you do for a regular MapInfo table.
Longitude
The vertical lines on a map, running from the North to South poles, used to describe the east-west
position of a point. The position is reported as the number of degrees east (to -180.0 degrees) or
west (to +180.0 degrees) of the prime meridian (0 degrees). Lines of longitude are farthest apart at
the Equator and intersect at both poles, and therefore, are not parallel.
Longitude/Latitude
MapInfos default coordinate system for representing geographic objects in a map.
Main Toolbar
A window containing buttons for choosing tools, accessing dialog boxes, and showing or hiding
windows.
Map Scale
A statement of a measure of the map and the equivalent measure on the earth. Often expressed
as a representative ratio of distance, such as 1:10,000. This means that one unit of distance on the
map (e.g., one inch) represents 10,000 of the same units of distance on the earth.
The term scale must be used carefully. Technically, a map of a single city block is largescale (e.g.,
1:12,000), while a map of an entire country is smallscale (e.g., 1:1,000,000). A 1:1,000,000 map
is considered small-scale because of the small numeric value obtained when you divide 1 by
1,000,000.
Map Segment
In a street map, a segment is a single section of the street. In urban maps, segments are generally
one block long. Address ranges are stored at the segment level.
613
MI_UG.PDF
MapBasic
The programming language used to customize and/or automate MapInfo. To create MapBasic
applications, you need the MapBasic compiler, which is a separate product. However, you do not
need the MapBasic compiler to run a compiled MapBasic application.
Map window
A window that allows you to view a table as a map.
Meridian
A line or a portion of a line running from the North to the South pole. A longitudinal line.
Native Projection
The projection in which a maps coordinate points are stored. MapInfo allows you to display maps
in other projections, but not as fast as displaying maps in their native projection.
Node
An end-point of a line object, or an end-point of a line segment which is part of a polyline or region
object.
Non-Earth Map
A map in which objects are not explicitly referenced to locations on the earths surface. Floor plans
are typical examples.
ODBC Drivers
An ODBC driver is a dynamic-link library (.DLL) file that MapInfo uses to connect to an SQL
database. Each type of SQL database requires a different ODBC driver.
ODBC Table
An ODBC table is a table residing in a remote SQL database.
Outer Join
A type of multi-table join where all the records in the specified tables are included in the result
table, even records that do not match the join criteria. MapInfo does not perform outer joins.
Pack
The process of compressing MapInfo tables so that they use less disk space.
614
MI_UG.PDF
Pixel
The acronym for picture element. The smallest dot that can be displayed on a computer screen. If
a screen is described as having a resolution of 1,024 x 768, the screen shows 1,024 pixels from
right to left, and 768 pixels from top to bottom. Each character, object, or line on the screen is
composed of numerous pixels.
Point Size
A unit of measurement equal to 1/72 of an inch. Used to measure character size.
Pointer
An arrow-shaped cursor on the screen that can be manipulated by a mouse.
Polygon Overlay
A spatial operation that merges overlapping polygons from two layers to analyze those intersected
areas or to create a third layer of new polygons.
Projection
A mathematical model that transforms the locations of features on the earths surface to locations
on a two-dimensional surface, such as a paper map. Since a map is an attempt to represent a
spherical object (the earth) on a flat surface, all projections have some degree of distortion. A map
projection can preserve area, distance, shape or direction but only a globe can preserve all of
these attributes. Some projections (e.g., Mercator) produce maps well suited for navigation. Other
projections (e.g., equal-area projections, such as Lambert) produce maps well suited for visual
analysis.
615
MI_UG.PDF
Query Table
A temporary table produced as the result of a Select, SQL Query, or by choosing objects in a Map
window or records in a Browser and mapping, graphing, or browsing that selection. You cannot
make edits and structural changes on query tables, but you can edit a selected set of rows in your
source table through a query table. See Selection on page 617 and Base Table on page 606.
Ranged Map
A type of thematic map that displays data according to ranges set by the user. The ranges are
shaded using colors or patterns.
Raster Image
A type of computerized picture consisting of row after row of tiny dots (pixels). Raster images are
sometimes known as bitmaps. Aerial photographs and satellite imagery are common types of
raster data found in GIS. A computer image can be represented in raster format or in vector
format. See Scanning on page 616 and Vector Image on page 619.
Record
All the information about one object in a database or table. A record in a table corresponds to a
row in a Browser.
Redistricting
The process of assigning map objects to groups. As you assign map objects, MapInfo
automatically calculates totals for each group and displays the totals in a special Districts Browser.
This process is sometimes known as load-balancing.
Registration
Usually the first stage of the digitizing process or when opening a raster image for the first time in
MapInfo. Before you can digitize a paper map or work with a raster image, you must point to
several control points across the map, and enter their coordinates (e.g., longitude, latitude). After
you have registered the map, MapInfo can associate a longitude, latitude position with any point
on the map surface; this allows MapInfo to perform area and distance calculations, and overlay
multiple map layers in a single map. CAD systems as well as GIS systems utilize this process. See
Control Points on page 608.
Scale Bar
A map element that graphically depicts the map scale (e.g., 0 5 10 km).
Scanning
The process of inputting data into a raster format using an optical device called a scanner.
616
MI_UG.PDF
Scroll Bar
Bars along the right and bottom sides of each window that allow you to scroll the window view.
Clicking on the shaded area moves one window screen at a time.
Selection
A data item or set of data items chosen for inspection and/or analysis. Regardless of the kinds of
windows on the screen, selections can be made using the Select and SQL Select Query
commands in MapInfos Query menu. In Browsers and Map windows, items can be placed in the
selection set by clicking on them individually. Map windows also have special tools for selecting
multiple items on a spatial basis.
Snap To Nodes
A feature that helps in drawing, moving and positioning map objects. In Snap mode (S key) the
cursor snaps to a node of a map object when it comes within a certain distance.
Spatial Analysis
An operation that examines data with the intent to extract or create new data that fulfills some
required condition or conditions. It includes such GIS functions as polygon overlay or buffer
generation and the concepts of contains, intersects, within or adjacent.
Spherical Coordinates
Latitude and longitude values that represent objects on the surface of the globe.
SQL Query
The selection of information from a database according to the textual attributes and object
relationships of the items. In MapInfo, queries are created with the SQL Select and Select
commands or with MapBasic commands in the MapBasic window.
Standard Deviation
A measurement of the variation of a set of data values around the mean.
Standard Toolbar
A window containing buttons for quick access to the most commonly used menu commands such
as Cut, Copy, and Paste.
Statistics Window
A window containing the sum and average of all numeric fields for the currently selected objects/
records. The number of records selected is also displayed. As the selection changes, the data is
re-tallied, and the statistics window updates automatically.
617
MI_UG.PDF
StatusBar
A bar at the bottom of the screen that displays messages that help in using MapInfo. The
StatusBar also displays messages that pertain to the active window. In a Map window, the
StatusBar indicates what layer is editable, the zoom display of the map, and the status of Snap
and Digitizing modes. In a Browser window, the StatusBar indicates the number of records
currently displaying and the total number of records. In a Layout window, the StatusBar indicates
the zoom display as a percentage of the actual size of the map.
Subselect
A select statement that is placed inside the Where Condition field of the SQL Select dialog box.
MapInfo first evaluates the subselect and then uses the results of the subselect to evaluate the
main SQL Select statement.
Table
A table is made up of data in rows and columns. Each row contains information about a particular
geographic feature, event, etc. Each column contains a particular kind of information about the
items in the table. You can display tables with graphic information stored in them as maps. See
Base Table on page 606 and Query Table on page 616. See also Layer on page 612.
Table Row
In a table, a row contains all the information for a single item. It corresponds to a record in a table.
Target District
The district that is selected in a Districts Browser to be affected by subsequent redistricting
operations.
Text Cursor
A blinking vertical bar that shows the position where text can be edited, inserted, or deleted.
Thematic Layer
A layer containing the thematic settings for a map layer. Thematic layers are drawn directly over
the map layer on which the thematic settings are based. They are also drawn in a particular order,
depending on the number of thematic layers you have and the type of thematic map objects you
are creating.
618
MI_UG.PDF
Thematic Map
A type of map that uses a variety of graphic styles (e.g., colors or fill patterns) to graphically display
information about the maps underlying data. Thus, a thematic map of sales territories might show
one region in deep red (to indicate the region has a large number of customers), while showing
another region in very pale red (to indicate the region has relatively few customers).
Thematic Shading
Map objects points, lines, regions that have been shaded, using a pattern and/or color,
according to some point of information about the object, or theme (population, size, annual rainfall,
date, and so forth).
Thematic Variable
The data values displayed on a thematic map. A thematic variable can be a field or expression.
Theme Legend
MapInfos original style legend that allows you to display legends for thematic maps and graphs.
MapInfo automatically creates a theme legend window for a thematic map. Customize its display
through the Modify Thematic Map dialog box. See Cartographic Legend on page 607.
Toolbars
MapInfo windows that contain a variety of buttons used to access tools and commands for
mapping and drawing. There are four Toolbars: the Standard Toolbar provides tools for commonly
performed tasks, the Main Toolbar provides primary tools (e.g., Zoom-in, Select, Info, etc.) and the
Drawing Toolbar contains all drawing tools. The Tools Toolbar contains the Run MapBasic
Program and the Show/Hide MapBasic Window buttons. All four Toolbars may be reshaped and
hidden.
Transformation
The process of converting coverage coordinates from one coordinate system to another through
programmatic translation. The transformation of CAD generated Cartesian coordinates into earth
coordinates is an example.
Ungeocode
The process of removing X and Y coordinates from records in a table or database. Can also
describe a table that has not been geocoded, e.g., an ungeocoded table.
Vector Image
A coordinate-based data structure commonly used to represent map features. Each object is
represented as a list of sequential x,y coordinates. Attributes may be associated with the objects.
A computer image can be represented in vector format or in raster format. See Raster Image on
page 616.
619
MI_UG.PDF
Weighted Average
An average that gives more weight to one value over another when averaging. A method of
averaging that uses a separate column of information to define the relative importance of each
data value. The formula for a weighted average is:
SUM(DATA*WEIGHT)/SUM(WEIGHT)
where DATA is the column of data values and WEIGHT is the column of weights. If WEIGHT
contains all 1s (or other non-zero values) this reduces to a simple average.
Window
In MapInfo, Map windows, Browser windows, Graph windows and Layout windows are the major
types of windows. They display the data stored in tables. The Toolbars, map legends, and the Info
tool window are other types of windows.
Workspace
A saved configuration of open MapInfo tables and windows.
Zoom Layering
A setting that determines the range (e.g., 03 miles, 25 miles, etc.) at which a layer is visible in a
Map window.
620
MI_UG.PDF
Index
Numerics
3DMaps
hardware accelleration 36
print options 150
A
Abs function 420421
Access tables
creating .TAB files from 105
creating in MapInfo Professional 106109
limitations with MapInfo Professional 112
opening 67
saving as another Access table 112
saving MapInfo tables as 109112
accessing remote databases
supported databases 20
Add Nodes tool button 211
adding
layers to Map windows 78
nodes 211
ODBC drivers 25
open windows to layouts 347348
records in Browser windows 174
rows to tables 166
temporary columns to tables 158
Address Matching preferences 30, 40
address ranges
matching to street number 131
addresses
geocoding precision 126
ADRG format (*.GEN) files
raster format 369
advanced options and settings
exporting files 100101
printing 151152
aggregate functions
with Update Column command 170173
aggregating data
computing total population and area by continent 262
264
SQL Select command 259260
with set target model 312313
aliases
defined 481
for columns 255256
aligning objects in a Layout window 350, 352
B
bar chart maps 287, 481
base maps
defined 481
base tables
defined 482
BIL files
raster format 369
bitmaps, defined 482
BMP files
export format 99
raster format 369
borders
exported files 101
legend frames 360
printed files 151
bound objects
spatial queries 191
boundaries
boundary region definition 482
geocoding 127, 132
Boundary Select tool button 241
Bring to Front command 344
Browser windows
adding records in 174
defined 482
displaying tables in 173174
opening tables in 72
print options 150
seamless tables 93
viewing graphic information 164166
buffer regions
concentric ring 308309
convex hull 310
creating 300303
defined 482
methods in creating 308
radius 307
saving as new layer 303304
saving as new table 304306
segments per circle 307
width distance 307
C
cadastral
defined 482
CADRG format files
raster format 369
callout lines 335
cancelling selections 242
Cartesian calculations
as default setting 36
buffer regions 307
projections 388
Cartesian coordinates, defined 482
cartographic legends
attributes and metadata 360361
borders 360
choosing layers 358
creating 295
definition 294295, 357, 483
frame borders 360
frame defaults 359
frame titles 359
frames 360
in layouts 350
joined tables 363
styles 361362
symbol text 360
window properties 359
cartography
defined 483
centroids
defined 483
displaying 82
selecting using Snap mode 229
CentroidX function 422
CentroidY function 422
character strings 408
Chr$ function 423
CIB format files
raster format 369
Clear Cosmetic Layer command 84
clipping a map
methods 35
cloning a map view 357
closing tables 97
collection objects
legend styles 361
color
custom symbols 219
raster image options 369370, 377379
column aliases
creating 255256
columns
adding temporary columns 158
combining objects with 319
creating expressions 245
deriving 255
finding duplicate values in 270271
grouping by with SQL Select 261
labeling with 331
placing graphic information in 164166
spatial index 182
combining objects
creating territories 318321
in districts 404
Set Target 313
comparison operators 410412
concentric ring buffers 308309
conflict resolution 203, 205206, 483
Conic projections 462
contrast and brightness 378
control points
defined 483
raster image registration 373375
convex hull buffers 310
Coordinate systems
origin point 462
projections ??451
coordinate systems
creating points 388
defined 385, 484
definition 386
coordinates
converting 390
defined 484
Degree Converter tool 141142
displaying 37
MapInfo Professional 7.5
622
MIPro_UG.pdf
coordinates (continued)
geocoding 121
raster image control points 373375
copying objects to clipboard 32
Cos function 423
Cosmetic layer 8385, 484
cosmetic objects 84
creating .TAB files from other data 104109, 113115
creating a MapInfo_MapCatalog 182, 184185
creating a table
procedure 167168
using subset of a file 248
creating expressions 245
constructing 407
entering values 408
functions 420437
numeric clauses 416
numerical comparison 410
operator precedence 419420
operators 408416
using Expression dialog 244, 246
creating layouts 347349
creating points
displaying points a map 146
displaying points on a map 145
for intersections 144145
from Excel or Lotus tables 138139
in projections 140
longitude/latitude 139140
placing longitude/latitude coordinates on a map 136137
specifying a coordinate system 388
vs. geocoding 104
creating reports 175
creating seamless map layers 93
creating territories
combining objects 318, 320321
See also redistricting
Crystal Reports
creating reports 175
default open and save directories 42
CurDate function 423
in expressions 424
cursor location 6
custom
ranged map type 283
custom symbols 216220
custom workstation installation 23
D
data aggregation
computing total population and area by continent 262
264
defined 484
SQL Select command 259260
data disaggregation 484
data products
obtaining information 28
data sources
creating 192
defined 484
databases
defined 61, 484
date clauses 417
date comparison 411
dates in expressions 408
datums
list of 452461
Day function 424
dBase files
creating .TAB files from 113
opening 67
DBMS Catalog tool 183
DBMS connections
specifying default 40
DBMS SQL queries
default open and save directories 42
default search paths 51
DBMS tables
conflict resolution 203, 205206
data sources 192
disconnecting from database 207
downloading data to linked table 200
linked tables 193
live remote access 201202
making mappable 185188
MapInfo_MapCatalog 182, 184185
opening 64, 194196, 198200
per-row styles 189190
querying 273274
requirements 178
saving 203, 205206
spatial index columns 182
SQL queries 201
storing and retrieving spatial objects 178
storing coordinate values 179181
symbol styles in mappable tables 190
DBMS toolbar 58
decimal degrees
converting to degrees/minutes/seconds 390
defined 485
displaying coordinates in 37
default
defined 485
Degree Converter tool
converting coordinates 141142
degrees latitude 485
degrees longitude 485
degrees/minutes/seconds
converting to decimal degrees 390
displaying coordinates in 37
deleting
nodes 212
tables 170
derived columns
defined 251, 485
using 255
623
MIPro_UG.pdf
digitizer setup
projections 387
digitizing
digitizer definition 485
raster images 377
tablet 485
Directory preferences
seamless layers 95
specifying 30, 4142
disaggregating data
data disaggregation definition 484
with set target model 312313
Disperse Points tool 142143
dispersion to the right method
dispersing points 143
displaying a map
using different projection 388389
with different projection 391
See also Layer Control command
distance calculations
buffer regions 307
default settings 36
projections 388
Distance function
in expressions 424425
distance units
default settings 36
districts
creating new 400
grouping map objects into 397
reassigning existing 402403
saving new 405
Districts browser
using 399
districts browser
defined 486
documentation
accessing from CD 5
dot density maps
defined 285286, 486
drawing objects on a map
commands 211
custom symbols 216220
styles 212213
symbols 214216
tool buttons 210211
types of shapes 212214
using Ruler window 212
Drawing toolbar 5657, 210211, 486
DXF files
importing 387
E
earth maps
using 393
Earth Science Information Center
contact information 465
EasyLoader
supported DBMS connections 179
ECW 2.0 format handler (*.ECW)
raster format 369
edit handles
defined 486
editable layers
making a layer editable 8586
editing
labels 337
read-only tables 86
table structure 169
editing objects
attributes 226
autotracing 230
commands 211
creating territories by combining 318321
deleting 221
object conversion 231
object offset 222224
positioning and sizing 221222
procedure 221
reshaping 227228
rotating 224225
set target model 311315
smoothing/unsmoothing polylines 230
Snap mode 229
splitting 315317
Ellipse tool button 210
EMF files
export format 99
generating for printing 151
raster format 369
Encapsulated Postscript (EPS) files
with layouts 366
Enhanced Metafile Format (*.EMF) files
raster format 369
Enhanced Metafiles (*.EMF)
export format 99
generating for printing 151
equal count
ranged map type 282
equal dispersion method
dispersing points 143
equal ranges
ranged map type 282
ESRI shapefiles
default open and save directories 42
opening 68
Excel files
creating points from 138
creating TAB files from 105
opening 67
Excel tables
creating points from 139
exiting MapInfo Professional 51
exporting files
advanced options 100101
export definition 486
MapInfo Professional 7.5
624
MIPro_UG.pdf
F
False Eastings
defined 463
False Northings
defined 463
fields
defined 486
file formats
export 99
MapInfo Professional supported 6465, 104105
files
defined 486
exporting 99100
in MapInfo tables 66
opening 67
fill patterns
defined 487
printing 213
region styles dialog 324
scaling for printing 152
transparent 101
fonts
defined 487
Format$ function
in expressions 425428
Frame tool button 348
frame tool button 349
frames
cartographic legend 359360
drawing in layouts 349
in layout windows 348
Layout window 343, 347348, 350
functions
in expressions 420437
G
GEN files
raster format 369
generalization
defined 487
geocoded points
displaying on a map 134, 145146
street inset and offset 130
geocoding
appropriate map detail 122
assigning coordinates to records 121
automatically 124
defined 487
finding exact street matches 127
geographic accuracy 122
interactively 125
making a DBMS table mappable for 188
manually 125
matching address numbers 131
matching street names 131
matching to regions 132
process overview 123
selecting ungeocoded records 134
ungeocoding 135136
vs. creating points 104
geocoding precision 126127
Geographic Information System (GIS)
defined 487
geographic operators 412414
georeferenced raster images 371
Get Info command 226
GIF files
raster format 369
GML files
importing 114115
graduated symbol maps
customizing 284285
defined 284, 487
graph support files
default open and save directories 42
Graph windows
defined 487
opening a table in 73
Graphics Interchange Format (*.GIF) files
raster format 369
graphs
print options 149
printing options 149
graticule
defined 487
grid image files
default open and save directories 42
display settings 43
using 296297
grid layers
Layer Control 90
opening 68
zoom layering 36
grid surface maps
defined 487
handlers 37
uses 295
Vertical Mapper grid handler 298
GRS 80 datum 393
625
MIPro_UG.pdf
H
heads-up digitizing 488
Help button bar 488
help system
using 7
hot views
defined 488
Hotine Oblique Mercator projection
oblique azimuth 463
I
importing files
default open and save directories 42
import definition 488
Web Map Service (WMS) data 116117, 119120
indices, searching for map objects 66
individual values maps
defined 279280, 488
saving categories in templates 290
inflection
ranged thematic maps 283, 294
Info tool
seamless layers 93
using 8788
installation
application data files 21
CD browser 21
custom 23
custom workstation 23
data 27
modifying MAPINFOW.PRF for 7.0 directories 21
network 25
per-user installs 22
preparatory tasks 21
procedure 21
running from drive 28
setting the temp variable 28
setting up clients 26
typical workstation 23
InStr function
finding data substrings 266
in expressions 428429
Int function 429
interactive geocoding 125
interactive labelling 337
interleaved line styles 213, 326
inverting selections 241
J
joining tables
in cartographic legends 363
join definition 488
order of clauses 264
outer joins 265267
through thematic mapping 278
using SQL Select 261262
where condition 264265
JP2 files
export format 99
raster format 369
JPEG 2000 format (*.JP2) files
export format 99
raster format 369
JPEG File Interchange Format (*.JPG) files
export format 99
raster format 369
JPG files
export format 99
raster format 369
jumps
defined 488
L
Labeler tool
labels as text objects 338339
using with Layout windows 346
labeler tool
labels as text objects 340
labels
automatic 332333, 335336
callout lines 335
content 330
controlling display 332333, 335
customized 331
design 329330
editing 337
interactive 337
label tool button 338
layer control options 8283
legend styles 362
map 329
removing 340
rotating in layout window 346
saving 341
styles 336
using column information 331
using text objects 338340
with expressions 331
zoom layering 333
latitude
defined 488
Layer Control command
display options 7980
editable layers 8586
label options 8283
raster and grid layers 90
seamless layers 93
selectable layers 8687
thematic layers 8889
zoom layering 8081
layers
adding to a map 78
Clear Cosmetic Layer command 84
creating buffer 303304
defined 489
626
MIPro_UG.pdf
layers (continued)
definition 75
display options 7980
displaying object attributes 82
Info tool 8788
objects 75
opening grid 68
removing from a map 78
reordering 77
saving thematic map 289290
seamless 9296
selecting for cartographic legends 358
layout windows
adding a logo to 369
adding open windows to 347348
aligning objects in 350353
AutoLabeler tool 346
creating 347349
creating multiple map views 344345
defined 489
exporting 365366
frames 347350
Labeler tool 346
map scale 354355
opening maps in 73
ordering overlapping objects 344
page layout 342343
printing 363364
rotating labels in 346
using legends 350
with labels 346
zoom level 343
LCase$ function 429430
Left$ function
in expressions 430
legend frames
borders 360
default settings 359
symbol text 360
titles 359360
Legend Window preferences 29, 37, 39
legend windows
borders 360
defined 489
specifying properties 359
using in layouts 350
legends
cartographic 294295
theme 295
Len function
in expressions 430
LIKE operator
wildcard characters 200, 245
line direction, displaying 82
line objects 489
line styles 326
change styles tool button 211
editing 325
interleaved 213
M
Main toolbar 55
defined 490
manual geocoding 125
map layers
adding 78
displaying object attributes 82
Info tool 8788
Layer Control command 7681, 83
objects 75
removing 78
map scale
defined 490
displaying in status bar 6
in layout windows 354
map segment 490
Map windows
defined 490
navigating in 71
opening tables in 71
preferences 29, 3436
printing 147
projections 389
MapBasic language
defined 490
MapBasic programs
default open and save directories 42
default search paths 42, 51
MapBasic tools
AutoLabeler 330, 346
DBMS Catalog 183
Labeler 338339, 346
RotateLabel 346
ScaleBar 355
scalebar 356
Set Minimum Bounding Rectangle 185
MapBasic window, turning seamless layers on/off 95
MapInfo Professional 7.5
627
MIPro_UG.pdf
Microsoft Windows
MapInfo Professional compatibility 3
Mid$ function 431
Military Grid Reference System
displaying coordinates in 37
minimum bounding rectangle (MBR) 490
Minimum function 431
modifying
raster image control points 377
thematic maps 289
Month function 432
moving
selected objects 238
MrSID format (*.SID) files
raster format 369
multipoint objects
legend styles 361
N
native projections
defined 490
natural break
ranged map type 283
network installation 25
NITF format (*.NTF) files
raster format 369
nodes
Add Node tool button 211
defined 491
deleting 212
displaying 82
duplicate 35, 229
maximum number of 227
moving duplicate 229
Reshape mode 227
selecting multiple 228
selecting using Snap mode 229
non-earth maps
defined 491
using 393
NTF files
raster format 369
numeric values
in expressions 408
O
ObjectLen function 432434
objects
default style settings 48
highlighting 48
removing cosmetic 84
rotating selected 238
saving cosmetic 84
objects, drawing 212214
objects, editing
attributes 226
autotracing 230
combining with set target 313
MapInfo Professional 7.5
628
MIPro_UG.pdf
P
packing a table 170, 331, 491
page layout
layout windows 342343
page setup
layout windows 363
preparing to print 147
Parameters
projections 464
parsing data
across multiple columns 162164
pattern scaling
printing fill patterns 45, 152
PCX files
raster format 369
Perimeter function 434
per-user installs 22
Photoshop 3.0 (*.PSD) files
export format 99
raster format 369
pie chart maps 288, 491
pin maps 491
pixels 491
Places Bar
accessing folders 51
PNG files
export format 99
raster format 369
point objects
defined 492
point size
defined 492
pointer
defined 492
points
creating 388
creating for intersections 144145
creating from coordinates 136137
creating from Excel/Lotus tables 138139
creating in a projection 140
dispersing 142143
displaying geocoded 134
Polyconic projection 463464
polygon objects
creating a voronoi 321322
defined 492
drawing 213214
polygon overlay, defined 492
Polygon Select tool button 240241
Polygon tool button 210
polyline objects
converting regions to 231
converting to regions 214
defined 492
drawing 213214
node limits 227
smoothing and unsmoothing 230
splitting map objects using 317
629
MIPro_UG.pdf
projections (continued)
distance calculations 388
GRS 80 datum 393
imported files 387
Map window 389
parameters 448449
raster images 380
saving maps in different projections 388389, 392
specifying for raster images 388
with ocean and grid tables 394
with Web Mapping Service (WMS) 121
Proper$ function 434
proportion average function
Update Column command 171
proportion sum function
Update Column command 171
proportion weighted average function 172
Update Column command 172173
PSD files
export format 99
raster format 369
push-pin maps
defined 491
Q
quantile
ranged map type 283
queries
bound objects in spatial 191
collecting and deriving data 242
in DBMS tables 273274
saving as query tables 253254
saving in workspaces 40, 254
Select command 243, 246247
using templates 254
See also SQL Select command
query tables
default open and save directories 42
defined 493
saving 253254
query templates 254
Quick Start dialog
display preference 40
R
radius
calculating buffer 307
Radius Select tool button 239240
Range
projections 463
ranged maps
defined 281, 493
styles 283
types 281282
raster images
color options 369370, 377379
defined 493
display settings 43
630
MIPro_UG.pdf
631
MIPro_UG.pdf
S
S key
Snap mode 229
sample data
copyright information 473478
installing 27
using 67
Save Cosmetic Objects command 84
saving
Access and MapInfo tables 109
Access table as another Access table 112
buffer regions to tables 304306
copies of tables 98
cosmetic objects 84
DBMS tables 203, 205206
labels 341
labels as text objects 338339
MapInfo tables as Access tables 109112
maps in different projections 388389, 392
new districts 405
printer information to a workspace 59
queries 253254
queries in workspaces 40
query templates 254
tables 98
thematic map layers 289290
thematic templates 290
workspaces 9697
scale
displaying in status bar 6
layout windows 354355
scale bar
defined 494
Scale factor
Transverse Mercator projection 463
ScaleBar tool
creating scalebars 355356
scaling fill patterns 45, 152
scanning
defined 494
scroll bars
defined 494
displaying 36
seamless map layers
available features 93
creating 93
opening 92
search paths of component tables 95
turning on and off 9596
using 9395
search paths
component tables of seamless layers 95
Select tool button 237238
selectable layers
displaying layer of current selection 6
selecting objects 8687, 236237
selecting by querying
aggregating data 259260
calculating distance to a fixed point 271272
DBMS tables 273274
expressions 244246
finding duplicate values in a column 270271
grouping by column 261
InStr function 266
joining tables 261262, 264267
query templates 254
saving queries 253254
Select command 236, 243, 246247
specific table records 267, 269
SQL Select command 236, 249250
SQL Select examples 250253, 256258, 262264
StreetPro tables 272273
ungeocoded records 134
where condition 265
selecting from the screen
in Browser windows 174
multiple nodes 228
selectable layers 236237
tool buttons 236241
tool buttonsl 241
selection tools
seamless layers 93
selections
cancelling 242
defined 234235, 494
inverting 241
labeling the current 339
moving and rotating objects 238
specifying map highlighting 48
symbol hot spot 238
Send to Back command 344
shapefiles
default open and save directories 42
opening 68
shortcuts 440441, 443445
SID files
raster format 369
Sin function 436
smoothing polylines 230
Snap mode
selecting nodes and centroids 229
snap to nodes
defined 494
snap tolerance
map window preference 37
spatial analysis, defined 494
spatial index columns 182
spatial index types 184
spatial objects
storing and retrieving requirements 178
spatial queries
bound objects 191
SpatialWare
bound objects in spatial queries 191
live access limitations in v. 4.6 202
MapInfo Professional 7.5
632
MIPro_UG.pdf
spherical calculations
as default setting 36
buffer regions 307
projections 388
spherical coordinates, defined 494
splitting objects 315317
SPOT image files
raster format 369
SQL Select command
calculating distance to a fixed point 271272
computing population density 251
finding duplicate values in a column 270271
grouping by column 261
InStr function 266
joining tables 261262, 264267
population density 250, 252253, 256258
querying DBMS tables 273274
selecting by querying 249250
SQL Query defined 495
StreetPro tables 272273
total population and area 262264
where condition 265
standard deviation
defined 495
ranged thematic maps 283
Standard parallels
conic projections 462
Standard toolbar 54
starting MapInfo Professional 49
Startup preferences
specifying 30, 3940
startup workspace 50
Statistics window
defined 495
status bar
defined 495
using 6
Str$ function 436
street inset
placing geocoded points 130
street names
geocoding matches 131
street numbers
matching to address range 131
street offset
placing geocoded points 129
StreetPro tables
with SQL Select 272273
streets
finding exact matches 127
geocoding precision 126
string clauses 416
string comparison 411
operators 411
string operators 409
Structured Query Language (SQL)
defined 495
Style preferences
specifying 30, 48
styles
cartographic legends 361362
changing symbol 215
custom symbols 217
districts 404405
drawn objects 212213
interleaved line 213
labels 336
line 325326
override option for raster and grid images 379
ranged thematic maps 283
region 324325
symbol 326327
text 220221, 328329
using per row 189
subselect,
defined 495
supported file formats
export 99
opening files in MapInfo Professional 6465, 104105
raster images 369
symbol styles 327
changing 215, 326
mappable DBMS tables 190
style change tool button 211
symbols
custom 216220
defined 495
drawing 214216
pre-version 4.0 33
selection hot spot 238
supported fonts 215
Symbol tool button 211
transparent 101
system requirements
MapInfo Professional 20
Oracle Spatial 190
system settings
preferences 29, 3133
T
table rows
defined 496
tables
creating points from Excel/Lotus 138139
defined 496
ungeocoding 135
update column 159
tables, closing 97
tables, creating
choosing a projection 388
procedure 167168
using subset of a file 248
tables, displaying
New Browser Window command 173174
tables, managing
browsing 173174
deleting 170
MapInfo Professional 7.5
633
MIPro_UG.pdf
templates
saving thematic 290
temporary tables
selections 235
territories
creating by combining objects 318321
text objects
text cursor 496
using text in maps 220
with labels 338340, 346
text styles 211, 328329
Text tool button 211
TFW files
supported raster format 372
TGA files
raster format 369
thematic layers
using with Layer Control 8889
thematic maps
defined 496
expressions with 277
grid surface 295298
inflection points 294
joining tables in 278
layers 496
modifying 289
obtaining data 277
saving 289
shading 496
thematic mapping definition 275
types of 278279
using Update Column command 290294
variables 277, 496
theme legends
defined 295, 497
in layouts 350
theme templates
default open and save directories 42
saving 290
TIF files
export format 99
raster format 369
TIFF CMYK (*.tif) files
export format 99
Tool Manager
listing of tools 102
toolbars 5456, 58, 497
topography layer 116
transformation
defined 497
translucent images
printing and exporting 380
raster 379
transparent fill patterns
exported files 101
printing 152
transparent images
raster 379
ROP display method 381
634
MIPro_UG.pdf
transparent symbols
exported files 101
printing 152
Transverse Mercator projection
scale factor 463
true color
exported files 101
printing raster and grid images 152
two-digit years 33
U
UCase$ function 436
Undo command 33
ungeocode, defined 497
ungeocoding tables 135
uninstalling
MapInfo Professional 26
using the CD browser 29
Units
MAPINFOW.PRJ ID numbers 461
unregistered raster images
opening 371
unsmoothing polylines 230
Update Column command
adding temporary columns 158
parsing data to multiple columns 162163
placing graphic information in columns 164166
updating tables 160
using aggregate functions 170173
using proportion sum and proportion average 171
using proportion weighted average 172173
with thematic mapping 278, 290294
update column command
parsing data to multiple columns 164
US_ZIPS.TAB
geocoding to postal code centroids 127
V
Val function 437
vector images, defined 497
vector maps
transferring coordinates to raster image 375
Vertical Mapper grid handler 297298
voronoi polygons 321
Windows 2000
accessing MapInfo Professional-specific folders 51
system requirements 20
Windows 95/98
system requirements 20
Windows Bitmap (*.BMP) files
raster format 369
Windows Bitmap (*.bmp) files
export format 99
Windows compatibility 3
Windows Enhanced Metafiles (*.EMF)
export format 99
generating for printing 151
Windows Metafile Format (*.WMF) files
raster format 369
Windows Metafiles (*.wmf)
export format 99
Windows NT 4.0, system requirements 20
Windows XP, system requirements 20
WMF files
export format 99
raster format 369
WMS. See Web Map Service (WMS)
workspaces
cosmetic objects 84
default open and save directories 42
default search paths 51
defined 498
MAPINFOW.WOR 51
renaming tables 59
saving 9697
saving printer information 59
saving queries 40
saving queries to 254
storing printer information 40
table search paths 42
thematic maps 289290
using 58, 60
using the startup 50
workstations, custom installation 23
World files (.*TFW) 372
Y
Year function 438
635
MIPro_UG.pdf