跳至主要內容 / Skip to main content
1963年香港航拍:從一幅大圖到可以放大的地圖
教學

1963年香港航拍:從一幅大圖到可以放大的地圖

HK GeoTiles約 2 分鐘閱讀460 次閱讀
將1963年香港航拍大圖轉為可隨意縮放的網頁地圖,仰賴精準的坐標轉換與圖磚技術。這打破了巨型檔案的讀取限制,讓網頁能按需流暢載入影像。圖磚並未改寫歷史細節,而是徹底革新我們探索舊日城市風貌的方式。
460

香港圖磚|1963 年香港航拍:從一幅大圖到可以放大的地圖

要把一幅巨大的歷史航拍影像,變成可以在網頁上隨意拖曳、放大的地圖,關鍵不只是把它「切成小圖」,還要確保每張小圖都準確地放在對的地理位置上。本文以 1963 年的香港航拍影像為例,帶你從真實的照片出發,輕鬆了解 GeoTIFF、坐標轉換與「地圖圖磚」之間的關係。內容不涉及複雜的軟件操作,請放心閱讀!

香港的海岸線、村落與街道,在過去數十年間經歷了翻天覆地的變化。翻開昔日的航拍照片,我們能看見填海前的海旁、尚未開發的土地,以及今天已經消失的城市風貌。不過,歷史影像通常是一張張獨立的大型檔案。如果每次想看地圖,都得先下載、打開,然後再手動尋找旁邊相連的圖片,閱讀體驗很容易被這些檔案的邊界給打斷。

「香港航拍全圖」想改變的,正是這種觀看方式:我們把能找到的影像整理成一個連續的圖層,讓大家能像使用現在的網頁地圖一樣,隨意拖曳、放大,輕鬆探索 1963 年的香港。

想知道這是怎麼做到的嗎?你可以先記住三個核心概念:

  • GeoTIFF: 帶有地理定位資訊的大型圖片。
  • 圖磚 (Tiles):讓網頁能根據你的視角,按需載入的小圖片。
  • 製作過程: 把大圖變成地圖圖磚,不只要處理「圖片」本身,還要處理「位置」。

1|先看原圖:歷史影像本來是甚麼樣子?

我們先來看看一幅真實的 GeoTIFF 檔案:63D11SW9C00.tif。畫面中可以看到海旁、碼頭、道路、建築和停車場。下圖只是縮小的預覽圖,完全沒有經過 AI 補圖或添加額外的歷史細節。

01 real source

01 real source
真實影像全貌。圖資:香港地政總署測繪處;原檔由使用者提供

圖 1|63D11SW9C00.tif 真實影像全貌。圖資:香港地政總署測繪處;原檔由使用者提供。

這幅圖的解析度高達 7,500 × 6,000 個像素,也就是 4,500 萬個像素。原始檔案記錄著,這裡的每個像素大約等於地面上的 0.1 米,所以整幅圖大約涵蓋了 750 × 600 米的範圍。

不過要留意,「每個像素代表 0.1 米」並不代表畫面上所有東西的位置都精準到 0.1 米。前者只是影像的「解析度」;至於位置準不準,還會受到原始照片的拍攝角度、定位技術、地形起伏,以及影像校正過程等多種因素影響。

GeoTIFF 比一般圖片多了甚麼?

一般的圖片只會告訴電腦:「這裡塗黑色、那裡塗灰色」;但能夠正確定位的 GeoTIFF,還會提供額外的資訊,教電腦把這些像素準確地「放回」地球表面。

你可以把它想像成一張「附帶位置和比例尺的拼圖」。除了畫面本身,我們還需要知道:

  • 這塊拼圖該放在地圖上的哪裡;
  • 每個像素代表多大的真實地面範圍;
  • 它是用哪一套「坐標系」來定位的。

02 real grid

02 real grid
影像、定位與坐標系的關係。圖中像素是抽象示意,並非真實航拍。

圖 2|影像、定位與坐標系的關係。圖中像素是抽象示意,並非真實航拍。

在這個例子中,原圖使用的是香港常見的 HK80 方格坐標系(EPSG:2326)。你可以把坐標系想像成一套「描述地點的語言」:同一個位置,用不同的語言(坐標系)來表達,數字就會不一樣。

2|為甚麼不能直接把大圖放上網頁?

其實不是完全不行,而是直接把這麼大的圖片放上網頁,並不適合讓人連續瀏覽大量的影像。

試想一下,如果你只想看畫面中的一個小碼頭,卻被迫要下載整幅大圖,甚至要下載整個地區的好幾張大圖,那會非常浪費時間和網路流量。特別是用手機瀏覽時,根本沒必要一次下載那些畫面外、你看不到的部分。

「圖磚」的做法,就是把地圖整理成許多小圖。你的畫面滑到哪裡,瀏覽器就只下載那裡需要的小圖。 當你把地圖放大時,它再幫你切換成另一組更清晰、更細緻的小圖。

不過,要把大圖製作成網頁地圖圖磚,可不能像用剪刀剪紙那樣直接切開就好。因為原圖和網頁地圖可能使用的是不同的坐標系,網格也未必能完美對齊。

整個轉換過程可以簡單概括為:

讀取原本位置 → 對準網頁地圖網格 → 重新計算像素 → 輸出成小圖。

03 geotiff

03 geotiff
在此輸入說明文字

圖 3|GeoTIFF 轉圖磚流程。這不只是把圖片切開,還包括坐標轉換與重採樣。

先對準位置,再決定像素

現在的網頁地圖大多使用 Web Mercator(EPSG:3857) 坐標系。要把原本是 HK80 坐標的影像放進這個網頁地圖裡,我們需要進行「坐標轉換」,讓道路、海岸和建築物都能落在正確的位置上。這個過程在技術上稱為「重投影」。

轉換之後,新的網頁網格通常沒辦法和原圖的像素一一完美重疊。因此,電腦必須根據原圖的資料,重新計算新網格裡每個像素應該是什麼顏色,這個過程叫做「重採樣」。

舉例來說,當我們把影像縮小時,電腦會綜合好幾個原圖像素的顏色,計算出一個新的像素。

要強調的是,重採樣只是重新排列影像資訊,並不是無中生有地增加歷史細節。 同樣地,即使我們把圖片「銳化」讓邊緣看起來更清晰,也無法補回當年照片裡根本沒拍到的內容。

3|把大圖切開,實際上是甚麼樣子?

我們先暫時撇開複雜的坐標轉換,單純來看看「切成小圖」是怎麼回事。

下面的示範,我們直接拿原圖的像素來切,每隔 256 個像素畫一條線。你可以看到,同一條馬路或同一棟建築,可能會橫跨好幾個方格。

04 real before after

04 real before after
在此輸入說明文字

圖 4|真實影像的原生像素格網。圖資:香港地政總署測繪處;未重投影。

接著,我們把其中六塊拿出來看,每一塊都是 256 × 256 像素。雖然這些小圖都被存成了獨立的檔案,但把它們排在一起時,畫面依然是連續的。

05 real separated

05 real separated
在此輸入說明文字

圖 5|六塊實際 PNG 切片;保留原生像素,沒有銳化或 AI 補繪。

切開後,內容會不會改變?

如果我們只是順著原圖的像素「無損」切開,然後再依原位拼回去,就能百分之百保留原來的畫面內容。

下圖左邊是原圖的一部分;右邊則是把同一個範圍切成十六塊 PNG 小圖後,再拼回去的樣子。兩邊縮小的比例一樣,右邊特別加上了藍線,方便你看出小圖的分界。

06 pyramid

06 pyramid
在此輸入說明文字

圖 6|真實 GeoTIFF 局部與 PNG 拼接對照。藍線只用於解說。

這次示範的切片,拼回去後和原圖的像素完全一模一樣。不過,這只能證明「原生像素切片」不會改變內容;如果在前面提到的坐標轉換和重採樣過程中,像素還是會經過重新計算的。

邊緣不夠切成一塊,該怎麼辦?

原圖的寬度和高度,不一定剛好是 256 的倍數。這時候,最邊緣的小圖可能只有一半有畫面。為了保持每張小圖都是一樣的尺寸,剩下空白的地方就會用「透明」來填補。

07 real edge

07 real edge
在此輸入說明文字

圖 7|真實邊緣切片的透明補邊。此處示範原圖邊界,不是 1963 資料集內缺圖區的分佈。

這幅樣本圖如果按照原生像素切開,總共會切出 720 張 PNG 小圖。

這裡展示的真實圖片,只是為了示範「原圖切開與拼回的驗證」,還沒有進行 Web Mercator 的坐標轉換,也沒有對齊全球的網頁地圖網格。因此,720 張只是這幅圖在這種切法下的結果,不代表最終網頁使用的圖磚數量,也不能直接乘上全港的原圖數量來推算整體的工作量。

4|由一幅圖走向全港:兩套分界如何接起來?

每一幅原始的 GeoTIFF 大圖,都有自己的邊界;而網頁地圖的圖磚,則有另一套固定的網格系統。這兩套分界線,通常是不會剛好重疊的。

你可以想像一下:桌上拼著幾張大地圖,上面再蓋上一張畫滿方格的透明膠片。透明膠片上每個方格所看見的畫面,可能剛好來自一張大地圖,也可能剛好壓在好幾張大地圖的交界處。

08 mosaic

08 mosaic
在此輸入說明文字

圖 8|一塊圖磚可以取用四幅原圖的交集。這是幾何示意,不是實際圖幅大小或覆蓋圖。

結語|切成小圖,是為了更容易閱讀大歷史

GeoTIFF 保存影像及其地理位置;坐標轉換把不同資料放進共同網格;圖磚則讓瀏覽器只載入眼前需要的部分。這幾件事配合起來,便能把逐幅打開的歷史影像,轉成可以連續探索的地圖。圖磚沒有改寫 1963 年的香港,也沒有提高原始影像的測量精度。它改變的是閱讀方式:讓我們更容易沿着一條舊路、追着一段海岸,理解城市如何走到今天。


圖源及延伸閱讀

  • 圖資來源:地政總署 DOP1000-1963P。
  • 技術原理:GeoTIFF 標準、GDAL 重投影說明。
  • 圖磚格式:XYZ 圖磚、MBTiles 規格。
EN

English Summary

The urban landscape of Hong Kong has undergone unprecedented transformations over the past six decades, with extensive land reclamation and rapid development fundamentally reshaping its coastlines, villages, and street grids. For urban historians and geography enthusiasts, the aerial photographs captured in 1963 serve as a crucial visual archive of a city on the precipice of modernization. However, exploring these historical landscapes has traditionally been a fragmented and cumbersome process. Archival aerial imagery is typically stored as massive, isolated files that require individual downloading and manual alignment. This disjointed format severely disrupts the analytical workflow, making it difficult to trace continuous geographical features across different photographs. Recognizing this limitation, the objective of modern digital archiving is to transform these unwieldy, standalone files into a continuous, interactive web map that functions with the same fluidity as contemporary navigation platforms, allowing users to pan and zoom across the historical terrain seamlessly.

At the core of this transformation is the utilization of GeoTIFF files, which serve as the foundational building blocks for digital historical cartography. Unlike standard image files that merely store pixel colour values, a GeoTIFF embeds vital geospatial metadata, enabling geographic information systems to anchor the historical photograph to precise real-world coordinates. For instance, a single 1963 Hong Kong aerial photograph can contain up to 45 million pixels, covering an area of 750 by 600 metres with an impressive ground resolution of approximately 0.1 metres per pixel. Originally, these files are georeferenced using the local HK80 grid system (EPSG:2326). To integrate these images into modern web-based mapping environments, a rigorous technical process of coordinate transformation, known as reprojection, is required. The imagery must be mathematically converted to the Web Mercator projection (EPSG:3857), the universal standard for interactive web maps. During this reprojection, the original pixels do not align perfectly with the new web grid, necessitating a process called resampling. It is crucial to note from an archival perspective that resampling recalculates pixel values based strictly on the original data; it merely rearranges the existing visual information to fit the new spatial framework without artificially hallucinating or interpolating non-existent historical details.

To solve the issue of bandwidth and user experience, HK GeoTiles employs a sophisticated map tiling architecture that prevents the need to load massive datasets simultaneously. Instead of delivering a single, monolithic image, the reprojected historical map is systematically subdivided into thousands of standardized tiles, typically measuring 256 by 256 pixels. As a user navigates the web map, the browser dynamically requests and renders only the specific tiles corresponding to the current viewport and zoom level. Implementing this system requires meticulous spatial management, primarily because the irregular boundaries of the original aerial photographs rarely align perfectly with the rigid, fixed grid of the web mapping system. A single map tile might intersect the boundaries of up to four different original aerial photographs. The system seamlessly stitches these intersections together, utilizing transparent padding for tiles that extend beyond the edges of the original data coverage. By meticulously handling these spatial overlaps and boundary discrepancies, the tiling process weaves hundreds of disparate aerial shots into a unified, uninterrupted historical fabric.

For international GIS professionals, urban researchers, and history enthusiasts, this methodological shift from static archival files to dynamic map tiles fundamentally revolutionizes the exploration of historical geography. While the conversion process does not artificially enhance the inherent precision or optical quality of the original 1963 surveying technology, it profoundly elevates the accessibility and analytical utility of the data. Researchers are no longer constrained by the artificial borders of individual file downloads; instead, they can intuitively follow the trajectory of a long-lost coastal road, observe the layout of demolished walled villages, or analyze historical urban planning across a continuous spatial continuum. By democratizing access to complex geospatial archives through standardized, on-demand web tiles, platforms like HK GeoTiles effectively bridge the gap between rigorous cartographic science and accessible historical inquiry, allowing global audiences to engage with Hong Kong's rich urban evolution in a highly intuitive and visually cohesive manner.

香港圖磚
hkgeotiles
香港歷史
香港航拍
1963香港
城市記憶
香港地圖
GeoTIFF
地圖圖磚
XYZTiles
WebMercator
460
H

HK GeoTiles

HK GeoTiles 撰稿人

致力於整理及分享香港歷史地圖磚資源,讓公眾更容易取用珍貴的地理資訊。

載入附件中…

相關文章

查看全部