Happy #MapInfoMonday,
This post is a follow-up post to last week's post on calculating statistics from selected records.
In this week's post, we will elaborate on how you can select those statistical areas when have another polygon illustrating your catchment area. So we will inspect a couple of ways to convert a catchment area, that is any polygon, to the statistical polygons for that catchment area.
I'll show you 3 ways to select polygons from a layer using a polygon in another layer:
- Use the Boundary Selection tool
- Use the Select by Location dialog
- Use the SQL Window to consider the amount of overlap
They all have some good and bad sides as they all result in either too little or too much. You will see what I mean in a moment.
In a later post, I will show how you can calculate the actual overlapping area and get the proportional values.
Use the Boundary Selection Tool
This first method is quite easy to use.
Below you can see my setup. I have a table with Purchasing Power information for my area, and I have created a 5 km buffer zone around my potential new site. The catchment area could of course also have been a drivetime polygon to show how far people can come within a given distance or time.
From the Select dropdown on the Map tab, I now select the Boundary Selection tool.
I have already ensured that the boundary I want to search within is in the topmost selectable layer, ie. the cosmetic layer in this case, and that the second topmost selectable layer is the layer I want to select from.
I can now click on the map inside my catchment area, and the tool will now select all the Purchasing Power boundaries that have their centroid inside my catchment area. The result looks like this.
Here's the full Select
statement:
I have turned off the options to show the result in a browser or as a layer. Click Run to see the result.
In the map below, you can see how the result now has been narrowed down around the actual catchment area. At least 3 Purchasing Power boundaries that do intersect the catchment area have been left out as they don't overlap with 10% or more of their area.
The query can of course be modified with regards to the percentage. Maybe 5% works better for you. Maybe 20% is better.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------