Learn · Data and analysis · Lesson 21 of 35
Count in each area, and what is within a distance
You willHow many trees, defects or schools stand in each park, floor or suburb, and buffers round shapes with a count inside each.
Time3 min
Why it mattersMost questions of a map are one of these two: how many in each area, and what lies within so many metres of something.
Try it in Plotlay → Opens an example project with this lesson beside it. Nothing to install.
Steps
- In Data, click the layer to count (fountains, trees, defects) in the Map key, then the Analyse tab and How many of these are in each area?
- Check the layer in Count, choose the areas after In each of, and under As choose How many, or a total of one of its number fields, its area or its length.
- Choose Count them. Each area gets a column with the answer, and the map is coloured by it straight away.
- For distances, open What is within a distance?, choose the layer after Around and type the metres after Within.
- Choose another layer after And count to count it inside each buffer, or One shape for them all for one merged shape, then Draw the buffers.
Tips
- A shape counts for the area that holds its centre, so a long building across a boundary counts once.
- A point becomes a disc, a line a strip with round ends, and an area grows outward by the distance.
- The buffers come in as a new layer named after the distance, keyed like the shapes they came from, with a distance_m column.
Common mistakes
- Counting into the same layer you count: the areas must be another layer, such as suburbs, parks or floors.
- Expecting a buffer to follow the streets: it is a straight-line distance. For a walk along the streets, use walking catchments.
Words in this lesson
- Layer
- A group of shapes, rooms and items in a project, listed in the Layers tab. A hidden layer is left out of the plan, 3D and documents until you show it again.
Related lessons
Walking catchmentsThe streets reachable on foot in a few minutes from each point, as a new layer, with the share of streets within the walk.3 minColour by value, and the time sliderThe shapes shaded by any column, in classes and colours you choose, stepping through hours, days or years on a slider.3 min
Steps checked in the app on 12 November 2026.