Google 地球可讓您匯入自己的地理空間資料,以便查看、分析及分享。您可以透過多種方式匯入資料,具體取決於檔案類型、大小和使用方式:
- 做為地圖項目:適用於簡單的 KML/KMZ 檔案,最多可包含 10,000 個地圖項目或 250,000 個頂點。地圖項目會直接新增至 Google 雲端硬碟中的 Google 地球專案,且可編輯。如果檔案過大,系統會自動將其載入為資料層。
- 資料層:適合大型資料集 (KML、GeoJSON、shapefile)。資料層經過最佳化,可提升效能,並嵌入 Google 地球專案,儲存在 Google 雲端硬碟中。你可以設定樣式,但無法編輯。 資料層會占用 Google 地球儲存空間配額。
- 本機 KML 檔案:開啟儲存在裝置上的 KML/KMZ 檔案。這些檔案不屬於雲端硬碟專案,而且只有在開啟檔案的裝置上才能看到。
如要進一步瞭解圖層、地圖項目和本機檔案之間的差異,請參閱「瞭解 Google 地球專案和本機 KML 檔案」一文。
如要將資料從 Google 地球專業電腦版遷移至 Google 地球網路版,請參閱「將資料從 Google 地球專業電腦版遷移至 Google 地球網路版」。
電腦
匯入為資料層
這個方法最適合以視覺化方式呈現大型資料集。
支援的檔案格式:
- KML、KMZ
- GeoJSON
- Shapefile (ZIP 檔案)
- (實驗功能) CSV (
.csv) - Google 試算表 (來自 Google 雲端硬碟) (實驗功能)
如要將檔案匯入為資料層,請按照下列步驟操作:
- 在電腦上開啟 Google 地球,並確認你已登入帳戶。
- 您可以透過下列幾種方式開始匯入:
- 在主畫面中:依序按一下「新增」「匯入檔案」。
- 在專案選單中:依序按一下「檔案」「匯入」。
- 從裝置或 Google 雲端硬碟中選擇檔案。
- 在匯入對話方塊中,選取「匯入為資料層」。如果檔案過大或不適合地圖項目,系統可能會預先選取這個選項,或只提供這個選項。
- 除了 KML 以外,所有檔案類型都會預先選取這個選項。
- 表格資料集會擷取為 Google 地球資料層。
- 系統會上傳並處理檔案。您可以在匯入小工具中追蹤進度。大型檔案可能需要一些時間。
完成後,圖層就會新增至開啟的專案,如果沒有開啟的專案,則會新增至新專案。
匯入的資料層會受到儲存空間配額限制,具體取決於您的 Google 地球方案。詳情請參閱「管理匯入的資料層和儲存空間」。
匯入 CSV 和 Google 試算表檔案 (實驗功能)
下表說明 CSV 和 Google 試算表檔案支援的格式。
| 格式類型 | 說明 | 範例 |
|---|---|---|
| 經度和緯度 (分欄) | 兩個獨立資料欄,包含 WGS84 範圍內 (緯度 -90.0 至 90.0,經度 -180.0 至 180.0) 的帶正負號十進制度數值座標。座標不得包含度數符號 (°) 或基本方向字母 (N、S、E、W)。負值代表南緯和西經。 |
|
| Well-Known Text (WKT) | 包含標準 WKT 幾何圖形的資料欄 (例如 POINT、POLYGON、LINESTRING)。座標必須採用 WGS84 十進位度數 (經度 -180.0 至 180.0,緯度 -90.0 至 90.0),並使用標準經度緯度順序 (例如 POINT(-122.084
37.422))。WKT 關鍵字和標頭不區分大小寫。 |
|
| 地址欄 | 包含完整街道地址的資料欄。Google 地球可辨識單一資料欄中的街道地址,並在全球範圍內進行地理編碼。 |
|
其他非空間資料欄 (例如名稱、日期、說明、類別或數值指標) 會自動保留為特徵屬性,並顯示在資料表和屬性檢查資訊卡中。
錯誤處理
如果個別資料列包含無效座標,或地理編碼器無法解析,Google 地球仍會匯入所有其他有效資料列。如果系統無法在檔案中自動偵測到任何幾何圖形,匯入對話方塊會顯示錯誤,引導您檢查資料欄格式。
將地圖項目匯入 Google 地球專案
這個方法適用於最多 10,000 個地圖項目的 KML 或 KMZ 檔案。
如要將檔案匯入現有專案,請按照下列步驟操作:
- 在電腦上開啟 Google 地球,並確認你已登入帳戶。
- 在主畫面中,按一下現有專案。
- 依序按一下左上方的「檔案」「將檔案匯入『{Project name}』」。
- 如要從 Google 雲端硬碟新增檔案,請按一下「從雲端硬碟匯入」。
- 如要直接從電腦新增檔案,請按一下「從裝置上傳」。
- 選取要匯入的檔案。
- 如果系統提示您選擇輸出類型,請選取「Import as project features」。
選取要匯入的檔案後,系統會自動將檔案新增至現有的 Google 地球專案。
如要前往主畫面,請按一下「地球」圖示
。
將檔案匯入新專案
您可以將舊版 Google 地球的 KML 或 KMZ 檔案 (最多 10,000 個地圖項目) 匯入新專案。
如要將檔案匯入新的 Google 地球專案,請按照下列步驟操作:
- 在電腦上開啟 Google 地球。
- 依序按一下左上方的「新增」「將檔案匯入專案」。
- 如要從 Google 雲端硬碟新增檔案,請按一下「從雲端硬碟匯入」。
- 如要直接從電腦新增檔案,請按一下「從裝置上傳」。
- 選取要匯入的檔案。
選取要匯入的檔案後,系統會自動建立新專案,並儲存在 Google 雲端硬碟。
如要前往主畫面,請按一下「地球」圖示
。
將「我的地圖」檔案匯入新專案
您可以直接從 Google 雲端硬碟開啟在 Google 我的地圖中建立的地圖,並在 Google 地球介面中查看。
如要開啟並轉換「我的地圖」檔案,請按照下列步驟操作:
- 在電腦上開啟 Google 地球。
- 依序點選「新增」>「從雲端硬碟開啟『我的地圖』」。
- 在 Google 雲端硬碟視窗中找到「我的地圖」檔案,選取該檔案,然後按一下「Insert」(插入)。
- 「我的地圖」檔案現在會以僅供檢視模式顯示在 Google 地球中。
- 如要編輯資料,請按一下頂端工具列中的「Copy to Map Project」(複製到地圖專案) (僅適用於網頁版)。
- 系統會提示您重新命名專案標題 (選用),並更新共用權限。完成後,按一下「確定」。
地圖現在會另存為新的可編輯 Google 地球地圖專案。原始的「我的地圖」檔案仍會保留在 Google 雲端硬碟中。
在 Google 地球開啟本機 KML 檔案
您可以將舊版 Google 地球的 KML 或 KMZ 檔案 (沒有功能限制) 開啟為本機 KML 檔案。
如要在 Google 地球開啟本機 KML 檔案,請按照下列步驟操作:
1. On your computer, open <a href="https://earth.google.com/">Google Earth</a>.
2. At the bottom left on the home screen, click **Open local KML editor**.
3. Click **Open KML from device**.
4. Select the KML file you want to open.
After you select the file you want to open, any changes must be explicitly saved
or downloaded back to your computer's file system to avoid losing work. Autosave
is supported only on Chromium-based desktop browsers.
Note: You can open local KML files in Google Earth even if you're not signed in.
To go to the home screen, click Earth <img src="/maps/documentation/earth/images/earth-logo.png" class="inline-icon" alt="Google Earth
logo">.
## Import other file formats {:#import_other_file_formats}
Google Earth for web and mobile primarily supports KML, KMZ, GeoJSON, and
Shapefile (`.zip`) for direct import.
For [CSV and Google Sheets files](#import-csv-and-google-sheets-files),
Google Earth supports direct import as a data layer with automatic location
detection. For other vector or raster formats (for example, GPX), you can
convert these files to KML or CSV. Once converted to KML, you can import them
into Google Earth.
[Learn how to use KML
features](https://developers.google.com/kml/documentation/).
將資料從 Google 地球專業電腦版遷移至 Google 地球網頁版
If you are moving from Google Earth Pro (Desktop) to the web version, you can
bring your "My Places" data with you.
### Prepare your data for migration {:#prepare_your_data_for_migration}
Before importing, you must export your data from Google Earth Pro:
1. Open **Google Earth Pro** on your computer.
1. In the "Places" panel on the left, right-click on **My Places** or a
specific folder.
1. Select **Save Place As...**.
1. Save the file as a `.kmz` or `.kml` to your computer.
If you cannot open Google Earth Pro or need to find the raw source files
(typically named `myplaces.kml`), they are stored in the following directories.
Note: These folders are often hidden by default.
#### Windows {:#windows}
Copy and paste the following path into your File Explorer address bar:
`%USERPROFILE%\AppData\Local\Google\GoogleEarth`.
Tip: If you are navigating manually, you may need to enable "Hidden items" under
the View tab in File Explorer to see the `AppData` folder.
#### macOS {:#macos}
Open Finder, press **Command** + **Shift** + **G**, and paste this path:
`~/Library/Application Support/Google Earth`.
What to look for:
- `myplaces.kml`: This is your current, live data.
- `myplaces.backup.kml`: A backup created the last time you launched the app.
- `myplaces.kml.tmp`: A temporary file created during a session.
### Import capabilities and limitations {:#import_capabilities_and_limitations}
When migrating "My Places," your choice of import method depends on the
complexity of your data. For a detailed breakdown of supported KML elements,
refer to the [Google Earth KML Import
Guide](https://support.google.com/earth/community-guide/307322063/google-earth-kml-import-guide).
- **Feature Counts**: If you intend to import your data as project features
(allowing you to edit icons, lines, and shapes), there is a limit of
approximately 10,000 features or 250,000 vertices per project. If an import
exceeds these limits, Google Earth will automatically attempt to import your
data as a read-only data layer instead.
- **Large "My Places" Files**: For Google Earth Pro on desktop users that have
"My Places" files that exceed 10,000 features or contain several megabytes
of data we recommend you:
- **Split your data**: Divide your "My Places" into smaller, thematic
folders in Earth Pro and save each as a separate `.kmz` file.
- **Import as Data Layers**: If you have tens of thousands of points and
don't need to edit them individually, use the **Import as a data layer**
option.
- **Copy and Paste**: You can also copy individual features or folders from
Google Earth Pro and paste them directly into a Google Earth project. Simply
select the feature in the desktop version, right-click to Copy (**Ctrl** +
**C** or **Cmd** + **C**), go to your Google Earth browser tab, and Paste
(**Ctrl** + **V** or **Cmd** + **V**) while a project is open.
## Other viewing options {:#other_viewing_options}
For temporary, local-only access, you can also open your KML files directly in
Google Earth on web through the local KML editor experience.
Note: This mode does not support cloud storage or advanced project features.
To see data from multiple projects on the map at once, you can use the
[reference projects](https://medium.com/google-earth/enhancing-project-management-in-google-earth-a-guide-to-the-latest-updates-ad096c34d239)
feature.
Android
將檔案匯入現有的 Google 地球專案
您可以將舊版 Google 地球的簡易 KML 或 KMZ 檔案,匯入現有的 Google 地球專案。如要將檔案匯入現有的 Google 地球專案,請按照下列步驟操作:
- 在 Android 手機或平板電腦上,開啟 Google 地球應用程式
。 - 在主畫面輕觸現有專案。
- 依序輕觸底部的「更多」「將 KML/KMZ 檔案匯入專案」。
- 如要新增 Google 雲端硬碟中的檔案,請輕觸「從雲端硬碟匯入」。
- 如要直接從裝置新增檔案,請輕觸「從裝置上傳」。
- 選取要匯入的檔案。
- 如要返回地圖並開啟檔案,請輕觸「返回」圖示 。
選取要匯入的檔案後,系統會自動將檔案新增至現有專案。
將檔案匯入新專案
您可以將舊版 Google 地球的簡易 KML 或 KMZ 檔案匯入現有專案。如要將檔案匯入現有專案,請按照下列步驟操作:
- 在 Android 手機或平板電腦上,開啟 Google 地球應用程式
。 - 輕觸底部的「新增」。
- 如要從 Google 雲端硬碟新增檔案,請輕觸「從雲端硬碟將檔案匯入專案」。
- 如要直接從裝置新增檔案,請輕觸「從裝置將檔案匯入專案」。
- 選取要匯入的檔案。
- 如要返回地圖並開啟檔案,請輕觸「返回」圖示 。
選取要匯入的檔案後,系統會自動將檔案新增至現有的 Google 地球專案。
在 Google 地球開啟本機 KML 檔案
您可以將舊版 Google 地球的簡易 KML 或 KMZ 檔案,開啟為本機 KML 檔案。如要在 Google 地球開啟本機 KML 檔案,請按照下列步驟操作:
- 在 Android 手機或平板電腦上,開啟 Google 地球應用程式
。 - 在主畫面選取「本地」分頁標籤。
- 依序輕觸右下方的「新增」「本機 KML 編輯器」。
- 選取「開啟裝置中的 KML/Z 檔案」。
- 如要返回地圖並開啟檔案,請輕觸「返回」圖示 。
選取要開啟的檔案後,系統會自動將檔案儲存在主畫面的「本機 KML 檔案」分頁。
iOS
將檔案匯入現有的 Google 地球專案
您可以將舊版 Google 地球的簡易 KML 或 KMZ 檔案,匯入現有的 Google 地球專案。如要將檔案匯入現有的 Google 地球專案,請按照下列步驟操作:
- 在 iPhone 或 iPad 上,開啟 Google 地球應用程式
。 - 在主畫面輕觸現有專案。
- 依序輕觸底部的「更多」「將 KML/KMZ 檔案匯入專案」。
- 如要新增 Google 雲端硬碟中的檔案,請輕觸「從雲端硬碟匯入」。
- 如要直接從裝置新增檔案,請輕觸「從裝置上傳」。
- 選取要匯入的檔案。
- 如要返回地圖並開啟檔案,請輕觸「返回」圖示 。
選取要匯入的檔案後,系統會自動將檔案新增至現有專案。
將檔案匯入新專案
您可以將舊版 Google 地球的簡易 KML 或 KMZ 檔案匯入現有專案。如要將檔案匯入現有專案,請按照下列步驟操作:
- 在 iPhone 或 iPad 上,開啟 Google 地球應用程式
。 - 輕觸底部的「新增」。
- 如要從 Google 雲端硬碟新增檔案,請輕觸「從雲端硬碟將檔案匯入專案」。
- 如要直接從裝置新增檔案,請輕觸「從裝置將檔案匯入專案」。
- 選取要匯入的檔案。
- 如要返回地圖並開啟檔案,請輕觸「返回」圖示 。
選取要匯入的檔案後,系統會自動將檔案新增至現有的 Google 地球專案。
在 Google 地球開啟本機 KML 檔案
您可以將舊版 Google 地球的簡易 KML 或 KMZ 檔案,開啟為本機 KML 檔案。如要在 Google 地球開啟本機 KML 檔案,請按照下列步驟操作:
- 在 iPhone 或 iPad 上,開啟 Google 地球應用程式
。 - 在主畫面選取「本地」分頁標籤。
- 依序輕觸右下方的「新增」「本機 KML 編輯器」。
- 選取「開啟裝置中的 KML/Z 檔案」。
- 如要返回地圖並開啟檔案,請輕觸「返回」圖示 。
選取要開啟的檔案後,系統會自動將檔案儲存在主畫面的「本機 KML 檔案」分頁。