CartaTerra

← Guides & help

Analyze select and join

7 min read

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

  1. Put the layers on your map. Use built-in layers from Add layer, your own layers, or a file you upload.
  2. Open Analyze… from the rail, the map menu, or a layer's menu (it starts on that layer), and pick a tool.
  3. Choose the layers and settings. Each tool below lists what it asks for.
  4. 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.
  5. 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:

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:

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:

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:

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:

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