Analyze summaries and patterns
These tools add numbers to your layers: counts and totals inside areas, the distance to the nearest place, lengths and areas, and where things bunch together. They're in the Summaries and patterns group of Analyze….
Run a tool
- Put the layers on your map. Use built-in layers from Add layer, your own layers, or a file you upload.
- Open Analyze… from the rail, the map menu, or a layer's menu (it starts on that layer), and pick a tool.
- Choose the layers and settings. Each tool below lists what it asks for.
- Set the Area. Built-in layers cover the whole country, so give them a limit: Current view, a shape you draw (box, lasso or circle), a State or Country (their rectangular bounds), or one of your area layers. If one of the layers is your own, All works too, and built-in layers are read around it.
- Name the result if you like, and press Run.
A run opens a Results window. The shapes stay a preview until you choose Save layer (for example "Sample sites · Hot spots", unless you rename it). Closing that window, or Analyze, asks you to save or discard. Change settings keeps the form open so you can run it again, and saving a re-run replaces that result. The layer menu item is Edit & re-run. Find clusters keeps the points and draws one outline around each group. A result can hold up to 5,000 items. Lengths and areas are measured on the earth's surface, so they're right at any latitude. To color a result by its new numbers, use Style….
Summarize within areas
What it does: for each area, counts the items inside and totals their length, their area, or a number field. Only the part of a line or area that's inside is measured.
When to use it: you're choosing a wilderness for a backpacking trip and want the one with the most trail. Summarize Forest Service Trails within Wilderness Areas, and each wilderness gets its number of trails and its trail miles.
Settings:
- Areas: a layer of areas (polygons).
- Items to summarize: points, lines or areas.
- Number fields to total (optional): tick number fields to add up, such as Capacity in USFS Campgrounds.
- Length units (miles to start) and Area units (acres to start).
The result: the areas, with their own shapes and fields, plus count (items inside), the length of lines inside (such as length_mi, when the items are lines), the area of areas inside (such as area_acres, when the items are areas), and sum_ plus the field's name for each number field you ticked (such as sum_capacity). An item that crosses two areas counts in both.
Distance to nearest
What it does: for each item, finds the closest item in another layer and how far away it is. Distances are to the nearest edge, so an item touching the other one is 0 away.
When to use it: you want to know how far each dispersed site is from water. Run Distance to nearest from Dispersed Camping to Drinking Water & Springs, in miles, and sort by the new field to find the sites closest to water.
Settings:
- Items: points, lines or areas.
- Nearest from: points, lines or areas. It can be the same layer (each item's nearest neighbor, not counting itself).
- Search up to (optional): items with nothing closer than this get no distance. Clear it to find the nearest at any distance. It can be up to 200 km (124 miles).
- Units: meters, kilometers, feet or miles. Check them before you run. The units start on meters.
- Built-in layers are read only around your items: out to the Search up to distance, or about 31 miles (50 km) when it's blank. With an Area, only what's in the Area counts.
The result: the items with their own shapes and fields, plus the distance, named for the units (near_mi, near_km, near_ft or near_m), and near_name, the name of the nearest item (or its first text value when it has no name). Both are empty when nothing was found.
Add measurements
What it does: adds length, area and perimeter as fields, or coordinates for points.
When to use it: you've imported a season of GPX tracks and want each one's miles in the table. Run Add measurements on the tracks layer. Or run it on your waypoints to get their latitude and longitude for a trip sheet.
Settings:
- Layer: points, lines or areas.
- Length units (miles to start) and Area units (acres to start). Lengths come in meters, kilometers, feet or miles; areas in acres, hectares, square miles, square kilometers, square feet or square meters.
The result: the items with their own shapes and fields, plus:
- Lines:
length_and the units, such aslength_mi. - Areas:
area_andperimeter_with the units, such asarea_acresandperimeter_mi. Square units are written without the underscore, such asarea_sqmi. - Points:
longitudeandlatitude.
Hot spots
What it does: finds where high values, or many items, sit together more than chance would explain, and where low values do (cold spots). It uses the same statistic as the Hot Spot Analysis tool in desktop GIS (Getis-Ord).
When to use it: you want to see which parts of a region are waterfall country. Run Hot spots on Waterfalls (OSM) with no number chosen: CartaTerra counts the waterfalls in a grid of hexagons and marks the cells where they're more crowded than chance would explain. With a number, such as Elevation in SNOTEL Snow Stations, it compares each item with its neighborhood instead.
Settings:
- Layer: points, lines or areas.
- Number to compare (blank: count the items in a grid): a number field, or blank to count items.
- Neighborhood distance (blank: automatic): how far around each item or cell to look. Automatic is the average distance to a set number of nearest neighbors.
- Grid cell width, when counting (blank: automatic): the width of each hexagon.
- Units: for the two distances. They start on meters.
- Allow for testing many places at once (recommended): on to start. It keeps a big map from showing hot spots by chance alone.
- It needs at least 30 items with a number, or 30 grid cells. A grid can have up to 5,000 cells.
The result: with a number, the items with their own shapes and fields. Without one, hexagons with count, the items in each. Both add hot_spot ("Hot spot, 99% confidence" down to "Cold spot, 99% confidence", or "Not significant"), gi_bin (3 to -3, the same levels as numbers), gi_z and gi_p (the statistic's score and its p-value) and neighbors. Color by hot_spot with Style… to see the pattern.
Find clusters
What it does: groups items that sit close together, or splits them into a set number of groups by location.
When to use it: you want to see where dispersed sites bunch up, so one trip can reach several. Run Find clusters on Dispersed Camping. Or split the 30 stops on your summer list into 5 groups, one for each leg of the trip.
Settings:
- Layer: points, lines or areas. Lines and areas are placed by their centers.
- Find: clusters of items close together (the default) or a set number of groups.
- For clusters: Distance between neighbors (blank: automatic), worked out from how far apart the items are, its Units (they start on meters), and Fewest items in a cluster (4 to start, 2 to 1,000). Items that aren't close enough to any cluster stay out of all of them.
- For groups: Number of groups (5 to start, 2 to 50). Every item goes in a group, and running it again gives the same groups.
- One outline per cluster instead of the items: off unless you tick it.
The result: the items with their own shapes and fields, plus cluster (1 is the largest) and cluster_size. Both are empty for items in no cluster. With One outline per cluster instead of the items, you get one area per cluster instead, with cluster and count.
Related: Analyze shape tools · Analyze: select and join · Analyze: terrain · Data tools on the map · All guides