Show/Hide Toolbars


Navigation: Examples

Example: Using a Selection Set

Scroll Prev Top Next More

This tutorial shows you how to use MileCharter with a Maptitude selection set to calculate mileages to a single location within a data view. It is based on the TXLA data from the previous example. Import the Texas and Louisiana sample data into Maptitude, as per this example.


A Maptitude selection set is a group of entities (e.g. geographic points) from a data view. They are often the result of a query ("Which customers are within 50 miles of Chicago?" or "Which customers spend more than $50,000"?), or a manipulation (e.g. merger) of other selection sets. Selection sets can be named, and a data view can have multiple selection sets defined. You can also create a selection set manually, and this is what we will do here.


We shall create a mileage table from all of the Texas cities to New Orleans. To select New Orleans, first set LouisanaCities to be the active layer in the Display Manager.. Then set Select by Pointing Mode (press the button on the bottom tool bar with an arrow and a star):



You can create a selection set be clicking on a member of the LouisianaCities layer. Click on the New Orleans marker (blue star) to select it. Maptitude will mark it as selected by changing the color to red:




You can now start MileCharter from the Tools->Add-ins... menu in Maptitude. MileCharter will look like this:




Check the Show Selection Sets checkbox so that the start/end lists include selection sets as well as data views. The list may include all of Maptitude's data views and selection sets Check the Only Show User Data checkbox, so that we only see our data views and selection sets (i.e. as above).


Select the "TexasCities" view from the Routes start from list box as before. For the destination location (Routes finish at), select LouisianaCities: Selection. When we selected New Orleans we created a new selection set but we did not name it. Hence it is the default selection set ("Selection").


The remaining options are as before. Press Compute to start the calculation. Here are the results:




The next example uses MileCharter's "Find Closest" functionality to match customers with their closest stores.