-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Context
The BC Air Photo Database spec (April 2008, CRGB) defines rich per-roll and per-flight-line metadata:
- Type 02 (Roll): camera focal length code, film emulsion code
- Type 03 (Line): average flying height (m), requested flying height (m), flight line azimuth
- Type 04 (Photo): tilt/crab/verticality codes, scale-off code, forward overlap code
However, the centroid layer available from BC Data Catalogue (AIMG_PHOTO_CENTROIDS_SP) only exposes simplified fields: airp_id, photo_year, photo_date, scale, film_roll, frame_number, media, photo_tag, nts_tile.
What IS available programmatically
The centroid layer has two URL columns not currently used by fly:
thumbnail_image_url— photo thumbnails atopenmaps.gov.bc.ca/thumbs/flight_log_url— flight log PDFs atopenmaps.gov.bc.ca/thumbs/logbooks/
The flight log PDFs likely contain camera type, focal length, negative format, flying height, and other metadata from the full database spec. These are grouped by roll, so one PDF covers many photos.
Potential approaches
-
Parse flight log PDFs — download unique
flight_log_urlvalues, extract text (many may be scanned so OCR needed), pull camera/focal length/flying height per roll. Join back to centroids byfilm_roll. -
Request bulk database export — the province may provide the full Air Photo System database (or relevant tables) as a data release or FOI request. This would give machine-readable access to all Type 01-04 fields.
-
WIMSI web scraping — the Web Imagery Search Interface may expose additional fields per photo not available in the WFS layer.
What this unlocks
- Accurate negative size — confirm 9x9 or identify non-standard formats per roll (currently hardcoded as default)
- Flying height per flight line — combined with focal length, gives true scale at terrain rather than reported nominal scale
- Tilt/crab angles — for future terrain-adjusted footprints (issue DEM-based terrain-adjusted footprints #9)
- Forward overlap codes — the database already flags substandard overlap, useful for
fly_overlap()validation
Reference
- BC Air Photo Database Specs (PDF) — full field definitions
- newgraphiti blog post — documents available BC Data Catalogue layers and the flight log URL discovery
bcdatarecord:WHSE_IMAGERY_AND_BASE_MAPS.AIMG_PHOTO_CENTROIDS_SP
Acceptance criteria
- Investigate flight log PDF structure and parseability
- Prototype extraction of focal length and flying height from a sample of flight log PDFs
- Evaluate which approach (PDF parsing vs bulk data request) is viable
- If viable, create helper to enrich centroid data with flight metadata