Skip to main content

Join in gGIS

Bring data from another layer or file onto your layer

Written by Holly Conrad Smith

Add zoning, flood overlays, or sales data to every parcel in a shortlist. Join brings fields from another layer or a file onto the prime layer, matched by location or by a value both share, like a parcel ID. Open it from the Enrich tab group. Join updates the prime layer directly.

To copy data onto your drawn Giraffe geometries instead of a GeoJSON layer, use the Sections tool.

Choose the data to join

Under Choose data to join, pick one source for the Join tool.

  • Project layer: a GeoJSON layer already in your project. To join a tiled layer, like the cadastre or zoning tiles, make a GeoJSON copy first with Build a layer.

  • Upload file: click Choose file and pick a .csv, .geojson, or .json file. gGIS shows the file name, row count, and column count once it loads. A CSV file's first row must be the column names.

Choose how features match

Under How each prime feature finds its values, choose a rule in Match by. The default is Centre point inside.

  • Centre point inside: each shape takes the values of the source polygon its centre point falls in.

  • Largest overlap: each shape takes the values of the source shape that covers most of it.

  • Nearest: each shape takes the values of the closest source shape, measured from its centre point, whether or not they overlap.

  • All overlapping features: every source shape that overlaps a shape is found, and the values are combined with Group by.

  • Same value (field match): this rule ignores location. Choose a Prime field and the Equals source field it should match, like two parcel ID columns. gGIS picks the pair of fields whose values line up best, and shows how many shapes match as you choose.

A CSV file, or a GeoJSON file with no shapes, has no locations, so the Join tool uses Same value (field match) for it.

For Nearest, set Within (m) to limit the distance. Tick Also write the distance to save the distance in meters as a field too, like the distance from each parcel to a train station.

Open How the join works to see a diagram of the rule you chose.

Combine several matches with Group by

Group by appears for All overlapping features and Same value (field match). It sets how the Join tool combines the values when a shape matches more than one source row.

  • Count, Sum, Average, Minimum, or Maximum: work with either rule.

  • First match: take the first matching row. This works with Same value only, and is its default.

  • Area-weighted sum: add up each overlapping value, scaled by how much of the source shape overlaps. This works with All overlapping features only.

  • Coverage %: how much of each shape the source layer covers, like the share of each parcel inside a flood zone. This works with All overlapping features only.

For All overlapping features, the default is Count. A shape with no match gets 0 for Count and Sum, and a blank for the others.

Choose the fields to bring in

  1. Under Fields to bring in, check the fields you want. gGIS ticks every source field except the one you matched on. Click All or None to tick or clear every field.

  2. Optional: set a Field prefix. gGIS suggests one from the source name, like zoning_. Clear it to keep the source field names.

With Count or Coverage %, the Join tool writes one new column instead. Name it in New column. The default is the prefix plus count or coverage_pct.

If a field name already exists on the prime layer, gGIS lists it. The join replaces those values, and clears them on shapes with no match.

Run the join

  1. Click Run join. gGIS updates the prime layer and reports how many shapes matched.

  2. Check the results in the Table view.

  3. Click Save to layer to write the result to the layer.

Did this answer your question?