QGIS 3.0 - Momwe, nthawi ndi chiyani; amatanthauza

Ambiri a ife tikudabwa:

Kodi QGIS 3.0 idzatulutsidwa liti?

Chaka chatha (2015) gulu la polojekiti linayamba kufufuza nthawi ndi momwe QGIS 3.0 idzamasulidwe. Iwo analonjeza, molingana ndi positi kuchokera Anita Graser, kuti ziwonekere kwa ogwiritsa ntchito ndikukonzekera zolinga zawo asanayambe kuyambitsa QGIS 3.0. Posachedwa ayesa kufotokozera zina mwazifukwa za kukhazikitsidwa kwa QGIS 3.0 ndipo kumapeto kwa positi muli mwayi woti tiwonetse malingaliro athu.

Bwanji 3.0?

QGis_LogoKawirikawiri mawonekedwe aakulu amasungidwa nthawi zomwe kusintha kwakukulu kumapangidwe ku API ya mapulogalamu anu. Kuphwanya uku sikutanthauza chisankho chochepa cha polojekiti ya QGIS popeza ndife antchito zikwi mazana omwe amadalira QGIS, podzigwiritsa ntchito komanso ntchito zina zoperekedwa kwa anthu ena.

Nthawi zambiri kuswa kwa API kuli kofunika kuti pakhale kukonzanso kwa zomangamanga ndi kupititsa patsogolo njira, makanema atsopano ndi makonzedwe ku zisankho zopangidwa kale.

Zotsatira zake zotsutsana ndi API ndi zotani?

Chimodzi mwa zifukwa wakuswa iyi ya API mu QGIS 3.0 ndi kuti adzakhala ndi amadza chachikulu, amene akanathetsa mazana mapulagini otukuka kuti sakanakhalanso yogwirizana ndi API latsopano ndi Olemba awa kuchita kuyambiranso zomwe zikuchitika kuti zitsimikizire ndi API yatsopano.

Kusintha kwakukulu kumafunika kumadalira kwakukulu pa:

  • Zosintha zingati ku API zimakhudza zintchito zamakono.
    Muzolemba zingati omwe olemba plugin agwiritsira ntchito zigawo za API zomwe zingasinthe.
  • Kodi kusintha kwakukulu kwa 3.0 ndi kotani?

Pali mbali zinayi zofunika zomwe mukuyang'ana kusintha mu 3.0:

Sinthani Qt4 ku QT5: Ili ndiye dongosolo la malaibulale momwe QGIS imamangidwira kwambiri, timalankhula za momwe CORE imagwirira ntchito papulatifomu. QT imaperekanso malaibulale owongolera amayi, ntchito yolumikizira ndi kasamalidwe kazithunzi. Qt4 (pomwe QGIS idakhazikitsidwa pakadali pano) sikuti ikungopangidwa ndi iwo omwe amayang'anira laibulale ya Qt ndipo imatha kukhala ndi mavuto mogwirizana ndi magwiridwe antchito ena ndi mapulatifomu (mwachitsanzo, OS X) ndikuwongolera kasamalidwe ka mitundu yamabizinesi (Mwachitsanzo kuyesa kwa Debian ndi mtundu wotsatira wa Debian "Stretch"). Njira yobweretsera QGIS ku QT5 ili kale ndi njira yofunikira (makamaka zomwe Matthias Kuhn achita) zomwe pamodzi ndi Marco Bernasocchi utsi pa Android «QField» kutengera kwathunthu QQ5. Komabe, pali zolephera zina pakuyambitsa QT5 yatsopano chifukwa cha momwe imakhudzira QGIS - makamaka ndi maukonde asakatuli (makamaka omwe amagwiritsidwa ntchito mu Wolemba komanso malo ena ku QGIS).

Sinthani PyQt4 ku PyQt5: Izi ndizo kusintha kwachiyanjano kwa chinenero cha Python cha Qt chomwe QGIS Python API yakhazikitsidwa. Liti kusintha QT5 C ++ laibulale, nawonso ankayembekezera kusamukira ku PyQt5 Python laibulale kotero kuti tingalandire phindu la API latsopano Python QT5.
Kusintha Python 2.7 ku Python 3: Pakali pano zonse zimayenda pa Python 2.7. Python 3 ndi njira yatsopano ya python ndipo ikulimbikitsidwa ndi iwo amene amatsogolera polojekitiyo. Python 2 sichigwirizana ndi Python 3 (muyeso wotsutsana ndi zosagwirizana kuti padzakhala pakati pa QGIS 2 ndi Qgis 3). Anthu ambiri opanga apanga Python Python 3 zimagwirizana kwambiri ndi Python 2, koma zosiyana zogwirizana si zabwino.
Kukula kwa QGIS API palokha: Imodzi mwa mavuto omwe amatsutsana nawo API pakati pa mavesi ndikuti muyenera kukhala ndi zosankha zanu kwa nthawi yaitali. Mu QGIS, kuyesetsa kulikonse kutipangitse kusasokoneza API mkati mwa zochepa zomwe zimatulutsidwa. Kutulutsa QGIS malemba a 3.0 ndi API yosagwirizana ndi pakali pano idzapatsa mwayi "kuyeretsa nyumba" mwa kukonza zinthu mu API zomwe tili nazo zomwe sizikugwirizana. Mutha kuwona mndandanda wamakono wa Zosinthidwa za 3.0 API.

Momwe mungathandizire kusintha kwa 3.0 API

Monga tafotokozera kale, tsamba la 3.0 lidzasokoneza QGIS ndi 2.x ndipo ndizotheka kuti mapulagini ambiri, mapulogalamu omwe alipo ndi ma code ena omwe ali pa API yamakono akusweka. Choncho, tingachite chiyani kuti achepetse kusintha? Matthias Kuhn, Jürgen Fischer, Nyall Dawson, Martin Dobias ndi kutukula ina ikuluikulu akhala kufunafuna njira kuchepetsa chiwerengero cha API kuswa kusintha ali patsogolo m'munsi malamulo QGIS zikhale zochokera m'badwo wotsatira wa malaibulale komanso mkati API zawo. Pa msonkhano wotsiriza Committee wathu chiwongolero QGIS Project anali geofumó kudzera mwayi zosiyanasiyana. Mzere wotsatira umaphatikiza mwachidule zomwe Matthias Kuhn mwachidule amanena mwachidule komanso kuti taphunzira mbali imodzi kuti tilembere atumizidwa pa blog yake:


QGIS 2.14 LTR
QGIS 2.16 ??? QGIS 3.0
Tsiku lomasulidwa Kutha kwa February Miyezi 4 kenako 2.14 Mwezi wa 8?
Mfundo Sinthani kachidindo ka python koyambirira QGIS kukhala Python 3 yovomerezeka ndi PyQt5 yovomerezeka (kutsegulira pang'onopang'ono kwa ntchito zazikulu monga kutonthoza, mapulagini a python ndi zina zotero)
Qt4 Si

Yachotsedwa mu Debian Stretch (chifukwa cha chaka)

(webkititi yachotsedwa)

inde Ayi
Qt5 Ayi

Misses QWebView - malo atsopano osati m'malo onse. Amasowapo Engine Engine QPainter.

Si Si
PyQt4 Si Si Ayi
PyQt5 Ayi Si Si
Python 2 Si Si Ayi
Python 3 Ayi Si Si
Chotsani API Ayi Ayi Si
Wrappers
PyQt5 -> PyQt4
Amapereka ~ 90% Kugwirizana kumbuyo
Ayi Si Si
Ambiri mwa Binary Qt4 Based Qt4 Based Qt5 Based
Zopereka zowonjezera Zilonda zamkati

Pali zinthu ziwiri zofunika kukumbukira zomwe Matías ananena:

Gawo loyambantchito zachitika pa mndandanda kumaliza 2.x thandizo QT5, PyQt5 ntchito Python 3.0 chothandiza Qt4, PyQt4 ndi Python 2.7. Izi zikutanthawuza kuti kusintha konse komwe kumapangidwa mu gawo loyamba kudzagwirizana ndi ma 2.x omwe asinthidwa kale. Zizindikiro zamakono zidzayambitsidwa kotero kuti PyQt4 API yakale ikhoza kugwiritsidwa ntchito makamaka pokonza QT5, PyQt5, Python 3.0. Pogwiritsa ntchito QGIS analemba ndi Qt4, PyQt4 ndi Python 2.7 sankakhoza kuswa ngakhale.
Mu gawo lachiwiri, titha kugwira ntchito kuti tipeze QGIS 3.0, poyambitsa API yatsopano, Python 2.7 idzathetsedweratu, kuphatikizapo kuthandizira Qt4 ndi PyQt4. Zatsopano zatsopano zomwe zimayambika mu gawo loyambirira zidzasungidwa, podziwa kuti chikho chonse cha python ndi zochitika za 2.x ma QGIS zidzapitiriza kugwira ntchito pa 3.x ma QGIS. Pachigawo ichi akuyembekezeranso kufotokoza kusintha kwa QGIS API yomwe ikhoza kuthyola mapulagini ena. Kuti tithetsere izi, tipereka chitsogozo choyendayenda pofuna kuyendetsa kayendetsedwe ka maulendo a 2.x QGIS ku ma 3.x QGIS.

Mphindi wamkati

Pali njira zingapo zomwe ziyenera kuganiziridwa kuti zitsimikizire kuti kusamukira ku QGIS 3.0 kumakhala kovuta kwambiri.

  • 1. STiyenera kukumbukira kuti ngakhale njira yomwe yakhazikitsidwa pamwambayi ikuyesera kuchepetsa kuchuluka kwa ntchito yomwe ilipo ponena za python mu mapulagini, izi sizidzakhala mu 100%. Mwinamwake padzakhala nthawi yomwe chiwerengerochi chiyenera kusintha ndipo nthawi zonse ziyenera kuyambiranso kuti zitsimikizire kuti zikupitirira kugwira ntchito bwino.
    2. Palibe ndalama zomwe zimakhazikitsidwa kuti zilipire ogwira ntchito omwe amadzipereka mwachangu nthawi yawo yowonongeka. Chifukwa cha izi, zidzakhala zovuta kupereka nthawi yeniyeni ya nthawi yomwe gawo lirilonse lidzayambe. Kusatsimikizika uku kuyenera kuganiziridwa pokonzekera. Inde kulandiridwa kwa zopereka kumatsegulidwa kuti zithandize kuti izi zichitike.
    3. Pakhoza kukhala omanga ndi mabungwe kunja uko omwe amapereka zida zatsopano pa mndandanda wa 2.x QGIS ndipo izi zingakhudze ntchito yawo. Tiyenera kumaphatikizapo ndondomeko ndi bajeti za polojekitiyi, zomwe zinagawidwa kuti zikagwirizane ndi kusamukira ku nsanja ya 3.x ya QGIS.
    4. Ngati gulu la QGIS likugwira ntchito "kusintha kwathunthu", padzakhala nthawi yochepa yomwe QGIS idzakhala yosasunthika komanso yosintha nthawi zonse chifukwa chazowonjezera zowonjezera QGIS 3.0.
    4 Ngati zimakula mwanjira ya "chisinthiko", pali ngozi yoti chitukuko cha 3.0 chikhoza kutenga nthawi yayitali pokhapokha ngati pali gulu lokhulupirika la otukula omwe akuchita izi ndikuwapangitsa kukhala okonzeka kusamukira.

    Zosangalatsa

Malinga ndi chidziwitso chonse cha pamwambapa, imodzi mwa mizere iwiriyi ikuperekedwa:

Zotsatira za 1:

Tulutsani tsamba la 2.16 yeniyeni ndikuyamba kugwira ntchito ya 3.0 monga choyambirira, ndizenera zowonjezera miyezi ya 8. Zosintha zomwe zimapangidwa muzithunzithunzi za 2.16 zidzakhala zogwirizana ndi tsamba la 3.0 (onani python3 / pytq5).

Zotsatira za 2:

Yambitsani kamodzi ku 3.0 ndi mawindo ochulukira pa QT5, Python 3.0 ndi PyQt5, ndipo funsani ogwira ntchito kuti azigwira ntchito ku 3.0. Pitirizani ndi mawonekedwe a 2.x ndi mafupipafupi mpaka 3.0 ili okonzeka.

Njira zina

Kodi muli ndi njira ina? QGIS ili ndi chidwi chodziwa njira zina zotheka. Ngati mukufuna kufotokozera, chonde tumizani ku tim@qgis.org ndi mutu wakuti "QGIS 3.0 Proposal".

Ndi bwino kutsatira QGIS blog, kumene buku ili linachokera.

Siyani yankho

Anu email sati lofalitsidwa.

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.