Show/Hide Toolbars

MPCluster for Maptitude

Navigation: Running MPCluster

Writing the Clusters to a Data View

Scroll Prev Top Next More

MPCluster can also write the data point allocations to a new data view. This data view lists the data point's ID, the MPCluster run's Run Name,  the parent cluster, and distance to the cluster's center. There are options to join this to the input data, and to apply a theme. This is an effective way to color the data points according to their cluster allocation.

 

The distance (column name: DISTANCE) is typically the straight line (Great Circle) distance from the data point to the cluster's center in Maptitude's current distance units. However, if you are using an external table, the distance will be the distance reported in the table using the table's units. Unallocated data points will be reported with a distance of 0.0 (and a cluster of '0'). Distances which are missing from an external table will be reported with a negative value typically -1.0.

 

A data view is created by setting the Write allocations to a data view checkbox in the Display Options box. You will also need to enter the Name of data view. If this name is a new name for the map, MPCluster will prompt you to enter the filename to use for the data view's files. You should enter the name of a new file, and not re-use an existing data view file.

 

Set the Apply a Join to the input data points checkbox if you wish MPCluster to apply a join between the new data view and the input data. This join is only applied if the data view is a new data view.

 

Note: Maptitude may drop an old join created in this manner. This happens if you have created a new join with MPCluster, and then save your map file. The theme will have been transferred to the new join, so there is nothing in your map file that requires the old join. Therefore Maptitude drops it. Note that the data view file remains available, so you can still manually join it to your input data.

 

Finally, MPCluster will apply a theme to the joined view if you set the Apply a theme checkbox. This theme is only applied if a join is created, or if a join already exists. The theme is called ClusterTheme and replaces any existing theme with this name. The theme uses solid circles to represent the data points. Unallocated points are colored black. Allocated data points are colored according to their parent cluster. These colors match the cluster colors used by the Write clusters to layers option. Any selection sets on the input data view are set to "Inactive" so that they do not hide the new theme.

 

Here is an example with just the data view output joined to the input data:

 

cluster_alloc_img