Techtips Bufferfunction
Techtips Bufferfunction
By Greg Bachinsky
USERS HAVE THE ABILITY TO CREATE BUFFERS TO LINK LOCATION DATA WITH CUSTOMER DATA AND VISUALIZE IT ON A MAP.
WHILE THE MAPINFO PROFESSIONAL MENU ALLOWS FOR STANDARD BUFFER CREATION, A SIMPLER WAY TO CREATE BUFFERS
A common customer relationship This creates a new “Buffer” table. The store information can be trans-
management (CRM) task is locating ferred to the Buffer table with a SQL
From here, it is easy to find the
customers who are within a particular Select statement, but a simpler way
Customer table point objects that
distance from a company’s store, to create the buffers would be to
fall within the Buffer table objects
warehouse or distribution center perform the following:
by joining them through Query>
and joining that store data with the
SQL Select.
customer data. When two tables are
represented graphically as symbols,
it is a simple matter within MapInfo
Professional to create buffers around
the company stores and find all the
customers that fall within the buffers.
However, linking all the data can be
a little tricky.
For example, our map represents
our store locations as red stars
and our customer locations as blue
diamonds. The standard process to
create buffers is as follows.
1. Go to Map>Layer Control and
make the Cosmetic layer editable by
placing a check mark under the pencil
icon for that layer, and click OK.
However, if we browse the Buffer 1. Go to File>Save Copy as, and
2. Go to Query>SQL Select. From
table, it is hard to tell which original save a copy of the Store table.
the Table dropdown, choose the
store location is associated with each Call it Store_Buffers.
Store table.
buffer. The browser only contains one
2. Go to File>Open Table and
3. Uncheck the Browse Results box ID column populated with zeros.
open the new Store_Buffers table.
above the OK button, and click OK.
3. Go to Options>Show MapBasic
4. Go to Objects>Buffer and fill in
Window.
the desired radius and smoothness
of the buffers. For this example, 4. In the window, type: Update Store_
use 10 and 100 respectively. Buffers set obj=Buffer(obj,100,10,”mi”)
5. Select “One Buffer for Each Object”. 5. Then hit the Enter key on your
Click OK. keyboard.
6. Go to Map>Save Cosmetic objects,
and save the buffers to a new layer.