Generic oblique
Oblique aerial photos as JPEGs, in any folders, with one orientations.csv at the top of the bucket. The CSV has a row per photo with the camera's position and rotation, the lens, the ground the photo covers and the time it was taken.
Use this when your oblique photos do not come in one of the supplier layouts: write one CSV that says everything about every photo, and deliver it with the JPEGs. Nothing else is read, and nothing is read from the pixels beyond the frame header.
Photos are grouped by the set you give them, for example one
set per viewing direction.
Folder layout#
<dataset bucket>/
├── orientations.csv
└── flight-1/
└── photos/
├── 10009_north.jpg
└── 10058_east.jpg
orientations.csv sits at the top of the bucket and its name is exact, in
lower case. The photos can be in any folders, as deep as you like; other
files beside them are ignored.
Photos#
| Format | JPEG |
| Extensions | .jpg and .jpeg, case-insensitive |
| Names | free; the CSV names each photo by its path |
Deliver the photos as the orientations describe them: do not rotate, crop
or resize them afterwards. Every .jpg in the bucket is taken as a photo
of the delivery, so leave out thumbnails and previews.
- Every delivered photo must start with a JPEG marker and end with an end-of-image marker. This catches a file that is not a JPEG whatever its extension says, and the truncated upload — which a size check cannot see, since nothing knows how big the file should have been.
- Every
.jpgin the bucket needs a row inorientations.csvwhosepathis the photo's path in the bucket. A photo without one cannot be placed; leave out photos that are not part of the delivery. - Every photo's JPEG frame header (read from the start of the file; the pixels are not downloaded) must give its row's
width_pxandheight_px. A resized, cropped or rotated photo no longer matches its orientation and lens.
The orientations file#
A comma-separated file with a header row, one row per photo. Columns are found by their name (upper or lower case), so their order is free; columns not listed here are ignored. Numbers use a decimal point.
| Column | |
|---|---|
path | the photo's path in the bucket, e.g. flight-1/photos/10009_north.jpg |
set | the group the photo belongs to in the viewer, e.g. North |
captured_at | capture time in UTC, e.g. 2023-04-30T13:52:38Z |
x, y, z | projection centre, in the dataset's coordinate reference system |
omega, phi, kappa | the photo's rotation, degrees (see Orientations) |
focal_length_mm | focal length, millimetres |
pixel_size_um | size of one pixel on the sensor, micrometres |
width_px, height_px | the photo's size, pixels |
footprint_x1, footprint_y1 … footprint_x4, footprint_y4 | the ground the photo covers: where its top-left, top-right, bottom-right and bottom-left corners land, in the dataset's coordinate reference system |
Every photo needs a row and every row needs its photo.
orientations.csvsits at the top of the bucket, is comma-separated with a header row, has every column listed here, and every row reads: numbers with a decimal point,captured_atas a UTC time like2023-04-30T13:52:38Z, and each photo once.- Every row in
orientations.csvhas its photo. A row without a photo means the upload is incomplete. - Every projection centre (
x,y,z) must lie within 10 km of its own footprint and between 50 and 10 000 m height: the coordinates are in the dataset's coordinate reference system. - No photo's
captured_atmay lie in the future. The capture days become the dataset's acquisition dates. - A footprint is computed from each row's position, angles and lens and compared with the row's footprint corners. Widespread disagreement means the angles or the lens do not describe the delivered photos, and they would be placed wrongly in the viewer — worth a look before accepting. (a warning, not an error)
Orientations#
omega, phi and kappa are the photogrammetric rotation of the camera,
applied in that order (ω about x, then φ about y, then κ about z), with the
camera's x axis to the right of the photo, y to its top, and the camera
looking along −z. The world axes are x east, y north and z up. They are used
exactly as written.
As a cross-check, a footprint is computed from each row's position, rotation and lens and compared with the row's footprint corners. Widespread disagreement is a warning: the rotation or the lens does not describe the photo.
Lens#
focal_length_mm and pixel_size_um together give the focal length in
pixels, which is what places the photo; the principal point is taken to be
the centre of the photo, and lens distortion is not modelled. width_px and
height_px must be the size of the JPEG as delivered.
Coordinate reference system#
x, y, z and the footprint corners must be in the dataset's coordinate
reference system (for the Netherlands, RD with NAP heights). They are stored
as delivered; nothing is reprojected.
Timestamps#
captured_at is the capture time in UTC, written as
YYYY-MM-DDTHH:MM:SSZ; fractions of a second are welcome. The capture days
become the dataset's acquisition dates.
What you get back#
- One indexed oblique photo per delivered JPEG, with its projection centre, orientation, lens, footprint and capture time, in its set.
- A tilepack per photo, and a deep-zoom SZI per photo for tenants on Omnibase.
Common failures#
| Symptom | Cause |
|---|---|
| A photo has no row | A .jpg in the bucket that the CSV does not name, or a path that differs from the photo's real path |
| A row has no photo | An upload that stopped before all photos were in |
| A photo's size differs from its row | Photos resized, cropped or rotated after the CSV was written |
| A projection centre is far from its footprint | Coordinates in another coordinate system than the dataset's |
| Footprints disagree with the orientations | Another rotation convention, or a wrong focal length or pixel size |