중요

번역은 여러분이 참여할 수 있는 커뮤니티 활동입니다. 이 페이지는 현재 70.63% 번역되었습니다.

4. 탐색기 패널

QGIS 탐색기 패널은 QGIS 리소스를 탐색하고, 검색하고, 점검하고, 복사하고, 불러올 수 있는 훌륭한 도구입니다. QGIS가 어떻게 처리하는지 알고 있는 리소스만 탐색기에 표시됩니다.

탐색기 패널을 사용하면 탐색기 패널 에서 설명한대로 데이터를 찾고, 점검하고, 추가할 수 있습니다. 또한 탐색기 패널은 프로젝트 파일, 파이썬 스크립트, 공간 처리 스크립트, 공간 처리 모델 등과 같은 여러 QGIS 리소스의 드래그&드롭을 지원합니다.

파이썬 스크립트, 공간 처리 스크립트 및 모델은 각각 외부 편집기 및 모델 설계자(model designer)에서도 열고 편집할 수 있습니다.

You can drag and drop layers from the Layers panel to the Browser panel, for instance into a GeoPackage or a PostgreSQL database.

../../../_images/browser_panel1.png

그림 4.1 탐색기 패널

탐색기 패널(그림 4.1)은 탐색기가 처리하는 리소스들을 체계화시키는 몇몇 고정된 최상위 수준 항목들을 가진, 확장 가능한 위계로 이루어져 있습니다. 노드 항목명 왼쪽에 있는 browserExpand 아이콘을 클릭하면 노드 항목을 펼칩니다. browserCollapse 아이콘을 클릭하면 해당 분기(branch)를 접습니다. collapseTree Collapse All 버튼을 누르면 모든 최상위 항목을 접습니다.

Settings ► Interface Customization 메뉴에서 리소스들을 비활성화시킬 수 있습니다. 예를 들어 사용자가 탐색기에서 파이썬 스크립트를 보지 않고자 하는 경우 Browser ► py 메뉴 항목을 비활성화하면 되고, 탐색기에서 사용자 홈 폴더를 제거하고 싶다면 Browser ► special:Home 메뉴 항목을 비활성화하면 됩니다.

항목명 (위계에 있는 지엽(leaf) 항목과 노드 항목 둘 다) 기반 검색에 필터(filterMap Filter Browser)를 쓸 수 있습니다. 필터 텍스트란 옆에 있는 options Options 풀다운 메뉴를 사용하면:

  • Case Sensitive 대소문자를 구분하는 검색 기능을 켜고 끌 수 있습니다.

  • Filter pattern syntax 필터 패턴 문법을 다음 가운데 하나로 설정할 수 있습니다.

    • Normal

    • Wildcard(s)

    • Regular Expressions

metadata Enable/disable properties widget 버튼을 사용해서 일부 항목/리소스에 대한 유용한 정보를 표시하는 속성 위젯(Properties widget) 을 활성화/비활성화시킬 수 있습니다. 이 위젯을 활성화하면 탐색기 패널 하단에 그림 4.2 처럼 표시됩니다.

../../../_images/browser_p_properties_w.png

그림 4.2 속성 위젯

View ► Panels 메뉴에서 Browser (2) 패널을 활성화하면 두번째 탐색기 패널을 열 수 있습니다. 탐색기 위계에서 서로 다른 분기들 깊숙히 위치한 리소스들 사이에 레이어를 복사하는 경우 두번째 탐색기 패널이 있으면 편리합니다.

4.1. 탐색기에서 열/실행할 수 있는 리소스들

탐색기 패널에서 많은 작업을 완수할 수 있습니다:

  • 더블클릭, 맵 캔버스로 드래그, 또는 (레이어를 선택한 다음) addLayer Add Selected Layers 버튼을 클릭해서 사용자 맵에 벡터, 래스터 및 메시 레이어를 추가할 수 있습니다.

  • 더블클릭 또는 맵 캔버스로 드래그해서 (공간 처리 알고리즘 포함) 파이썬 스크립트를 실행할 수 있습니다.

  • 더블클릭 또는 맵 캔버스로 드래그해서 모델을 실행할 수 있습니다.

  • Extract Symbols… 컨텍스트 메뉴를 통해 QGIS 프로젝트 파일에서 심볼을 추출할 수 있습니다.

  • 각 파일 유형의 (컨텍스트 메뉴의 Open <file type> Externally… 에서 설정하는) 기본 응용 프로그램으로 파일을 열 수 있습니다. 예를 들면 HTML 파일, 스프레드시트, 이미지, PDF, 텍스트 등등의 파일들 말이죠.

  • 항목을 복사할 수 있습니다.

  • (여러 개의) 레이어들을 재명명 및 삭제할 수 있습니다. (컨텍스트 메뉴의 Manage ►)

  • Show in Files 메뉴를 통해 파일 탐색창을 열어서 파일을 직접 선택할 수 있습니다.

리소스 전용 액션은 다음에 정리한 최상위 수준 항목 목록 아래 정렬된 서로 다른 리소스 그룹별로 목록화돼 있습니다.

4.2. 탐색기 패널 최상위 수준 항목들

4.2.1. 즐겨찾기

자주 사용하는 파일 시스템 위치를 즐겨찾기로 태그할 수 있습니다. 사용자가 태그한 위치가 여기 나타날 것입니다.

홈(Home) 에서 설명하는 작업들 이외에도, Rename Favorite…Remove Favorite 컨텍스트 메뉴를 통해 즐겨찾기를 재명명하거나 제거할 수 있습니다.

4.2.2. 공간 북마크

This is where you will find your spatial bookmarks, divided into Project Bookmarks and User Bookmarks.

표 4.1 available actions for spatial bookmarks

수준

Contextual menu

Spatial Bookmarks

New Spatial Bookmark…

Show the Spatial Bookmark Manager

Import Spatial Bookmarks…

Export Spatial Bookmarks…

Bookmark group

(Project Bookmarks and User Bookmarks)

New Spatial Bookmark…

Import Spatial Bookmarks…

Export Spatial Bookmarks…

Individual bookmark

Zoom to Bookmark

Edit Spatial Bookmark…

Delete Spatial Bookmark

4.2.3. 프로젝트 홈

프로젝트 파일을 저장하면 사용할 수 있는 Project home 항목은 현재 프로젝트 안에서 쓰일 수도 있는 데이터 및 기타 내용(스크립트, 모델, 텍스트 등등)을 담고 있는 폴더입니다. 이 항목은 Browser 패널에 표시되어 사용자가 프로젝트의 데이터 및 기타 파일에 빠르게 접근할 수 있게 해줍니다.

프로젝트 홈 폴더의 기본 경로는 프로젝트 파일 폴더이지만, Project ► Properties… ► General ► Project home 옵션을 통해 또는 탐색기 패널의 Project Home 항목을 오른쪽 클릭해서 Set project home… 을 선택하면 변경할 수 있습니다. QGIS 프로젝트가 데이터셋과 함께 조직화된 ‘프로젝트’의 루트 폴더에 저장되어 있지 않은 경우 이 폴더를 사용자 지정하는 것이 특히 유용합니다.

4.2.4. 드라이브 및 파일 시스템

Browser 패널의 다음 항목은 사용 중인 OS에 따라 다르며, 해당 OS의 파일 시스템의 최상위 수준 항목과 관련되어 있습니다.

이 최상위 수준 항목이란 주로:

  • 현재 사용자의 홈 폴더를 가리키는 Home 폴더

  • 또는 유닉스 기반 기기의 경우 루트 / 폴더

  • 그리고 로컬 또는 네트워크 연결 드라이브입니다. 이런 드라이브들은 OS에 따라 직접 목록화되거나 (예: C:\, D:\) 또는 /Volumes 항목을 통해 목록화됩니다.

이런 폴더 또는 드라이브 각각의 컨텍스트 메뉴로부터 다음과 같은 작업을 할 수 있습니다:

  • 폴더 및 드라이브의 내용을 새로고침할 수 있습니다.

  • New ►: 새로운 하위 항목을 Directory, GeoPackage 또는 ESRI Shapefile 포맷 데이터셋으로 생성할 수 있습니다.

  • Hide from Browser: 홈 디렉터리를 숨길 수 있습니다.

  • Set color: 복잡한 폴더 구조를 빠르게 탐색할 수 있도록 폴더 아이콘 색상을 사용자 지정할 수 있습니다.

  • Scanning: 스캔 작업을 활성화할 수 있습니다.

    • checkbox Monitor for changes: 특정 디렉터리를 모니터링하면서 자동 업데이트할지를 직접 조정할 수 있게 해줍니다. 이 설정은 선택한 디렉터리와 모든 하위 디렉터리에 적용됩니다. 즉 사용자가 아무 문제도 없다는 사실을 알고 있는 경우 네트워크 드라이브 모니터링을 직접 동의할 수도 있고, 또는 다른 이유로 모니터링을 원하지 않는 대용량 디렉터리의 모니터링을 동의하지 않을 수도 있습니다. 기본적으로 원격 또는 네트워크 드라이브를 자동 모니터링하지는 않습니다.

    • unchecked Fast scan this directory: 선택한 디렉터리를 빠르게 스캔합니다.

  • Open Directory…: 사용자의 파일 관리자에서 디렉터리를 열 수 있습니다.

  • Open in Terminal…: 터미널 창에서 디렉터리를 열 수 있습니다.

  • 속성을 검사하거나(Properties…), 디렉터리 속성을 관리할 수 있습니다(Directory Properties…).

4.2.5. Data type

표 4.2 Available actions for plain layer files

Level and Context menu

Types of layers

addRasterLayer Raster

(Reference)

addOgrLayer Vector

(Reference)

addPointCloudLayer Point clouds

(Reference)

addMeshLayer Mesh

(Reference)

File

Delete File <dataset name>

checkbox

checkbox

Show in Files

checkbox

checkbox

checkbox

checkbox

Manage

checkbox

checkbox

checkbox

checkbox

File Properties…

checkbox

checkbox

checkbox

checkbox

Open <file type> Externally…

checkbox

Layer

Add Layer to Project

checkbox

checkbox

checkbox

checkbox

Export Layer

checkbox

checkbox

Layer Properties…

checkbox

checkbox

checkbox

checkbox

Open with Data Source Manager…

checkbox

checkbox

Execute SQL…

checkbox

4.2.6. 데이터베이스 항목

사용자의 OS와 설치된 드라이버에 따라, QGIS에서 사용할 수 있는 서로 다른 데이터베이스 유형에 접근할 수 있을지도 모릅니다. 다음은 데이터셋 트리의 각 수준에서 사용할 수 있는 서로 다른 컨텍스트 메뉴 목록입니다.

표 4.3 Available actions for database entries

Level and Context menu

데이터베이스 유형

geoPackage

GeoPackage ([1])

spatialite

SpatiaLite

postgis

PostgreSQL

hana

SAP HANA

mssql

MS SQL Server

oracle

Oracle

Top menu

New Connection…: 기존 데이터베이스에 새 연결 생성

checkbox

checkbox

checkbox

checkbox

checkbox

checkbox

Create Database…: 새 데이터베이스 생성

checkbox

checkbox

Create Database and Layer…

checkbox

Save Connections…: 연결의 상세 내용을 파일로 저장

checkbox

checkbox

checkbox

Load Connections…: 저장한 연결 파일을 불러오기

checkbox

checkbox

checkbox

Connection / Database

Refresh: 연결을 새로고침

checkbox

checkbox

checkbox

checkbox

Edit Connection…: 연결 설정을 편집

checkbox

checkbox

checkbox

checkbox

Duplicate Connection

checkbox

checkbox

checkbox

checkbox

Remove Connection…

checkbox

checkbox

checkbox

checkbox

checkbox

checkbox

Import Vector Layer…

checkbox

checkbox

checkbox

checkbox

checkbox

New Field Domain ► New Range Domain: 새 필드 도메인을 범위로 설정

checkbox

New Field Domain ► New Coded Values Domain: 새 필드 도메인을 코딩된 값으로 설정

checkbox

New Field Domain ► New Glob Domain: 새 필드 도메인을 glob 함수로 설정

checkbox

Delete <database_name>: 데이터베이스를 삭제

checkbox

checkbox

Compact Database (VACUUM): 데이터베이스를 정리

checkbox

New Schema…: 새 스키마를 생성

checkbox

checkbox

checkbox

New Table…: 새 테이블을 생성

checkbox

checkbox

checkbox

checkbox

Execute SQL…: SQL 쿼리를 실행

checkbox

checkbox

checkbox

checkbox

Schema

Refresh: 스키마를 새로고침

checkbox

checkbox

checkbox

Schema Operations ► Rename Schema…: 스키마 이름을 재명명

checkbox

checkbox

checkbox

Schema Operations ► Delete Schema…: 스키마를 삭제

checkbox

checkbox

checkbox

New Table…: 새 테이블을 생성

checkbox

checkbox

Execute SQL…: SQL 쿼리를 실행

checkbox

checkbox

Table / Layer

Table Operations ► Rename Table…: 테이블 이름을 재명명

checkbox

checkbox

checkbox

Table Operations ► Truncate Table…: 테이블의 모든 행을 제거

checkbox

checkbox

Execute SQL…: SQL 쿼리를 실행

checkbox

checkbox

checkbox

Export Layer ► To file…: 레이어를 파일로 내보내기

checkbox

checkbox

checkbox

checkbox

checkbox

Manage ► Rename Layer <layer_name>…: 레이어 이름을 변경

checkbox

checkbox

checkbox

Manage ► Delete Layer <layer_name>…: 레이어를 삭제

checkbox

checkbox

checkbox

checkbox

checkbox

Manage ► Delete Selected Layers: 선택한 레이어들을 삭제

checkbox

checkbox

checkbox

checkbox

checkbox

Manage ► Add Layer to Project: 프로젝트에 레이어를 추가

checkbox

checkbox

checkbox

checkbox

checkbox

Manage ► Add Selected Layers to Project: 프로젝트에 선택한 레이어들을 추가

checkbox

checkbox

checkbox

checkbox

checkbox

Manage ► Move to Another Schema

checkbox

checkbox

Layer Properties…: 레이어 속성 대화창 열기

checkbox

checkbox

checkbox

checkbox

checkbox

File Properties…: 파일 속성 대화창 열기

checkbox

Open with Data Source Manager

checkbox

checkbox

Fields

Add New Field…: 새로운 필드를 추가

checkbox

checkbox

checkbox

checkbox

Field

Set Field Domain: 필드 도메인을 설정

checkbox

Rename Field ([2])

checkbox

checkbox

checkbox

Set Alias…: 별명을 설정

checkbox

Set Comment…: 주석을 설정

checkbox

checkbox

Delete Field…: 필드를 삭제

checkbox

checkbox

checkbox

checkbox

참고

QGIS에 벡터 레이어를 불러올 때, (GeoPackage 또는 ESRI 파일 지오데이터베이스에서 정의하는 필드들처럼) sourceFields Field Domains 를 가진 필드들을 자동으로 감지합니다. 이런 도메인은 데이터베이스 수준의 제약조건으로, 다시 말해 데이터베이스 자체가 강제하는 도메인이기 때문에 QGIS만이 아니라 서로 다른 응용 프로그램들 전반에 적용됩니다.

4.2.6.1. Importing vector layers into databases using Browser panel

QGIS allows you to import vector layers directly into a database from the Browser panel. This provides a simple way to transfer datasets into supported database formats without using dbManager DB Manager (see 데이터베이스 관리자 플러그인).

You can start the import in two ways:

  • Drag and drop a single vector layer from the Browser panel or from the Project into a database connection or schema item.

  • Right-click on a database connection or schema item and choose Import Vector Layer… from the context menu.

참고

When multiple layers are dragged into a database, they are imported immediately without further options. All imports run in the background, so the QGIS interface remains responsive during the process.

../../../_images/importvector_dialog.png

그림 4.3 Import Vector Layer dialog

To add a layer using Import Vector Layer… follow these steps:

  1. Add Source layer: the layer to import, chosen from the current QGIS project. To import only selected features of the source layer use the checkbox Selected features only option.

  2. Set the Table name: the name of the destination table in the database. By default, it is taken from the source layer name but can be modified. You can also use the checkbox Replace destination table (if exists) to overwrite an existing table.

  3. Define the Output CRS: the coordinate reference system of the destination table. By default, it is the CRS of the source layer, but it can be changed using the CRS selector.

  4. Configure the Attributes:

    • Source expression: expression used to populate the field. By default, this corresponds to the original source field.

    • Name: name of the field in the destination table.

    • Type: field data type (integer, text, real, etc.).

    • Length and Precision: length and precision of the field, where applicable.

    • Constraints: rules to enforce on the field values (e.g. NOT NULL, UNIQUE, DEFAULT). Support depends on the destination database.

    • Alias: an alternate display name for the field.

    • Comment: a description or note attached to the field.

    You can use buttons on the right side to:

    • newAttribute Add new field to add a new field to the destination table.

    • deleteAttribute Delete selected field to remove a field from the destination table.

    • arrowUp Move selected field up or arrowDown Move selected field down to reorder fields.

    • clearText Reset all fields to clear all fields and start from scratch.

    • settings Convert All Fields To Lowercase or settings Convert All Fields To Uppercase, to change the case of all field names.

  5. Optionally, apply a spatial filter with Filter by Extent. This restricts the import to features within a defined bounding box.

  6. Optionally, apply an attribute filter with Feature filter. This allows you to use an expression to select which features are imported.

4.2.7. 타일 및 웹 서비스

표 4.4 Available actions for web services (1)

Level and Context menu

서비스 유형

wms

WMS / WMTS

(Reference)

xyz

XYZ Tiles

(Reference)

wcs

WCS

(Reference)

wfs

WFS / OGC API - Features

(Reference)

afs

ArcGIS REST Servers

(Reference)

Top menu

New Connection…: 새 연결을 생성

checkbox

checkbox

checkbox

checkbox

checkbox

Save Connections…: 연결의 상세 내용을 파일로 저장

checkbox

checkbox

checkbox

checkbox

checkbox

Load Connections…: 저장한 연결 파일을 불러오기

checkbox

checkbox

checkbox

checkbox

checkbox

Connection

Refresh: 연결을 새로고침

checkbox

checkbox

checkbox

checkbox

checkbox

Edit Connection…: 연결 설정을 편집

checkbox

checkbox

checkbox

checkbox

checkbox

Duplicate Connection

checkbox

checkbox

checkbox

checkbox

checkbox

Remove Connection…

checkbox

checkbox

checkbox

checkbox

checkbox

View Service Info: 웹 브라우저에서 서비스 정보를 보기

checkbox

Table / Layer

Export Layer ► To File…

checkbox

checkbox

checkbox

checkbox

checkbox

Add Layer to Project

checkbox

checkbox

checkbox

checkbox

checkbox

Add Filtered Layer to Project…

checkbox

Layer Properties…: 레이어 속성 대화창 열기

checkbox

checkbox

checkbox

checkbox

checkbox

View Service Info: 웹 브라우저에서 서비스 정보를 보기

checkbox

표 4.5 Available actions for web services (2)

Level and Context menu

서비스 유형

vectorTileLayer

Vector Tiles

(Reference)

tiledSceneLayer

Scene

(Reference)

cloud

Cloud

(Reference)

sensor

SensorThings

(Reference)

stac

STAC

(Reference)

Top menu

New Connection…: 새 연결을 생성

checkbox

checkbox

checkbox

checkbox

New Generic Connection…: 새 일반 연결을 생성

checkbox

New ArcGIS Vector Tile Service Connection…: 새 ArcGIS 벡터 타일 서비스 연결을 생성

checkbox

Save Connections… details to a file

checkbox

checkbox

checkbox

checkbox

checkbox

Load Connections…: 저장한 연결 파일을 불러오기

checkbox

checkbox

checkbox

checkbox

checkbox

Connection

Edit Connection…: 연결 설정을 편집

checkbox

checkbox

checkbox

checkbox

checkbox

Duplicate Connection

checkbox

checkbox

checkbox

checkbox

Delete Connection…

checkbox

checkbox

checkbox

checkbox

checkbox

Refresh

checkbox

Details…

checkbox

Table / Layer

Export Layer ► To File…

checkbox

Add Layer to Project

checkbox

checkbox

checkbox

Layer Properties…: 레이어 속성 대화창 열기

checkbox

checkbox

checkbox

Refresh

checkbox

Download assets…

checkbox

Details…

checkbox

4.2.8. Project and supported file types

표 4.6 Available actions for various supported files :class: longtable

File type

컨텍스트 메뉴

QGIS Project file (.qgz, .qgs)

Open Project

Extract Symbols… (opens Style Manager to export symbols to XML, add to default style, or export as PNG/SVG)

File Properties…

QGIS Layer Definition (.qlr)

Export Layer ► To File…

Add Layer to Project

Layer Properties…

Processing Model (.model3)

Run Model…

Edit Model…

Print Composer Template (.qpt)

New Layout from Template

Python script (.py)

Run Script…

Open in External Editor