Tämä QGIS-repositorio (pelkkä master-haara) on forkattu Gispon omaa QGIS-kehitystä, harjoittelua ja bugikorjauksia varten.
Tutustuminen kannattaa aloittaa kehittäjän oppaasta (https://docs.qgis.org/3.28/en/docs/developers_guide/index.html).
Käyttöönotto tiedoston INSTALL.md:n ja kehittäjän oppaan ohjeita soveltaen (testattu Ubuntun versiolla 22.04):
- Päivitä riippuvuudet INSTALL.md:n kappaleen 3.3. mukaisesti.
sudo apt-get install ...
- Asenna ccache (https://ccache.dev/). Ccache luo käännöksille välimuistin, jota käytetään nopeuttamaan uusia käännöksiä.
cd /usr/local/bin sudo ln -s /usr/bin/ccache gcc sudo ln -s /usr/bin/ccache g++
- Kloonaa tämä repositorio.
git clone https://github.com/GispoCoding/QGIS.git
- Aseta upstream-repositorioksi QGIS:n alkuperäinen repositorio.
git remote add upstream https://github.com/qgis/QGIS.git
- Siirry build-master-kansioon.
cd build-master
- Aseta projektin käännösasetukset ccmake-työkalulla. Kehitysversio kannattaa kääntää esim. kotihakemiston apps-kansioon, jotta vältetään mahdolliset ristiriidat usr-kansion Ubuntu-pakettien kanssa. Lisäksi debuggausta varten asetetaan Debug-vipu. Muuten kelpaavat oletusasetukset. Huomaathan, että komentoon kuuluu kaksi pistettä (..).
ccmake ..
CMAKE_BUILD_TYPE *Debug
CMAKE_INSTALL_PREFIX *${HOME}/apps
- Käännä make-komennolla (X on käytettävien ytimien määrä).
make -jX
- Onnistuneen käännöksen jälkeen sovellus käynnistyy seuraavalla komennolla.
./output/bin/qgis
Seuraavat kohdat ovat tarpeellisia vain, jos olet tekemässä muutoksia lähdekoodiin.
- Asenna Qt Creator, jota käytetään ainakin toistaiseksi IDE:nä.
sudo apt install qtcreator
- Qt Creatorissa avataan juuresta tiedosto CMakeLists.txt. Sovelluksen ajaminen, debuggaus jne. onnistuu oletusasetuksilla.
- QGIS-kehityksessä C++-koodin sisennykset ovat kahden välilyönnin levyisiä. Tämä kannattaa käydä asettamassa oletukseksi (Tools -> Options -> C++).
- Koodin eheyden varmistamiseksi on syytä asettaa paikalliseen Git-repoon pre-commit hook, joka korjaa koodin QGIS:n koodikäytäntöjen mukaiseksi. Hookia varten scripts-kansiossa on skripti prepare_commit.sh, johon voidaan linkata suoraan. Skripti käyttää Artistic Style (astyle) -työkalua, joka on myös asennettava.
sudo apt install astyle
ln -s ../../scripts/prepare_commit.sh .git/hooks/pre-commit
Bugikorjaukset tehdään ensin tähän repositorioon omiin haaroihinsa.
-
Synkronoi tarvittaessa tämän repositorion master-haara QGIS:n virallisen repositorion master-haaran kanssa ("Sync fork"). Tee uusi haara tämän repositorion master-haarasta. Nimeä haara siten, että siitä selviää, mitä seikkaa ollaan ratkomassa, etuliitteeksi "fix_{SEIKAN_ID}_". Esim.
fix_49311_creating_topological_points_with_geometry_precision
. -
QGIS:n koodikäytännöt vaativat, että bugin korjaavan commitin viestin lopussa on oltava bugin yksilöivä tunnus muodossa "Fixes #{SEIKAN_ID}". Esim.
Fixes #12345
. -
Kun teet PR:ää QGIS:n viralliseen repoon, tee ensin kehityshaaralle rebase upstream-repositorion master-haarasta. Käythän myös tarkasti läpi PR:n templatessa olevan tarkistuslistan.
-
Kun tekemäsi PR on mergetty QGIS:n viralliseen repoon, poista haara tästä repositoriosta.
QGIS is a full-featured, user-friendly, free-and-open-source (FOSS) geographical information system (GIS) that runs on Unix platforms, Windows, and MacOS.
- Support for raster, vector, mesh, and point cloud data in a range of industry-standard formats
- Raster formats include: GeoPackage, GeoTIFF, GRASS, ArcInfo binary and ASCII grids, ERDAS Imagine SDTS, WMS, WCS, PostgreSQL/PostGIS, and other GDAL supported formats.
- Vector formats include: GeoPackage, ESRI shapefiles, GRASS, SpatiaLite, PostgreSQL/PostGIS, MSSQL, Oracle, WFS, Vector Tiles and other OGR supported formats.
- Mesh formats include: NetCDF, GRIB, 2DM, and other MDAL supported formats.
- Point-cloud format: LAS/LAZ and EPT datasets.
- Data abstraction framework, with local files, spatial databases (PostGIS, SpatiaLite, SQL Server, Oracle, SAP HANA), and web services (WMS, WCS, WFS, ArcGIS REST) all accessed through a unified data model and browser interface, and as flexible layers in user-created projects
- Spatial data creation via visual and numerical digitizing and editing, as well as georeferencing of raster and vector data
- On-the-fly reprojection between coordinate reference systems (CRS)
- Nominatim (OpenStreetMap) geocoder access
- Temporal support
Example: Temporal animation
Example: 3D map view
- Large variety of rendering options in 2D and 3D
- Fine control over symbology, labeling, legends and additional graphical elements for beautifully rendered maps
- Respect for embedded styling in many spatial data sources (e.g. KML and TAB files, Mapbox-GL styled vector tiles)
- In particular, near-complete replication (and significant extension) of symbology options that are available in proprietary software by ESRI
- Advanced styling using data-defined overrides, blending modes, and draw effects
- 500+ built-in color ramps (cpt-city, ColorBrewer, etc.)
- Create and update maps with specified scale, extent, style, and decorations via saved layouts
- Generate multiple maps (and reports) automatically using QGIS Atlas and QGIS Reports
- Display and export elevation profile plots with flexible symbology
- Flexible output direct to printer, or as image (raster), PDF, or SVG for further customization
- On-the-fly rendering enhancements using geometry generators (e.g. create and style new geometries from existing features)
- Preview modes for inclusive map making (e.g. monochrome, color blindness)
For more maps created with QGIS, visit the QGIS Map Showcase Flickr Group.
- Powerful processing framework with 200+ native processing algorithms
- Access to 1000+ processing algorithms via providers such as GDAL, SAGA, GRASS, OrfeoToolbox, as well as custom models and processing scripts
- Geospatial database engine (filters, joins, relations, forms, etc.), as close to datasource- and format-independent as possible
- Immediate visualization of geospatial query and geoprocessing results
- Model designer and batch processing
Example: Travel isochrones
Example: Model designer
- Fully customizable user experience, including user interface and application settings that cater to power-users and beginners alike
- Rich expression engine for maximum flexibility in visualization and processing
- Broad and varied plugin ecosystem that includes data connectors, digitizing aids, advanced analysis and charting tools, in-the-field data capture, conversion of ESRI style files, etc.
- Style manager for creating, storing, and managing styles
- QGIS style hub for easy sharing of styles
- Python and C++ API for standalone (headless) applications as well as in-application comprehensive scripting (PyQGIS)
Example: Style manager
Example: Plugins
Headless map server -- running on Linux, macOS, Windows, or in a docker container -- that shares the same code base as QGIS.
- Industry-standard protocols (WMS, WFS, WFS3/OGC API for Features and WCS) allow plug-n-play with any software stack
- Works with any web server (Apache, nginx, etc) or standalone
- All beautiful QGIS cartography is supported with best-in-class support for printing
- Fully customizable with Python scripting support
Example: QGIS server WMS response
Example: QGIS server WFS response
QGIS is developed using the Qt toolkit and C++, since 2002, and has a pleasing, easy to use graphical user interface with multilingual support. It is maintained by an active developer team and supported by vibrant community of GIS professionals and enthusiasts as well as geospatial data publishers and end-users.
QGIS development and releases follow a time based schedule/roadmap. There are three main branches of QGIS that users can install. These are the Long Term Release (LTR) branch, the Latest Release (LR) branch, and the Development (Nightly) branch.
Every month, there is a Point Release that provides bug-fixes to the LTR and LR.
QGIS is released under the GNU Public License (GPL) Version 2 or any later version. Developing QGIS under this license means that you can (if you want to) inspect and modify the source code and guarantees that you, our happy user will always have access to a GIS program that is free of cost and can be freely modified.
QGIS is part of the Open-Source Geospatial Foundation (OSGeo), offering a range of complementary open-source GIS software projects.
Precompiled binaries for QGIS are available at the QGIS.org download page. Please follow the installation instructions carefully.
The building guide can be used to get started with building QGIS from source.
For installation of QGIS Server, see its getting started documentation.
A range of documentation is available. This includes:
- Training Manual
- QGIS User Guide
- QGIS Server Guide
- Visual Changelog
- Documentation Guidelines
- QGIS Python (PyQGIS) Cookbook
- QGIS Python (PyQGIS) API
- QGIS C++ API
- Developers Guide
There are several channels where you can find help and support for QGIS:
- Using the QGIS community site
- Joining the qgis-users mailing list
- Chatting with other users real-time. Please wait around for a response to your question as many folks on the channel are doing other things and it may take a while for them to notice your question. The following paths all take you to the same chat room:
- Using an IRC client and joining the #qgis channel on irc.libera.chat.
- Using a Matrix client and joining the #qgis:osgeo.org room.
- At the GIS stackexchange or r/QGIS reddit, which are not maintained by the QGIS team, but where the QGIS and broader GIS community provides lots of advice
- Other support channels
You can help us by submitting bug reports or fixing bugs in the QGIS bug tracker.
If you wish to contribute patches you can:
- fork the project
- make your changes
- commit to your repository
- and then create a pull request.
The development team can then review your contribution and commit it upstream as appropriate.
If you commit a new feature, add [FEATURE]
to your commit message AND give a clear description of the new feature. The label Needs documentation
will be added by maintainers and will automatically create an issue on the QGIS-Documentation repo, where you or others should write documentation about it.
For large-scale changes, you can open a QEP (QGIS Enhancement Proposal). QEPs are used in the process of creating and discussing new enhancements or policy for QGIS.
Please help translate QGIS to your language. At this moment about forty languages are already available in the Desktop user interface and about eighty languages are available in transifex ready to be translated.
The translation process is managed by the Translation Team and all the activities are done under the Transifex platform.
If you are not a developer, there are many other possibilities that do not require programming skills to help QGIS to evolve. Check our project homepage for more information.