Analyze select and join
These tools pick out the items you want, by their details or by where they are, and add details from another layer or a spreadsheet. They're in the Select and join 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 "Addresses · Filter", 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. A result can hold up to 5,000 items.
Filter and Select by location can also leave the layer as it is and Dim everything else on the map, so the matches stand out without making a new layer. Clear it from the banner on the map.
Filter
What it does: keeps the items whose details match a condition, such as campgrounds that have water or peaks over a set height.
When to use it: you only want campgrounds with drinking water. Filter USFS Campgrounds where Has Water is true.
Settings:
- Layer: points, lines or areas.
- Conditions: a field, a comparison and a value. The comparisons are is, is not, is more than, is at least, is less than, is at most, contains, starts with, is empty and is not empty.
- Text matches ignore capital letters, so "peak" matches "Peak". Numbers compare as numbers when both the field and your value are numbers.
- The form takes one condition at a time. To narrow further, filter the result again.
The result: the matching items, unchanged: same shapes, same fields. Or choose Dim everything else on the map to keep the layer and fade the rest.
Sort and keep the top
What it does: sorts items by a field and keeps the first ones, such as the 10 highest peaks or the largest lakes. It adds a rank.
When to use it: you want the 10 highest summits in view. Filter Peaks & Passes (OSM) to Kind is peak (the layer has passes too), then sort the result by Elevation, highest first, and keep the first 10.
Settings:
- Layer: points, lines or areas.
- Sort by: any field.
- Order: highest first (the default) or lowest first.
- Keep the first: 10 to start, any whole number from 1 to 5,000.
- Numbers stored with a unit, such as "3,400 acre-ft" in Lakes & Reservoirs (NHDPlus), still sort as numbers. A text field sorts A to Z with lowest first, and Z to A with highest first.
- Items with no value in the field are left out, and CartaTerra says how many.
The result: the top items with their own shapes and fields, plus rank (1 is first).
Select by location
What it does: keeps the items of a layer that touch, sit inside, or are near another layer's items.
When to use it: you want dispersed sites with water close by. Select Dispersed Camping that are within 1 mile of Drinking Water & Springs. Or keep the Hot Springs (OSM) that are completely inside Wilderness Areas.
Settings:
- Layer to select from and Compared with: points, lines or areas.
- Keep items that: touch or overlap (the default), are completely inside (the second layer must be areas), or are within a distance of.
- Distance and Units (meters, kilometers, feet or miles), for are within a distance of. Check both before you run. The units start on meters, and the distance can be up to 200 km (124 miles).
- Keep the others instead: keeps the items that don't match. Off unless you tick it.
The result: the matching items, unchanged: same shapes, same fields. Or choose Dim everything else on the map.
Join by location
What it does: adds details from a second layer to each item, based on where they are: how many items of the second layer touch it or sit within a distance, and a total, average, smallest or largest value from them.
When to use it: you want to know how much trail starts near each trailhead. Join Forest Service Trails to USFS Trailheads, matching items within 0.25 miles, and add the sum of Miles. Each trailhead gets the number of trails nearby and their total miles.
Settings:
- Layer to add details to: points, lines or areas.
- Layer to take details from: points, lines or areas.
- Match items that: touch or overlap (the default) or are within a distance, with Distance and Units (up to 200 km, 124 miles). The units start on meters.
- Details to add (optional): a number field and how to combine the matches: sum, average, minimum, maximum or value from the first match. Leave the field blank to add only the count.
- Keep items with no match: on to start. Untick it to keep only items that matched.
The result: the first layer's items with their own shapes and fields, plus join_count (the number of matches) and the detail you chose, named after the field: sum_miles, mean_miles, min_miles or max_miles, or miles itself for the first match. A name that's already taken gets _2 on the end.
Join by field
What it does: adds details from another layer or a spreadsheet to each item whose value matches, such as a park code or a county name. It joins by matching values, not by location.
When to use it: you keep a spreadsheet of the parks you've visited, with each park's four-letter code (ACAD, YELL) and the date you went. Join it to National Park Service Sites, matching Unit Code to your code column, and each park on the map gets your dates. A spreadsheet has no locations, so set the Area to cover your parks (Country works).
Settings:
- Layer to add details to: points, lines or areas.
- Layer or spreadsheet to take details from: a layer, or A spreadsheet (CSV or Excel)… to pick a .csv, .tsv, .txt, .xlsx or .xls file. The spreadsheet is read in your browser for this run. It isn't uploaded or saved as a layer. With several sheets, the first one is used.
- Match this field and To this field in the other layer: the two fields whose values should match.
- Details to add (none ticked = all): the fields to copy across.
- Ignore capital letters: on to start.
- Keep items with no match: on to start. Untick it to keep only items that matched.
- Values match as text with spaces trimmed, so 2134 and "2134" match, but "02134" doesn't. CartaTerra warns you when items would match if leading zeros were ignored (a spreadsheet may have dropped them), and when a value repeats in the other layer (the first row is used).
The result: the first layer's items with their own shapes and fields, plus the fields you chose from the other layer (empty for items with no match). A name that's already taken gets _2 on the end. CartaTerra says how many items matched.
Related: Analyze shape tools · Analyze: summaries and patterns · Analyze: terrain · SQL querying · All guides