Linux command
qgis 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Launch QGIS
qgis
Open a specific project file
qgis --project [path/to/project.qgs]
Open QGIS with specific layers
qgis [path/to/file.shp] [path/to/raster.tif]
Export a map snapshot
qgis --snapshot [output.png] --width [1024] --height [768] --project [project.qgs]
Launch without splash screen
qgis --nologo --noplugins
Export project layers to DXF
qgis --dxf-export [output.dxf] --project [project.qgs]
Use a specific user profile
qgis --profile [profilename]
Run a Python script on startup
qgis --code [path/to/script.py]
说明
QGIS is a cross-platform, free and open-source Geographic Information System licensed under the GNU GPLv2+. It supports viewing, editing, and analysis of geospatial data. Written primarily in C++ using the Qt framework, it features extensive Python plugin support. QGIS handles vector formats (Shapefiles, GeoJSON, GML, KML, GeoPackage, PostGIS, and all OGR-supported formats), raster formats (GeoTIFF, ERDAS IMG, and all GDAL-supported formats), and database sources. It integrates with GRASS GIS for advanced analytical functions and uses GDAL/OGR for data format translation. Features include map composition, spatial analysis, digitizing, geoprocessing, and a rich plugin ecosystem. For headless or batch processing, use the companion tool qgis_process instead.
参数
- -p, --project _projectfile_
- Load the given QGIS project file.
- -s, --snapshot _filename_
- Emit a snapshot of loaded datasets to the given image file.
- -w, --width _width_
- Width of snapshot to emit.
- -h, --height _height_
- Height of snapshot to emit.
- -e, --extent _xmin,ymin,xmax,ymax_
- Set initial map extent.
- -n, --nologo
- Hide the splash screen on startup.
- -V, --noversioncheck
- Don't check for new version at startup.
- -P, --noplugins
- Don't restore plugins on startup.
- --nopython
- Disable Python support entirely.
- -B, --skipbadlayers
- Don't prompt for missing layers.
- -C, --nocustomization
- Don't apply GUI customization.
- -z, --customizationfile _path_
- Use given ini file as GUI customization.
- -f, --code _path_
- Run given Python file on load.
- --profile _name_
- Load a named profile from the profiles folder.
- -S, --profiles-path _path_
- Path to store user profile folders.
- -l, --lang _language_
- Use specified language for the interface.
- -d, --defaultui
- Reset user UI settings to default.
- --hide-browser
- Hide the browser widget.
- --dxf-export _filename.dxf_
- Emit DXF output of loaded datasets.
- --dxf-extent _xmin,ymin,xmax,ymax_
- Set extent for DXF export.
- --dxf-symbology-mode _mode_
- Symbology mode for DXF export: none, symbollayer, or feature.
- -v, --version
- Display version information and exit.
- --help
- Display help text.
FAQ
What is the qgis command used for?
QGIS is a cross-platform, free and open-source Geographic Information System licensed under the GNU GPLv2+. It supports viewing, editing, and analysis of geospatial data. Written primarily in C++ using the Qt framework, it features extensive Python plugin support. QGIS handles vector formats (Shapefiles, GeoJSON, GML, KML, GeoPackage, PostGIS, and all OGR-supported formats), raster formats (GeoTIFF, ERDAS IMG, and all GDAL-supported formats), and database sources. It integrates with GRASS GIS for advanced analytical functions and uses GDAL/OGR for data format translation. Features include map composition, spatial analysis, digitizing, geoprocessing, and a rich plugin ecosystem. For headless or batch processing, use the companion tool qgis_process instead.
How do I run a basic qgis example?
Run `qgis` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --project _projectfile_ do in qgis?
Load the given QGIS project file.