How to calculate cage footprint area from a satellite-derived polygon

Aerial view at sunrise of eight circular fish pens anchored in a calm fjord, framed by forested slopes on either side.

If you've pulled a polygon off a satellite image, dropped it into QGIS, and gotten an area number that looked wrong by an order of magnitude, you've already met the most common mistake in this workflow. Here's how to turn a traced cage outline into a square-meter figure you can actually put in a compliance file.

Start with the polygon, not the area tool

A cage footprint polygon is just a closed shape traced around the visible edge of a pen, raft, or longline in an image. The polygon might come from manual digitizing, a contractor's shapefile, or an automated extraction run. The geometry itself is the same either way: a ring of coordinate pairs stored as GeoJSON or a shapefile feature.

The coordinates in a GeoJSON file are almost always in WGS84, which means longitude and latitude in decimal degrees. That's the trap. A degree of longitude is not a fixed distance; it shrinks as you move away from the equator. Run an area calculation directly on those degree coordinates and most GIS tools will either throw a warning or hand you back a number in square degrees, which means nothing to a permit compliance file.

Reproject before you measure

Before calculating area, reproject the polygon into a coordinate system that preserves area in your region, either a local UTM zone or an equal-area projection like Albers. In QGIS this is a layer reprojection step. In a Python workflow with shapely and pyproj, it's a transform call on the geometry before you run .area. Skip this step and your square-meter figure will be off, sometimes by a lot depending on latitude.

Once the polygon is in a projected coordinate system, the area calculation itself is straightforward. Under the hood it's the shoelace formula, summing cross products of consecutive vertex coordinates, but you don't need to implement that by hand. QGIS has a field calculator function ($area), shapely gives you .area on the reprojected geometry, and most shapefile and GeoJSON readers expose the same thing through their respective APIs.

A few practical notes from doing this against real permit files:

  • If the polygon has holes, say a feed barge excluded from the pen outline, make sure your area tool is subtracting interior rings, not just measuring the outer boundary.
  • Multi-part features, common when a longline system spans several buoyed sections, need their parts summed, not averaged or counted once.
  • Round to a sensible precision. A pen footprint reported to six decimal places of a square meter reads like the output of a script nobody reviewed.

Matching the number to the permit

Once you have a defensible area figure per structure, the actual compliance question is simple: does the footprint on the water match what the permit allows? That's a join between your polygon attribute table and the licence record, usually on licence ID or site name, followed by a straight comparison of measured area against permitted area, or permitted structure count, if that's what the licence specifies.

Where this gets slow is upstream of the GIS step. If your source polygons come from a site visit sketch, a one-off digitizing job, or a PDF chart someone traced by hand, you're redoing this exercise every renewal cycle with no consistent baseline to compare against. A quarterly polygon layer of every pen, raft, and longline in the licence area, delivered as GeoJSON or shapefile with area already calculated, turns this from a one-off GIS exercise into something you can diff against last quarter's file.

A quick sanity check before you file anything

Before a figure goes into a compliance record, spot-check it against something you already know. A licence that permits a 30 by 30 meter pen should land near 900 square meters. If your calculated footprint comes back at 0.0003, you forgot to reproject. If it comes back at 290,000, check for a unit mismatch between meters and some other unit buried in your source data. These two mistakes account for most of the bad area figures that end up in permit files.

If you're tired of rebuilding this workflow by hand every quarter, take a look at what Seafarm Mapping delivers for licence areas under your desk.

Start a pilot

Back to the blog