Peterborough region

Original maps made in QGIS with AI-assisted Python (PyQGIS) scripting, from open data. Each map's sources and licences are listed with it.

Peterborough farmland. Agricultural land around Peterborough, Ontario QGIS, AI-assisted Python
  • Contains information licensed under the Open Government Licence – Canada.
  • Contains information licensed under the Open Government Licence – Ontario.
  • Made in QGIS with AI-assisted Python (PyQGIS) scripting.
Full caption and credits
Agricultural land around Peterborough, Ontario

Soil capability, soil landscapes and current cropland within about 50 km of Peterborough.

A. Canada Land Inventory: land capability for agriculture (1:250,000)
B. Soil Landscapes of Canada: polygons by soil great group
C. Current cropland: AAFC Annual Crop Inventory 2025 (AAFC simplified classes)

SOURCES AND LICENCES
Panel A: Canada Land Inventory (CLI) 1:250,000 – Land Capability for Agriculture. Agriculture and Agri-Food Canada. Open Government Portal dataset abf04733-8225-4d3c-83fa-9a5b60d43f2e; ESRI REST service https://services.arcgis.com/lGOekm0RsNxYnT3j/arcgis/rest/services/cli_agr_cap_250k/FeatureServer/0. Class labels as printed (English part) in AAFC's legend for this layer, https://tiles.arcgis.com/tiles/lGOekm0RsNxYnT3j/arcgis/rest/services/aafc_CLILC250K_6/MapServer/legend. Contains information licensed under the Open Government Licence – Canada.
Panel B: Soil Landscapes of Canada (SLC) derived from V3.1 and V2.2 – Cartographic 1M. Agriculture and Agri-Food Canada. Open Government Portal dataset 51e7677b-a8d0-4dc2-ad50-6b5e82cdeef6; ESRI REST service https://services.arcgis.com/lGOekm0RsNxYnT3j/arcgis/rest/services/Soil_landscapes_of_Canada/FeatureServer/0. Polygons coloured by the SOIL_GREAT_GROUP_CODE value as printed in the service. Contains information licensed under the Open Government Licence – Canada.
Panel C: Annual Crop Inventory 2025. Agriculture and Agri-Food Canada, Science and Technology Branch, Earth Observation Team. Open Government Portal dataset 89073037-d2fc-4a6d-9ce9-f0b1bcb48745 (2025 edition); ESRI REST ImageServer https://agriculture.canada.ca/imagery-images/rest/services/annual_crop_inventory/2025/ImageServer, raster function 'annual_crop_inventory_simplified' (AAFC's own simplified class set; labels as printed in the service legend). 30 m pixels. Classes not of agriculture (Wetland, Water, Forest, Other) and Cloud/no-data pixels are left transparent. Contains information licensed under the Open Government Licence – Canada.
Basemap: Medium Resolution Digital Elevation Model (MRDEM) – CanElevation Series, hillshade of the Digital Terrain Model (layer dtm-hillshade). Natural Resources Canada. Open Government Portal dataset 18752265-bda3-498c-a4ba-9dfe68cb98da; WMS https://datacube.services.geo.ca/ows/mrdem. Contains information licensed under the Open Government Licence – Canada.
Hydrology: Ontario Hydro Network (OHN) – OHN 200K Waterbody and OHN 500K Watercourse, Ontario Ministry of Natural Resources, Land Information Ontario, ArcGIS REST https://ws.lioservices.lrc.gov.on.ca/arcgis2/rest/services/LIO_OPEN_DATA/LIO_Open02/MapServer (layers 13 and 19). Contains information licensed under the Open Government Licence – Ontario.
Borders: Municipal Bnd Upper And Dist (upper-tier and district municipal boundaries), Land Information Ontario, https://ws.lioservices.lrc.gov.on.ca/arcgis2/rest/services/LIO_OPEN_DATA/LIO_Open03/MapServer/13. Contains information licensed under the Open Government Licence – Ontario.
Peterborough point: Canadian Geographical Names Database (CGNDB), Natural Resources Canada, record FDGEJ (CITY), latitude 44.3011111, longitude -78.3333334 as printed (https://geogratis.gc.ca/services/geoname/en/geonames/FDGEJ). The dotted circle marks the 50 km study radius requested for this map. Contains information licensed under the Open Government Licence – Canada.

NOTES
CLI: CLASS_A is the primary/dominant class of each polygon (AAFC CLI Data Product Specification, ISO 19131, section 4.2.1.3), labelled as AAFC's own legend for the 1:250,000 layer prints it. Polygons with a blank CLASS_A have no class in that legend and are drawn without fill. Reader note: many polygons north of Peterborough carry CLASS_A = O with blank subclass and percent fields; at the points checked there (44.7 N 78.2 W; 44.65 N 78.1 W) the AAFC 1:1,000,000 CLI layer prints '(7) No Capability for arable culture or permanent pasture'. The map shows the 1:250,000 value as published.
SLC: one colour per SOIL_GREAT_GROUP_CODE value as stored in the AAFC cartographic SLC service; 1:1 million scale, so polygons are generalised landscapes, not field-level soil maps.
ACI: classes are AAFC's own simplified groups from the ImageServer raster function, not regrouped by this script. Non-agricultural groups are transparent so the basemap shows through.
Frames: panels A and B show a square around Peterborough; panel C keeps the same height and is wider, so it also shows land outside the 50 km circle (e.g. Lake Simcoe to the west).
No areas, percentages or other numbers were calculated for display.

HOW THIS FIGURE WAS MADE
Made in QGIS. PyQGIS script peterborough_farmland_v2.py, written for QGIS 3.44.15 on Windows (Python Console editor). This copy was exported headlessly in QGIS 3.40.6-Bratislava on 2026-11-18 (test render, not run by Neil in his own QGIS). All layers fetched by URL from the services listed above and cached in ~/peterborough_farmland_cache.
Peterborough watersheds. Peterborough, Ontario: Otonabee River – Kawartha Lakes watersheds QGIS, AI-assisted Python
  • Contains information licensed under the Open Government Licence – Canada.
  • Contains information licensed under the Open Government Licence – Ontario.
  • Made in QGIS with AI-assisted Python (PyQGIS) scripting.
Full caption and credits
Peterborough, Ontario: Otonabee River – Kawartha Lakes watersheds

WHAT IS SHOWN
- Catchment: Ontario Watershed Boundaries (OWB) tertiary watersheds 02HF Gull River, 02HG Scugog River, 02HH Kawartha Lakes, 02HJ Otonabee River (black line with white casing, labelled with the OWB name and code).
- Sub-watersheds: OWB quaternary watersheds (white outlines), filled by their tertiary unit; codes are not labelled on the map (too small to fit legibly). Codes and names:
    02HF-01  Cameron Lake Dam - Fenelon River
    02HF-02  Goose Lake - Burnt River
    02HF-03  Coboconk Dam - Gull River
    02HF-04  Three Brothers Falls - Burnt River
    02HF-05  Minden Dam - Gull River
    02HF-06  Birchbark Lake - Irondale River
    02HF-07  Drag River
    02HF-08  Buttermilk Falls - Halls Lake
    02HF-09  Farquhar Lake - Irondale River
    02HF-10  Redstone River
    02HF-11  Pine Lake - Gull River
    02HG-01  Lake Scugog - Scugog River
    02HG-02  Mariposa Brook
    02HG-03  East Cross Creek
    02HG-04  Nonquon River
    02HH-01  Stony Lake - Katchewanooka Lake
    02HH-02  Burleigh Falls Dam - Lower Buckhorn Lake
    02HH-03  Pigeon Lake - Gannon Narrows
    02HH-04  Bobcaygeon River
    02HH-05  Mississagua River
    02HH-06  Eels Creek
    02HH-07  Omemee Dam - Pigeon River
    02HH-08  Nogies Creek
    02HH-09  Deer Bay Creek
    02HJ-01  Hastings Lock 18 Dam - Trent River
    02HJ-02  Otonabee River Outlet
    02HJ-03  Lock 19 - Otanabee River
    02HJ-04  Ouse River
    02HJ-05  Indian River
    02HJ-06  Cavan Creek
- Rivers and streams: Ontario Hydro Network (OHN) generalised 1M watercourse layer.
- Lakes: OHN generalised 500K waterbody layer.
  Boundaries and hydrography were requested with server-side generalisation (maxAllowableOffset 0.0002 deg) for display only.
- Dashed lines: Ontario upper-tier and single-tier municipal boundaries.
- Places: Geographic Names Ontario, plotted at the latitude/longitude printed in each record.
- Basemap: NRCan MRDEM-30 DTM hillshade (greyscale shaded relief; Open Government Licence - Canada, commercial use permitted with attribution).
- Stream gauges: Water Survey of Canada hydrometric stations whose station number falls in the tertiary codes above (triangles; filled = Active, hollow = Discontinued, as printed by the source).
  Discharge: latest daily mean with a non-empty DISCHARGE in HYDAT (GeoMet hydrometric-daily-mean), with the DATE the source gives for it. ECCC documents discharge as cubic metres per second (m³/s). Values are not averaged, converted or derived. GeoMet returns HYDAT single-precision numbers with float noise (e.g. 7.521999835968018); they are printed at single precision (7 significant digits), which is the stored value. 'Symbol' is DISCHARGE_SYMBOL_EN exactly as printed (e.g. 'Estimated', 'Ice Conditions', 'Partial Day'); blank = none. 'no discharge in HYDAT' = HYDAT annual statistics for the station list water level only (e.g. lake-level stations).

STATIONS (station number, name, status, discharge m³/s, date, symbol)
  02HF002  GULL RIVER AT NORLAND  [Active]  6.15  2025-12-31
  02HF003  BURNT RIVER NEAR BURNT RIVER  [Active]  7.25  2025-12-31
  02HF004  BOB CREEK NEAR MINDEN  [Discontinued]  0.007  1992-06-29  Estimated
  02HF005  BURNT RIVER AT THREE BROTHERS FALLS  [Active]  5.83  2025-12-31  Ice Conditions
  02HG001  MARIPOSA BROOK NEAR LITTLE BRITAIN  [Active]  1.53  2005-12-31  Estimated
  02HG002  NONQUON RIVER NEAR PORT PERRY  [Discontinued]  0.074  2022-07-20
  02HG003  BLACKSTOCK CREEK NEAR BLACKSTOCK  [Active]  0.323  2025-12-31  Ice Conditions
  02HG006  LAKE SCUGOG AT SCUGOG ISLAND MARINA  [Active]  no discharge in HYDAT
  02HH001  EELS CREEK BELOW APSLEY  [Discontinued]  2.47  1993-07-13  Partial Day
  02HH002  MISSISSAGUA RIVER BELOW MISSISSAGUA LAKE  [Discontinued]  3.25  1993-07-13  Partial Day
  02HH003  PIGEON RIVER NEAR LOTUS  [Active]  0.226  2025-12-31
  02HH004  INDIAN RIVER AT GILCHRIST BAY  [Discontinued]  1.08  2005-12-31  Estimated
  02HH005  PIGEON RIVER AT OMEMEE  [Active]  no discharge in HYDAT
  02HH006  STURGEON LAKE AT FENELON FALLS  [Active]  no discharge in HYDAT
  02HJ001  JACKSON CREEK AT PETERBOROUGH  [Active]  0.926  2025-12-31
  02HJ002  OTONABEE RIVER AT LAKEFIELD  [Discontinued]  21  2002-07-15  Partial Day
  02HJ003  OUSE RIVER NEAR WESTWOOD  [Active]  1.56  2025-12-31
  02HJ005  SQUIRREL CREEK NEAR BAILIEBORO  [Discontinued]  0.101  2019-11-06  Partial Day
  02HJ006  JACKSON CREEK NEAR JACKSON HEIGHTS  [Active]  0.647  2025-12-31
  02HJ007  BAXTER CREEK AT MILLBROOK  [Active]  0.586  2025-12-31
  02HJ008  INDIAN RIVER AT GILCHRIST BAY  [Discontinued]  0.978  2019-11-06  Partial Day
  02HJ009  INDIAN RIVER ABOVE HOPE MILL DAM  [Active]  no discharge in HYDAT
  02HJ010  OTONABEE RIVER NEAR ROBINSONS ISLAND  [Active]  no discharge in HYDAT
  02HJ011  OUSE RIVER AT NORWOOD  [Active]  no discharge in HYDAT
  02HJ012  INDIAN RIVER BELOW HOPE MILL DAM  [Active]  no discharge in HYDAT

SOURCES AND LICENCES
- Basemap: hillshade of the Medium Resolution Digital Elevation Model (MRDEM-30, DTM), CanElevation Series, Natural Resources Canada. Contains information licensed under the Open Government Licence – Canada (https://open.canada.ca/en/open-government-licence-canada). Dataset: https://open.canada.ca/data/en/dataset/18752265-bda3-498c-a4ba-9dfe68cb98da ; file: https://canelevation-dem.s3.ca-central-1.amazonaws.com/mrdem-30/mrdem-30-dtm-hillshade.tif (reprojected to EPSG:26917 and resampled to 40 m for display).
- Contains information licensed under the Open Government Licence – Ontario (https://www.ontario.ca/page/open-government-licence-ontario). Source: Ontario Ministry of Natural Resources, Land Information Ontario (LIO) Open Data via Ontario GeoHub (https://geohub.lio.gov.on.ca), REST: https://ws.lioservices.lrc.gov.on.ca/arcgis2/rest/services/LIO_OPEN_DATA
- Contains information licensed under the Open Government Licence – Canada (https://open.canada.ca/en/open-government-licence-canada). Source: Environment and Climate Change Canada, Water Survey of Canada; HYDAT National Water Data Archive via MSC GeoMet-OGC-API (https://api.weather.gc.ca/collections/hydrometric-stations, /hydrometric-daily-mean, /hydrometric-realtime). Data portal: https://wateroffice.ec.gc.ca

Map projection: NAD83 / UTM zone 17N (EPSG:26917); graticule in degrees (WGS 84). Colours: Okabe-Ito colour-blind-safe palette.

Made in QGIS (3.40.6-Bratislava). Generated by peterborough_watersheds_v2.py on 2026-11-18; all data fetched by the script from the sources above.

Open the image in a new tab for full size.