Skip to content

Commit f32ecd7

Browse files
committed
更新專案管理
1 parent b3b0e5a commit f32ecd7

33 files changed

+264
-134
lines changed

QGIS_projects.qmd

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,35 @@ toc: true
55
---
66
# 專案管理 {#sec-project-management}
77

8+
分析和處理空間資料時,往往都需要反覆的載入圖層、修改圖層內容與資料等,
9+
若每次都要重頭來開啟圖層往往曠日費時。因此可善加使用 QGIS 的專案(project)功能,
10+
相關工具列的功能說明可參考 @sec-project_toolbar 及 @fig-6-1
811

12+
## 新建立專案 {#sec-create-project}
13+
14+
開啟 QGIS 的時候,會是一個完全空白的專案,此時可以載入圖層或是操作。
15+
當要再新建立一個專案,可按工具列的「新建專案」(@fig-6-1 的 P1 )
16+
或是按快速鍵 Ctrl + N (windows) 或 Command + N (Mac OS)。
17+
18+
![專案工具列](images/QGIS_toolbar_1_projects.png){#fig-6-1}
19+
20+
21+
## 儲存專案
22+
23+
QGIS 儲存專案的時候(@fig-6-2),可以選擇 .qgz 或是 .qgs 格式。這兩種的區別是前者為壓縮檔案,
24+
後者則是平面文字的 xml 格式檔案。建議可以按照預設儲存成 .qgz 。
25+
26+
![儲存專案](images/QGIS_save_a_project.png){#fig-6-2}
27+
28+
::: {.callout-note}
29+
請注意:如果要和其他人分享的話,請記得將相關圖層置放在同一個目錄內,
30+
整個壓縮起來分享。只傳.qgz 或.qgs 的檔案的話,其他檔案他人是無法讀到的。
31+
另外一個就是將檔案都封裝儲存在 geopackage 內。
32+
:::
33+
34+
當圖層檔案較多且比較複雜的話,建議可以把相關的向量圖層還有專案檔都放在 geopackage 內,
35+
這樣可以便於後續操作。
36+
37+
### 範例一、
38+
39+
[專案範例 qgz 檔](examples/projects/project_template.qgz)和範例檔中的[.gpkg 檔](examples/projects/project_template.gpkg)

_quarto.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ format:
4646
fig-responsive: true
4747
citations-hover: true
4848
comment-hover: true
49+
crossref:
50+
fig-title:
51+
tbl-title:
52+
fig-prefix:
53+
tbl-prefix:
4954
pdf:
5055
header-includes:
5156
- \usepackage{fontspec} # 使用 fontspec package

docs/QGIS_export_map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.2.313">
5+
<meta name="generator" content="quarto-1.2.335">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

docs/QGIS_image_processing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.2.313">
5+
<meta name="generator" content="quarto-1.2.335">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

docs/QGIS_projects.html

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.2.313">
5+
<meta name="generator" content="quarto-1.2.335">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

@@ -227,7 +227,17 @@ <h1 class="quarto-secondary-nav-title"><span class="chapter-number">6</span>&nbs
227227
</nav>
228228
<!-- margin-sidebar -->
229229
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
230-
230+
<nav id="TOC" role="doc-toc" class="toc-active">
231+
<h2 id="toc-title">Table of contents</h2>
232+
233+
<ul>
234+
<li><a href="#sec-create-project" id="toc-sec-create-project" class="nav-link active" data-scroll-target="#sec-create-project"><span class="toc-section-number">6.1</span> 新建立專案</a></li>
235+
<li><a href="#儲存專案" id="toc-儲存專案" class="nav-link" data-scroll-target="#儲存專案"><span class="toc-section-number">6.2</span> 儲存專案</a>
236+
<ul class="collapse">
237+
<li><a href="#範例一" id="toc-範例一" class="nav-link" data-scroll-target="#範例一"><span class="toc-section-number">6.2.1</span> 範例一、</a></li>
238+
</ul></li>
239+
</ul>
240+
<div class="toc-actions"><div><i class="bi bi-github"></i></div><div class="action-links"><p><a href="https://github.com/mutolisp/introGIS/edit/main/QGIS_projects.qmd" class="toc-action">Edit this page</a></p><p><a href="https://github.com/mutolisp/introGIS/issues/new" class="toc-action">Report an issue</a></p><p><a href="https://github.com/mutolisp/introGIS/blob/main/QGIS_projects.qmd" class="toc-action">View source</a></p></div></div></nav>
231241
</div>
232242
<!-- main -->
233243
<main class="content" id="quarto-document-content">
@@ -249,8 +259,47 @@ <h1 class="title"><span id="sec-project-management" class="quarto-section-identi
249259

250260
</header>
251261

262+
<p>分析和處理空間資料時,往往都需要反覆的載入圖層、修改圖層內容與資料等, 若每次都要重頭來開啟圖層往往曠日費時。因此可善加使用 QGIS 的專案(project)功能, 相關工具列的功能說明可參考 <a href="useQGIS.html#sec-project_toolbar"><span>Section&nbsp;5.2.1.1</span></a><a href="vector_selection.html#fig-6-1">圖&nbsp;<span>8.1</span></a></p>
263+
<section id="sec-create-project" class="level2" data-number="6.1">
264+
<h2 data-number="6.1" class="anchored" data-anchor-id="sec-create-project"><span class="header-section-number">6.1</span> 新建立專案</h2>
265+
<p>開啟 QGIS 的時候,會是一個完全空白的專案,此時可以載入圖層或是操作。 當要再新建立一個專案,可按工具列的「新建專案」(<a href="vector_selection.html#fig-6-1">圖&nbsp;<span>8.1</span></a> 的 P1 ) 或是按快速鍵 Ctrl + N (windows) 或 Command + N (Mac OS)。</p>
266+
<div id="fig-6-1" class="quarto-figure quarto-figure-center anchored">
267+
<figure class="figure">
268+
<p><img src="images/QGIS_toolbar_1_projects.png" class="img-fluid figure-img"></p>
269+
<p></p><figcaption class="figure-caption">圖&nbsp;6.1: 專案工具列</figcaption><p></p>
270+
</figure>
271+
</div>
272+
</section>
273+
<section id="儲存專案" class="level2" data-number="6.2">
274+
<h2 data-number="6.2" class="anchored" data-anchor-id="儲存專案"><span class="header-section-number">6.2</span> 儲存專案</h2>
275+
<p>QGIS 儲存專案的時候(<a href="#fig-6-2">圖&nbsp;<span>6.2</span></a>),可以選擇 .qgz 或是 .qgs 格式。這兩種的區別是前者為壓縮檔案, 後者則是平面文字的 xml 格式檔案。建議可以按照預設儲存成 .qgz 。</p>
276+
<div id="fig-6-2" class="quarto-figure quarto-figure-center anchored">
277+
<figure class="figure">
278+
<p><img src="images/QGIS_save_a_project.png" class="img-fluid figure-img"></p>
279+
<p></p><figcaption class="figure-caption">圖&nbsp;6.2: 儲存專案</figcaption><p></p>
280+
</figure>
281+
</div>
282+
<div class="callout-note callout callout-style-default callout-captioned">
283+
<div class="callout-header d-flex align-content-center">
284+
<div class="callout-icon-container">
285+
<i class="callout-icon"></i>
286+
</div>
287+
<div class="callout-caption-container flex-fill">
288+
Note
289+
</div>
290+
</div>
291+
<div class="callout-body-container callout-body">
292+
<p>請注意:如果要和其他人分享的話,請記得將相關圖層置放在同一個目錄內, 整個壓縮起來分享。只傳.qgz 或.qgs 的檔案的話,其他檔案他人是無法讀到的。 另外一個就是將檔案都封裝儲存在 geopackage 內。</p>
293+
</div>
294+
</div>
295+
<p>當圖層檔案較多且比較複雜的話,建議可以把相關的向量圖層還有專案檔都放在 geopackage 內, 這樣可以便於後續操作。</p>
296+
<section id="範例一" class="level3" data-number="6.2.1">
297+
<h3 data-number="6.2.1" class="anchored" data-anchor-id="範例一"><span class="header-section-number">6.2.1</span> 範例一、</h3>
298+
<p><a href="examples/projects/project_template.qgz">專案範例 qgz 檔</a>和範例檔中的<a href="examples/projects/project_template.gpkg">.gpkg 檔</a></p>
252299

253300

301+
</section>
302+
</section>
254303

255304
</main> <!-- /main -->
256305
<script id="quarto-html-after-body" type="application/javascript">

docs/QGIS_raster_analysis.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.2.313">
5+
<meta name="generator" content="quarto-1.2.335">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

docs/QGIS_vector_analysis.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.2.313">
5+
<meta name="generator" content="quarto-1.2.335">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

docs/crs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.2.313">
5+
<meta name="generator" content="quarto-1.2.335">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

96 KB
Binary file not shown.
9.08 KB
Binary file not shown.

0 commit comments

Comments
 (0)