Press Add to load the file in QGIS and display them in the map view.
When adding vector datasets containing multiple layers, the
Select Items to Add dialog will appear. In this dialog, you can
choose the specific layers from your dataset that you want to add.
Also, under Options you can choose to:
Add layers to a group
Show system and internal tables
Show empty vector layers.
图 15.7 shows QGIS after loading the alaska.shp file.
Input the location of the Source drawing, i.e. the DWG/DXF drawing
file to import.
指定图形文件中数据的坐标参照系。
Input the location of the Target package, i.e. the GeoPackage file
that will store the data. If an existing file is provided, then it will be
overwritten.
Choose how to import blocks with the dedicated combobox:
Expand Block Geometries: imports the blocks in the drawing file as normal elements.
Expand Block Geometries and Add Insert Points: imports the blocks in the drawing file as normal elements and adds the insertion point as a point layer.
Add Only Insert Points: adds the blocks insertion point as a point layer.
选中 使用曲线 将导入的图层提升为 曲线 几何图形类型。
Use the Import button to import the drawing into the destination
GeoPackage file.
The GeoPackage database will be automatically populated with the
drawing file content.
Depending on the size of the file, this can take some time.
There are two services in the above example: water_service
and wastewater_service. You can use these to connect from QGIS,
pgAdmin, etc. by specifying only the name of the service you want to
connect to (without the enclosing brackets).
If you want to use the service with psql, you can do psqlservice=water_service.
To create a new MS SQL Server connection, you need to provide some of the
following information in the Connection Details dialog:
Connection name
Provider/DSN
Host
Login information. You can choose
to Save your credentials.
Navigate to the Database Details section and click the
List Databases button to view the available datasets.
Select datasets that you want, then press OK.
Optionally, you can also perform a Test Connection.
Once you click OK the Create a New MS SQL Server Connection dialog
will close and in the Data Source Manager press Connect,
select a layer and then click Add.
Optionally, you can activate the following options:
Only look in the geometry_columns metadata table.
Use layer extent from geometry_columns table,
this checkbox is dependent on the first one; it remains disabled unless
the first option is checked.
Use primary key from geometry_columns table
Also list table with no geometry: tables without a
geometry column attached will also be shown in the available table list.
Use estimated table parameters: only estimated table
metadata will be used. This avoids a slow table scan, but may result in
incorrect layer properties such as layer extent.
Skip invalid geometry handling: all handling of records
with invalid geometry will be disabled. This speeds up the provider, however,
if any invalid geometries are present in a table then the result is unpredictable
and may include missing records. Only check this option if you are certain that
all geometries present in the database are valid, and any newly added geometries
or tables will also be valid.
Use only a Subset of Schemas will allow you to filter
schemas for MS SQL connection. If enabled, only checked schemas will be displayed.
You can right-click to Check or Uncheck any schema
in the list.
By default, QGIS can retrieve layers metadata from the connections or data providers that allow metadata storage
(more details on saving metadata to the database).
The Metadata search panel allows to browse the layers by their metadata
and add them to the project (either with a double-click or the Add button).
The list can be filtered:
by text, watching a set of metadata properties (identifier, title, abstract)
by spatial extent, using the current project extent or the map canvas extent
XYZ Tile services can be added via the XYZ tab
of the Data Source Manager dialog or the contextual menu of the
XYZ Tiles entry in the Browser panel.
By default, QGIS provides some default and ready-to-use XYZ Tiles services:
Configurations can be saved to .XML file (Save Connections)
through the XYZ entry in Data Source Manager dialog
or its contextual menu in the Browser panel.
Likewise, they can be added from a file (Load Connections).
It is also possible to add XYZ tiles to a project without necessarily storing
its connection settings in you user profile (e.g. for a dataset you may need once).
In the Data Source Manager ► XYZ tab, edit any properties
in the Connection Details group.
The Name field above should turn into Custom.
Press Add to load the layer in the project.
It will be named by default XYZLayer.