qgis

QGIS 3.0 - Joang, neng le eng; e fana ka maikutlo

Ba bangata ba rona rea ​​ipotsa:

QGIS 3.0 e tla lokolloa neng?

Selemong se fetileng (2015) sehlopha sa merero se ile sa qala ho batlisisa hore na QGIS 3.0 e tla lokolloa neng hona joang. Ba tšepisitse, ho latela molaetsa o tsoang ho bona Anita Graser, eo ba neng ba il'o e fetisetsa ka ho hlaka ho basebelisi le bahlahisi ba merero ea bona pele ba lokolla QGIS 3.0. Haufinyane ba lekile ho pepesa tse ling tsa lintlha tsa tokollo ea QGIS 3.0 mme qetellong ea poso ho na le monyetla oa ho hlahisa maikutlo a rona.

Ke hobane'ng ha 3.0?

QGis_LogoKa tloaelo mofuta o moholo o boloketsoe linako tseo phetoho e kholo e etsoang ho API ea software ea hau. Khefu ena ha se qeto e sa reng letho bakeng sa projeke ea QGIS kaha re basebelisi ba likete tse makholo ba itšetlehileng ka QGIS, ka bobeli bakeng sa ts'ebeliso ea rona le lits'ebeletso tse fuoang batho ba boraro.

Ho qeta nako le nako ho pshatla API ho hlokahala ho amohela ho ntlafatsoa ha mehaho le ntlafatso ea litsela, lilaebrari tse ncha le litokisetso ho liqeto tse entsoeng nakong e fetileng.

Liphello tsa ho tlōla API ke life?

lebaka le leng leo boo ena ea API ka QGIS 3.0 ke hore e tla ba le tšusumetso e khōlō, eo ka senya makholo a plugins tse tsoetseng pele tse neng li tla hlola ba nyalanang le API e ncha le bangodi ba bona ba ho etsa ho hlahloba liketsahalo tsa eona ho netefatsa hore li lumellana le API e ncha.

Boholo ba liphetoho tse hlokahalang ho itšetlehile haholo ka:

  • Liphetoho tse kae ho API li ama liketso tsa hona joale.
    Ke lintlha tse kae tse ngotsoeng ke bangoli ba plugin ka likarolo tsa API tseo ba tla li fetola.
  • Liphetoho tse kholo tsa 3.0 e tla ba life?

Ho na le lintlha tse 'nè tsa bohlokoa tseo u batlang ho li fetola ho 3.0:

 

Hlahloba Qt4 ho QT5: Ena ke setsi sa mantlha sa lilaebrari tseo QGIS e hahiloeng ka tsona holimo, re bua ka boemo ba CORE-bo sebetsang ba sethala. QT e boetse e fana ka lilaebrari ho etsa taolo ea memori, ts'ebetso ea khokahano, le taolo ea lits'oants'o. Qt4 (eo QGIS e ipapisitseng le eona hajoale) ha joale ha e ntlafatsoe ke bahlokomeli ba laeborari ea Qt mme e kanna ea ba le mathata a ts'ebetso ka li-platform tse ling (mohlala, OS X) esita le ho nolofatsa ho laola liphetolelo tsa binary (mohlala, Debian Testing le tokollo e latelang ea Debian. “Otlolla”). Mokhoa oa ho tlisa QGIS ho QT5 o se o ntse o e-na le tsoelo-pele ea bohlokoa (haholo-holo seo Matthias Kuhn a se entseng) hore hammoho le Marco Bernasocchi mosi ho Android "QField" e thehiloeng ka ho feletseng QT5. Leha ho le joalo, ho na le mefokolo ea ho etsa hore QT5 e ncha e sebetse ka lebaka la phello ea eona ho QGIS - haholo-holo ka li-widget tsa marang-rang (haholo-holo tse sebelisoang ho Composer le libaka tse ling tse seng kae QGIS).

Phindisa PyQt4 ho PyQt5: Tsena ke liphetoho tse amanang le puo ea Python bakeng sa Qt eo QGIS Python API e thehiloeng ho eona. Hlaha fetola QT5 C ++ sebelisa laebrari, o boetse o lebeletse hore ho abela PyQt5, python laebrari e le hore ba ka nka monyetla ka melemo ea API e ncha ka Python QT5.
Ho fetola Python 2.7 ho Python 3: Hajoale ntho e ngoe le e ngoe e sebetsa ho Python 2.7. Python 3 ke mofuta oa morao-rao oa python mme e khothaletsoa ke ba etelletseng pele projeke eo. Python 2 ha e lumellane hanyane le Python 3 (e batlang e lekana le ho se lumellane lipakeng tsa QGIS 2 le Qgis 3). Bahlahisi ba bangata ba entse python Python 3 haholo morao hore e lumellane le Python 2, empa ts'ebelisano ea morao ha e ntle haholo.
Ho ntlafatsoa ha QGIS API ka boeena: E 'ngoe ea mathata a ho boloka tšebelisano ea API lipakeng tsa liphetolelo ke hore u tlameha ho phela le khetho ea hau ea moralo bakeng sa nako e telele. Boiteko bo bong le bo bong bo etsoa ho QGIS ho se robe API letotong la litokollo tse nyane. Ho lokolla mofuta oa QGIS bakeng sa 3.0 ka API e sa tšehetsoeng hona joale ho tla re fa monyetla oa ho "hloekisa ntlo" ka ho lokisa lintho ho API tseo re sa li lumellaneng le tsona. U ka bona lenane la nakoana la Liphetoho tse hlahisoang bakeng sa 3.0 API.

Tsela ea ho tšehetsa phetoho ea 3.0 API

Joalokaha ho se ho boletsoe, mofuta oa 3.0 o tla robeha ka mofuta oa 2.G oa QGIS mme ho na le monyetla oa hore li-plugins tse ngata, lits'ebetso tse seng li ntse li le teng le likhoutu tse ling tse thehiloeng ho API ea hajoale li tla robeha. Joale ho ka etsoa eng ho fokotsa liphetoho? Matthias Kuhn, Jürgen Fischer, Nyall Dawson, Martin Dobias le bahlahisi ba bang ba kaholimo-limo ba ntse ba batla mekhoa ea ho fokotsa palo ea liphetoho tsa khefu ea API ha ba ntse ba tsoela pele ho ntšetsa pele codebase ea QGIS e ipapisitse le moloko o tlang oa lilaeborari le API ea eona e kahare. Kopanong ea rona ea ho qetela ea Komiti ea Tsamaiso ea Morero oa QGIS re ile ra nahana ka menyetla e fapaneng. Tafole e latelang e akaretsa seo Matthias Kuhn a ileng a akaretsa ka mosa le hore re lekile ka mokhoa o mong ho fetolela sengoloeng sena ho latela e ngotsoe blog ea hae:


QGIS 2.14 LTR
QGIS 2.16 ??? QGIS 3.0
Letsatsi la ho lokolla Qetellong ea February Likhoeli tse 4 hamorao 2.14 Khoeli ea likhoeli tsa 8?
Lintlha Hlahloba khoutu ea python ea motheo oa QGIS e le Python 3 e lumellanang le PyQt5 e lumellanang (ho kenya ts'ebetsong ka karolo e itseng bakeng sa ts'ebetso ea bohlokoa, mohlala, console, li-plugins tsa mantlha tsa python joalo-joalo)
Qt4 Si

E tlohetsoe ho Debian Stretch (ka lebaka la selemo)

(webkit e tlosoa)

E Che
Qt5 Che

Ho sa tsotellehe QWebView - ho ncha ha ho e-na le libaka tsohle. Hape e lahleheloa ke Engine ea QPainter.

Si Si
PyQt4 Si Si Che
PyQt5 Che Si Si
python 2 Si Si Che
python 3 Che Si Si
Cleanup API Che Che Si
Wrappers
PyQt5 -> PyQt4
E fana ka ~ 90% Tšebelisano e ka morao
Che Si Si
Boholo ba Binary Qt4 e thehiloe Qt4 e thehiloe Qt5 e thehiloe
Chelete ea pele Python wrappers

Ho na le lintho tse peli tsa bohlokoa tseo u lokelang ho li hopola mabapi le tlhahiso ea Matías:

Karolong ea pelemosebetsi e etsoa ka letoto la lihlooho tse ho tlatsa 2.x tšehetso QT5, PyQt5 sebelisa Python 3.0, tšehetsa Qt4, PyQt4 le Python 2.7. Sena se bolela hore liphetoho tsohle tse entsoeng karolong ea pele li tla lumellana le liphetolelo tsa 2.x tse fetileng. Python makgetheng tla kenyelletsoa tla kenyelletsa e le hore ba khale API PyQt4 ntse ho sebelisoa haholo-holo ha hlophiswa khahlanong QT5, PyQt5, Python 3.0. Ha u sebelisa QGIS e qapiloe khahlanong le Qt4, PyQt4 le Python 2.7 ho ne ho ke ke ha e-ba le ho se lumellane ho fapane.
Karolong ea bobeli, re tla sebetsa ho hlahisa QGIS 3.0, ho kenyelletsa API e ncha, Python 2.7 e tla felisoa ka ho feletseng, ho kenyelletsa le ts'ehetso ea Qt4 le PyQt4. makgetheng New ka, python kena karolong e qalang tla lula a eo, e kentse tsohle le, python khoutu le liphetoho tsa version 2.x tsa QGIS tsoela pele ho sebetsa ka version ea 3.x tsa QGIS. Karolong ena ho boetse ho lebeletsoe ho tsebisa liphetoho QGIS API tse ka senyang li-plugins tse ling. Ho rarolla sena, re tla fana ka tataiso ea ho falla ho leka ho thusa mokhoa oa ho falla oa liphetolelo tsa 2.x QGIS ho liphetolelo tsa 3.x QGIS.

Mohala oa mahae

Ho na le maqheka a seng makae a lokelang ho nkoa e le ho netefatsa hore ho fallela QGIS 3.0 ho utloahala ha ho utloise bohloko haholo.

  • 1. SRe lokela ho hlokomela hore le ha mokhoa o boletsoeng kaholimo o leka ho fokotsa palo ea mosebetsi ho python script in plugins, sena ha se hlile se tla ba 100%. Ho kanna ha ba le linyeoe moo khoutu e lokelang ho fetoloa mme maemong ohle bonyane, e kanna ea tlameha ho ntlafatsoa molemong oa ho netefatsa hore e ntse e tsoela pele ho sebetsa hantle.
    2. Ha ho na sesebelisoa sa lichelete se thehiloeng ka molao ho lefa bahlahisi bao ka boithatelo ba sebelisang nako ea bona ea ho falla. Ka lebaka lena, ho tla ba thata haholo ho fana ka linako tse nepahetseng tsa hore na karolo ka 'ngoe ea tšebetso e tla nka nako e kae. Ho se ts'oanehe hona ho tlameha ho tsotelloa ha ho raloa. Ehlile menehelo e amohelehile ho thusa ho etsa sena.
    3. Ho kanna ha ba le bahlahisi le litsi kantle moo tse fanang ka chelete bakeng sa likarolo tse ncha tsa QGIS 2.x mme sena se ka ama mosebetsi oa hau. Hoa hlokahala hore ho kenyellelitsoe mererong le likhakanyo tsa lichelete tsa merero ena, kabo e itseng ho tobana le phallo ea sethaleng sa 3.G sa QGIS.
    4. Haeba sehlopha sa QGIS se sebetsa ka "phetoho e feletseng", ho tla ba le nako e batlang e le khutšoanyane eo ka eona QGIS e tla be e sa tsitsa le ho fetoha kamehla ka lebaka la lisebelisoa tse tsoelang pele ho QGIS 3.0.
    4. Haeba u hlaolela ka tsela ea 'evolutionary', u ipeha kotsing ea hore nts'etsopele ea 3.0 e ka nka nako e telele ntle le haeba u na le sehlopha se tšepahalang sa bahlahisi ba sebetsang ho eona le ho e lokisetsa ho ea port.

    Litlhahiso

Ho latela lintlha tsohle tse boletsoeng ka holimo, e 'ngoe ea mela e' meli ea khato e etsoa:

1 tlhahiso:

Lokolla mofuta oa nakoana oa 2.16 ebe o qala ho sebetsa ka mofuta 3.0 e le ntho ea mantlha, ka fensetere ea nts'etsopele ea likhoeli tse 8. Liphetoho tse entsoeng ka mofuta oa 2.16 li tla batla ho tsamaellana le mofuta 3.0 (bona python3 / pytq5).

2 tlhahiso:

Qala hang ho 3.0 ka fensetere e fetisitsoeng ho QT5, Python 3.0 le PyQt5, 'me u kope bahlahisi hore ba etse mosebetsi oa bona ka 3.0. Tsoela pele le liphetolelo tsa 2.x le maqhubu a tloaelehileng ho fihlela 3.0 e se e loketse.

Litlhahiso tse ling

O na le tlhahiso e ngoe? QGIS e thahasella ho tseba ka mekhoa e meng e ka bang teng. Haeba u batla ho fana ka tlhahiso, ka kopo romella ho tim@qgis.org ka sehlooho "QGIS 3.0 Proposal".

Ho bonolo ho latela QGIS blog, moo buka ena e tsoang teng.

Golgi Alvarez

Mongoli, mofuputsi, setsebi sa Mehlala ea Tsamaiso ea Mobu. O kentse letsoho ho nahanoa le ho kenya ts'ebetsong ea mehlala e kang: Sistimi ea Sechaba ea Tsamaiso ea Thepa SINAP ho Honduras, Mohlala oa Tsamaiso ea Masepala a Kopanetsoeng Honduras, Mohlala o Kopanetsoeng oa Tsamaiso ea Cadastre - Registry in Nicaragua, System of Administration of Territory SAT in Colombia. . Mohlophisi oa blog ea tsebo ea Geofumadas ho tloha 2007 le moetsi oa AulaGEO Academy e kenyelletsang lithuto tse fetang 100 ka lihlooho tsa GIS - CAD - BIM - Digital Twins.

Related Articles

Siea ho hlahisa maikutlo

aterese ya hao ya imeile ke ke ho phatlalatswa. masimo a hlokahala a tšoailoe ka *

Konopo ea holimo