# Dispersing Points Located in the Same Place - MapInfo_Pro - 2023

## MapInfo Pro Help

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapInfo Pro
Version
2023
Language
English
Product name
MapInfo Pro
Title
MapInfo Pro Help
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:39:16.995549

Depending on how you have geocoded your table, you may have several points that are placed at the same location, making it difficult to tell if you are viewing one point or many. For example, if you geocode a table of students by census tract, and view the results on your map, it appears that there is one dot at the center of each tract when there actually may be several there. To see all of 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 Pro), equal dispersion, and dispersion to the right.

## Dispersing Points using the Equal Point Dispersion Method

The equal dispersion method disperses points at equal distances from the center.

1. First, select all of the points that have the same location. This can be done with either the Radius Selection or the Marquee Selection command. On the MAP tab, in the Selection group, click on a command in the selection list.
2. On the HOME tab, in the Windows group, click Tool Windows, and click MapBasic from the list, to open the MapBasic window.
3. Click in the MapBasic window, type RANDOMIZE, and press Enter.
4. Type the code below and press Enter:
``````UPDATE SELECTION SET OBJ = CREATEPOINT(CENTROIDX(OBJ) +
(0.01)/(COS(CENTROIDY(OBJ) * .01745)))*(RND(1) - .5), CENTROIDY(OBJ) +
0.01*(RND(1) - .5))``````

## Dispersing Points using the Dispersion to the Right Method

The dispersion to the right method disperses points to the right of the point.

1. First, select all of the points that have the same location. This can be done with either the Radius Selection, or Marquee Selection command. On the MAP tab, in the Selection group, click on a command in the selection list.
2. On the HOME tab, in the Windows group, click Tool Windows, and click MapBasic from the list, to open the MapBasic window.
3. Click in the MapBasic window, type RANDOMIZE, and press Enter.
4. Type the following and press Enter. The table will be automatically updated.
``````UPDATE SELECTION SET OBJ = CREATEPOINT(CENTROIDX(OBJ) + 0.01 * RND(1),
CENTROIDY(OBJ))``````
5. If the new Map window has not distributed the points satisfactorily, on the SPATIAL tab, in the Clipboard group, click Undo to restore the objects to their original positions.
6. To disperse points for the entire table, substitute your tablename in the above examples wherever it says SELECTION.
Note: The dispersal weight, in the equation of the update statement above, is a number that regulates the object's 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 state-wide 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.