Kaip dalis atviro kodo programinės įrangos ekosistemos, QGIS sukurta virš įvairių bibliotekų, kurios kartu su savo tiekėjais siūlo galimybes skaityti ir dažnai rašyti daugeliu formatų:
Vektoriniai duomenų formatai, tai GeoPackage, GML, GeoJSON, GPX, KML, kableliais atskirtos reikšmės, ESRI formatai (Shapefile, Geodatabase…), MapInfo ir MicroStation failų formatai, AutoCAD DWG/DXF, GRASS ir daug kitų… Skaitykite pilną palaikomų vektorinių formatų sąrašą.
Rastro duomenų formatai tai GeoTIFF, JPEG, ASCII tinklo XYZ, MBTiles, R ar Idrisi rastrai, GDAL virtualūs, SRTM, Sentinelio duomenys, ERDAS IMAGINE, ArcInfo Binary Grid, ArcInfo ASCII Grid ir daug kitų… Skaitykite pilną palaikomų rastro formatų sąrašą.
Duomenų bazės formatai tai PostgreSQL/PostGIS, SQLite/SpatiaLite, Oracle, MS SQL Server, SAP HANA, MySQL…
Žiniatinklio žemėlapiai ir duomenų paslaugos (WM(T)S, WFS, WCS, CSW, XYZ kaladėlės, ArcGIS paslaugos, …) taipogi palaikomos QGIS tiekėjų. Daugiau informacijos apie kai kuriuos iš jų rasite skyriuje Darbas su OGC / ISO protokolais.
Jūs galite skaityti palaikomus failus iš archyvų aplankų ir naudoti QGIS vidinius formatus, tokius kaip QML failus (QML - The QGIS Style File Format) ir virtualius bei atminties sluoksnius.
GDAL ir vidiniai QGIS tiekėjai palaiko daugiau nei 80 vektorinių ir 140 rastro formatų.
Pastaba
Ne visi išvardinti formatai gali veiktu QGIS dėl įvairių priežasčių. Pavyzdžiui kai kuriems reikia išorinių nuosavybinių bibliotekų ar jūsų OS GDAL/OGR bibliotekų versijos gali nepalaikyti jums reikiamo formato. Norėdami pažiūrėti galimų formatų sąrašą, komandinėje eilutėje paleiskite ogrinfo--formats (vektoriniams) ir gdalinfo--formats (rastrams) arba žiūrėkite QGIS meniu punktą Nustatymai ► Parinktys ► GDAL.
Priklausomai nuo duomenų formato, QGIS yra keli įrankiai, leidžiantis atidaryti duomenų rinkinį, pagrinde juos galima rasti meniu:Sluoksnis –> Pridėti sluoksnį –> ar įrankinėje Tvarkyti sluoksnius (įjungiama per meniu Vaizdas ► Įrankinės). Bet visi šie įrankiai veda į tą patį dialogą: Duomenų šaltinių tvarkyklė, kurį jūs galite atidaryti mygtuku Atverti duomenų šaltinių tvarkyklę, o rasite jį Duomenų šaltinių tvarkymo įrankinėje ar spausdami Ctrl+L. Dialogas Duomenų šaltinių tvarkyklė (Fig. 11.1) teikia bendrą sąsają failais paremtiems duomenimis bei duomenų bazėms ar žiniatinklio paslaugoms, palaikomoms QGIS.
Fig. 11.1 QGIS duomenų šaltinių tvarkyklės dialogas
Be šio bendro pradžios taško, dar yra priedas DB tvarkyklė, kuris teikia galimybę analizuoti ir manipuliuoti prijungtas duomenų bazes. Daugiau informacijos apie DB tvarkyklės galimybes rasite skyriuje DB Manager Plugin.
Yra daug kitų įrankių, vidinių ar trečiųjų-šalių priedų, kurie padės jums atverti įvairius duomenų formatus.
Šiame skyriuje aprašomi tik pagal nutylėjimą QGIS esantys duomenų įkėlimo įrankiai. Pagrindinis dėmesys bus skiriamas dialogui Duomenų šaltinių tvarkyklė, bet be visų kortelių aprašymo taipogi bus tyrinėjami įrankiai pagal duomenų tiekėją ar formato specifiką.
Naršyklė - tai vienas iš pagrindinių būdų greitai ir lengvai pridėti duomenis į jūsų projektus. Jis veikia kaip:
Duomenų šaltinių tvarkyklės kortelė, įjungiama paspaudus mygtuką Atverti duomenų šaltinių tvarkyklę (Ctrl+L);
QGIS skydelis, kurį jūs galite atverti per meniu Vaizdas ► Skydeliai (ar Nustatymai ► Skydeliai) arba paspaudę Ctrl+2.
Abiem atvejais Naršyklė padeda jums naršyti po jūsų failų sistemą ir tvarkyti geoduomenis, nepriklausomai nuo sluoksnio tipo (rastras, vektorius, lentelė) ar duomenų šaltinio formato (paprasti ar suspausti failai, duomenų bazės, žiniatinklio šaltiniai).
Naršyklės skydelio viršuje jūs rasite kelis mygtukus, kurie padės jums:
Pridėti parinktus sluoksnius: jūs taipogi galite pridėti duomenis į žemėlapio drobę parinkdami sluoksnio kontekstiniame meniu Pridėti parinktą sluoksnį(ius);
Atnaujinti naršyklės medį;
Filtruoti naršyklę konkrečių duomenų paieškai. Įveskite paieškos žodį ar šabloną ir naršyklė filtruos medį, kad rodytų tik kelius į atitinkamas DB lenteles, failų pavadinimus ar aplankus – kiti duomenys ir aplankai nebus rodomi. Žiūrėkite naršyklės skydelio(2) pavyzdį Fig. 11.2. Lyginimą galima daryti atsižvelgiant į raidžių dydį arba ne. Jį taipogi galima nustatyti į:
Normalų: rodyti elementus, kuriuose yra ieškomas tekstas
Įjungti/išjungti savybių valdiklį: įjungus, naujas valdiklis pridedamas skydelio apačioje ir, kai galima, rodo parinkto elemento metaduomenis.
Skydelio Naršyklė įrašai išdėlioti pagal hierarchiją ir yra keli aukščiausio lygio įrašai:
Parankiniai, kur jūs galite padėti dažnai naudojamas vietas
Erdvinės žymelės, kur jūs galite laikyti dažnai naudojamas žemėlapio apimtis (žr. Žemėlapio apimčių žymelės)
Projekto namai: greitai prieigai prie aplanko, kuriame laikoma (dauguma) su projektų susijusių duomenų. Numatytoji reikšmė yra aplankas, kuriame yra projekto failas.
Namų aplankas failų sistemoje ir failų sistemos šakninis aplankas.
Prijungti vietiniai ar tinklo įrenginiai
Toliau išvardinti keli konteinerių / duomenų bazių tipai ir paslaugų protokolai, priklausomai nuo jūsų platformos ir turimų bibliotekų:
Naršyklė palaiko pertempimą ir numetimą naršyklės viduje, iš naršyklės į drobę ir Sluoksnių skydelį bei iš Sluoksnių skydelio į sluoksnių konteinerius (pvz. GeoPackage) naršyklėje.
Projekto failo elementus naršyklėje galima išplėsti, rodant pilną projekto sluoksnių medį (įskaitant grupes). Projekto elementai veikia taip pat, kaip bet koks kitas naršyklės elementas, taigi juos galima tempti ir numesti naršyklės viduje (pavyzdžiui kopijuoti sluoksnio elementą į geopackage failą) ar pridėti į dabartinį projektą pertempiant ir numetant ar du kartus paspaudus.
Naršyklės skydelio elemento kontekstinis meniu atidaromas paspaudus ant jo dešinį pelės mygtuką.
Failų sistemos aplankų įrašams, kontekstinis meniu leidžia:
Naujas ► sukurti parinktame elemente:
Aplanką…
GeoPackage…
ShapeFile…
Pridėti kaip parankinį: parankinius aplankus galima bet kokiu metu pervadinti (Pervadinti parankinį…) ar išimti (Išimti parankinį).
Slėpti nuo naršyklės: paslėptus failus galima pakeisti į matomus naudojant nustatymą Nustatymai ► Parinktys ► Duomenų šaltiniai ► Paslėpti naršyklės keliai
Greitai skenuoti šį aplanką
Atverti aplanką
Atverti terminale
Savybės…
Aplanko savybės…
Vaikiniams įrašams, kurie yra projektų sluoksniai, kontekstiniame meniu bus palaikantys įrašai. Pavyzdžiui, ne duomenų bazės, ne vektorinių, rastro ar duomenų tinklelio paslaugų įrašai turės:
Eksportuoti sluoksnį ► Į failą…
Pridėti sluoksnį į projektą
Sluoksnio savybės
Atverti su duomenų šaltinių tvarkykle…
Tvarkyti ► Pervadinti „<name of file>“… ar Trinti „<name of file>“…
Rodyti failuose
Failo savybės
Įraše Sluoksnio savybės jūs rasite (panašiai, kaip ir vektorinių ir rastro sluoksnių savybėse, kai sluoksniai pridedami į projektą):
Sluoksnio Metaduomenis. Metaduomenų grupes: Tiekėjo informacija (jei įmanoma, Kelias bus hipernuoroda į šaltinį), Identifikacija, Apimtis, Prieiga, Laukai (vektoriniams sluoksniams), Juostos (rastro sluoksniams), Kontaktai, Jungtys (vektoriniams sluoksniams), Nuorodos (rastro sluoksniams), Istorija.
Peržiūros skydelį
Vektorinių šaltinių atributų lentelę (skydelyje Atributai).
Naudokite Atverti su duomenų šaltinių tvarkykle…, kad tiesiogiai atidarytumėte ir konfigūruotumėte duomenų šaltinį su Duomenų šaltinių tvarkykle naudojant jūsų duomenų šaltinio URI. Tai supaprastina sluoksnio pridėjimo iš Naršyklės procesą leidžiant jums nustatyti konkrečias duomenų šaltinio atidarymo parinktis. Šiuo metu tai veikia su vektoriniais (įskaitant tam skirtus GeoPackage įrašus), rastro ir SpatiaLite duomenų šaltiniais.
Norėdami pridėti į projektą sluoksnį naudojant Naršyklę:
Įjunkite Naršyklę, kaip aprašyta aukščiau. Bus parodytas jūsų failų sistemos, duomenų bazių ir žiniatinklio paslaugų medis. Jums gali prireikti prijungti duomenų bazes ir žiniatinklio paslaugas, kad jos pasirodytų (žr. tam skirtas skiltis).
Raskite sluoksnį sąraše.
Naudokite kontekstinį meniu, du kartus paspauskite pavadinimą arba pertempkite ir numeskite jį į žemėlapio drobę. Jūsų sluoksnis dabar pridėtas į Sluoksnių skydelį ir galite jį matyti žemėlapio drobėje.
Patarimas
Atverkite QGIS projektą tiesiai iš naršyklės
Jūs galite atverti QGIS projektą tiesiai iš Naršyklės skydelio du kartus paspaudę jo pavadinimą arba nutempę ir numetę jį į žemėlapio drobę.
Įkėlus failą jūs galite naršyti po jį naudodami žemėlapio navigacijos įrankius. Norėdami pakeisti sluoksnio stilių, atverkite dialogą Sluoksnio savybės du kartus paspaudę sluoksnio pavadinimą ar paspaudę dešinį pelės mygtuką ant pavadinimo legendoje ir kontekstiniame meniu parinkę Savybės. Daugiau informacijos apie vektorinių sluoksnių simbologijos nustatymus rasite skyriuje Symbology Properties.
Dešinys pelės paspaudimas naršyklės medyje padeda jums:
failui ar lentelei - rodyti jo metaduomenis ar atverti jį jūsų projekte. Lenteles galima pervadinti, trinti ar ištuštinti.
aplankui - jį pasidėti į parankinius ar paslėpti naršyklės medyje. Paslėptus aplankus galima valdyti kortelėje Nustatymai ► Parinktys ► Duomenų šaltiniai.
valdyti jūsų erdvines žymeles: žymeles galima kurti, eksportuoti ir importuoti kaip XML failus.
kurti jungtį su duomenų baze ar žiniatinklio paslauga.
atnaujinti, pervadinti ar ištrinti schemą.
Jūs taipogi galite importuoti failus į duomenų bazes ar kopijuoti lenteles iš vienos schemos/duomenų bazės į kitą naudojant paprastą pertempimą ir numetimą. Galima naudoti antrą naršyklės skydelį, kad pertempimo metu nereikėtų toli sukti slankiklio. Tiesiog pažymėkite failą ir pertempkite bei numeskite jį į kitą skydelį.
Fig. 11.2 QGIS naršyklės skydeliai vienas greta kito
Patarimas
Pridėkite sluoksnius į QGIS tiesiog pertempdami juos iš jūsų OS failų naršyklės
Jūs taipogi galite pridėti failą(us) į projektą tempdami ir numesdami juos iš jūsų operacinės sistemos failų naršyklės į Sluoksnių skydelį ar žemėlapio drobę.
Priedas DB tvarkyklė yra dar vienas įrankis, QGIS palaikomų erdvinių duomenų bazių formatų integravimui ir tvarkymui (PostGIS, SpatiaLite, GeoPackage, Oracle Spatial, MS SQL Server, Virtualūs sluoksniai). Jį galima aktyvuoti per meniu Priedai ► Tvarkyti ir įdiegti priedus….
DB tvarkyklės priedas teikia kelias savybes:
prisijungimas prie duomenų bazių ir jų struktūros bei turinio peržiūra
duomenų bazių lentelių peržiūra
sluoksnių pridėjimas į žemėlapio drobę dvigubu paspaudimu arba tempimu ir numetimu.
sluoksnių pridėjimas į duomenų bazę iš QGIS naršyklės ar kitos duomenų bazės
SQL užklausų kūrimas ir jų išvesties pridėjimas į žemėlapio drobę
Be naršyklės skydelio ir DB tvarkyklės - pagrindinių QGIS teikiamų sluoksnių pridėjimo įrankių, jūs taipogi rasite įrankius, kurie yra naudojami tik su konkrečiais duomenų tiekėjais.
Pastaba
Kai kurie išoriniai priedai taipogi teikia įrankius, skirtus atidaryti QGIS konkrečių formatų failus.
Atidarykite sluoksnių tipo kortelę dialoge Duomenų šaltinių tvarkyklę, t.y. spauskite mygtuką Atverti duomenų šaltinių tvarkyklę (arba spauskite Ctrl+L) ir įjunkite paskirties kortelę, arba:
vektoriniams duomenims (tokiems kaip GML, ESRI Shapefile, Mapinfo ir DXF sluoksnniams): spauskite Ctrl+Shift+V, parinkite meniu Sluoksnis ► Pridėti sluoksnį ►Pridėti vektorinį sluoksnį arba spauskite įrankinės mygtuką Pridėti vektorinį sluoksnį.
Fig. 11.4 Vektorinio sluoksnio pridėjimo dialogas
rastro duomenims (tokiems kaip GeoTiff, MBTiles, GRIdded Binary ir DWG sluoksniams): spauskite Ctrl+Shift+R, parinkite meniu Sluoksnis ► Pridėti sluoksnį ►Pridėti rastro sluoksnį arba spauskite įrankinės mygtuką Pridėti rastro sluoksnį.
Naviguokite failų sistemoje ir įkelkite palaikomą duomenų šaltinį. Vienu metu galima įkelti daugiau nei vieną sluoksnį laikant Ctrl kai spaudžiama ant elementų dialoge arba laikant paspaustą Shift, kad parinktumėte diapazoną elementų paspaudus ant pirmo ir tada paskutinio diapazono elemento. Formatų filtre rodomi tik tie formatai, kurie buvo gerai išbandyti. Kitus formatus galima įkelti parinkus Visifailai (viršutinis iškrentančio meniu elementas).
Spauskite Atidaryti, kad įkeltumėte parinktą failą į Duomenų šaltinių tvarkymo dialogą.
Priklausomai nuo parinkto sluoksnio tipo, konfigūravimui bus prieinami papildomos Parinktys (koduotė, geometrijos tipas, lentelės filtravimas, failų rakinimas, duomenų formatavimas …). Šios parinktys detaliai aprašomos konkrečiuose GDAL vektorių ar rastro tvarkyklių dokumentacijose. Parinkčių viršuje esantis hypertekstas jus nuves tiesiai į parinkto failo formato atitinkamos tvarkyklės dokumentaciją.
Fig. 11.6 Shape failo įkėlimas su atvertomis parinktimis
Spauskite Pridėti, kad įkeltumėte failą į QGIS ir parodytumėte jį žemėlapio vaizde. Kai pridedamos vektorinės duomenų aibės su keliais sluoksniais, bus rodomas dialogas Parinkite pridedamus elementus. Šiame dialoge jūs galite parinkti konkrečius jūsų duomenų rinkinio sluoksnius, kuriuos norite pridėti. Taipogi skiltyje Parinktys jūs galite pasirinkti:
Pridėti sluoksnius į grupę
Rodyti sistemines ir vidines lenteles
Rodyti tuščius vektorinius sluoksnius.
Fig. 11.7 matomas QGIS po failo alaska.shp įkėlimo.
Kadangi kai kurie formatai, tokie kaip MapInfo (pvz., .tab) ar Autocad (.dxf) leidžia viename faile kartu laikyti skirtingų tipų geometrijas, įkeliant tokius duomenų rinkinius atidaromas dialogas, kur reikia parinkti geometrijas kiekvienam sluoksniui.
Kortelės Pridėti vektorinį sluoksnį ir Pridėti rastro sluoksnį leidžia įkelti sluoksnius iš šaltini tipų, kitokių nei Failas:
Jūs galite įkelti specifinius vektorinius formatus, tokius kaip ArcInfodvejetainispadengimas, UK.Nactionalinisperdavimoformatas bei pradinį TIGER formatą iš USCensusBureau ar OpenfileGDB. Norėdami tai padaryti, parinkite Aplanką kaip Šaltinio tipą. Tokiu atveju, kai paspausite …Naršyti, galėsite dialoge parinkti aplanką.
Su šaltinio tipu Duomenų bazė jūs galite parinkti esamą duomenų bazės jungtį ar sukurti parinkto tipo naują. Kelios galimos duomenų bazės yra ODBC, EsriPersonalGeodatabase, MSSQLServer kaip ir PostgreSQL ar MySQL .
Paspaudus mygtuką Naujas, atveriamas dialogas Kurti naują OGR duomenų bazės jungtį su parametrais, kuriuos galite rasti skyriuje Creating a stored Connection. Paspaudę Atverti jūs parenkate iš galimų lentelių, pavyzdžiui iš duomenų bazių su PostGIS.
:guilabel:`Protokolas: HTTP(S), debesies ir panašiems šaltinių tipams atidaro duomenis, kurie saugomi vietoje arba tinkle, kur jie arba viešai prieinami, arba teikiami privačiuose komercinių debesų saugyklų paslaugomis. Palaikomi protokolų tipai yra:
Debesų saugyklos, tokios kaip AWSS3, GoogleCloudStorage, MicrosoftAzureBlob, MicrosoftAzureDataLakeStorage, AlibabaOSSCloud ir OpenStackSwiftStorage, palaiko tiesioginį valdymą per VSI Prisijungimo parinktis, kai pridedami OGR vektorių ar GDAL rastro sluoksniai. Jums reikia iš pradžių užpildyti Kibirėlį ar konteinerį ir Objektų raktą. Tada jūs galite pridėti reikiamą Prisijungimo informaciją.
Pridedant OGR vektorinius ar GDAL rastro sluoksnius per debesimis paremtus protokolus, jūs taipogi galite nurodyti papildomas Prisijungimo parinktis konkrečiai tvarkyklei ar kibirėliui. Kai prisijungimo duomenys randami sluoksnio URI, jie nustatomi automatiškai. Tai leidžia skirtingiems sluoksniams naudoti skirtingus prisijungimo duomenis.
paslauga, palaikanti OGC WFS3 (vis dar eksperimentinis), naudojant GeoJSON ar GEOJSON-atskirtanaujomiseilutėmis formatą ar paremtą CouchDB duomenų baze. Privaloma nurodyti URI, galima nurodyti ir autentifikaciją.
Visiems vektoriniams šaltinių tipams galima nurodyti Koduotę arba naudoti nustatymą Automatinis ►.
Šaltinio tipas OGC API leidžia pasiekti vektorinius ir rastro duomenis iš serverių, kurie įgyvendina OGC API standartus. Norėdami naudoti šią parinktį:
Dialoge Duomenų šaltinių tvarkyklė parinkite OGC API.
Įveskite OGC API paslaugos prieigos tašką, prie kurio norite prisijungti. Pastebėtina, kad nurodant prieigos tašką nereikia jam pridėti priešdėlio „OGCAPI:“.
Spauskite Prisijungti, kad sukurtumėte jungtį su serveriu.
Tinklelis yra nestruktūrinis tinklas, paprastai su laiko ar kitais komponentais. Erdviniame komponente yra aibė viršūnių, kraštinių ir plokštumų 2D ir 3D erdvėje. Daugiau informacijos apie tinklelio sluoksnius rasite skyriuje Darbas su tinklelio duomenimis.
Norėdami pridėti tinklelio sluoksnį į QGIS:
Atverkite dialogą Duomenų šaltinių tvarkyklė arba parenkant jį per meniu Sluoksnis ►, arba paspaudus mygtuką Atverti duomenų šaltinių tvarkyklę.
Kairiame skydelyje įjunkite kortelę Tinklelis
Spauskite mygtuką …Naršyti, kad parinktumėte failą. Palaikomi Įvairūs formatai.
Parinkite failą ir spauskite Pridėti. Sluoksnis bus pridėtas naudojant savą tinklelio braižymą.
Jei parinktame faile yra daug tinklelių sluoksnių, tada jums bus parodytas dialogas, kuriame jūsų paprašys pasirinkti įkeliamus posluoksnius. Pasirinkite ir spauskite Gerai, tada sluoksniai bus įkelti su savo tinklelio braižymu. Taipogi galima įkelti juos grupėje.
Fig. 11.8 Tinklelio kortelė Duomenų šaltinių tvarkyklėje
Atskirus failus (pvz. .txt, .csv, .dat, .wkt) galima įkelti naudojant aukščiau aprašytus įrankius. Tokiu būdu jie bus rodomi kaip paprastos lentelės. Kartais atskirtuose teksto failuose gali būti koordinatės / geometrijos, kurias jūs galite norėti pavaizduoti. Tam ir sukurta galimybė Pridėti atskirtą teksto sluoksnį.
Spauskite piktogramą Atverti duomenų šaltinių tvarkyklę, kad atvertumėte Duomenų šaltinių tvarkyklės dialogą
Įjunkite kortelę Atskirtas tekstas
Parinkite importuojamą atskirto teksto failą (pvz., qgis_sample_data/csv/elevp.csv) paspausdami mygtuką …Naršyti.
Lauke Sluoksnio pavadinimas pateikite pavadinimą, kurį reikia projekte naudoti kaip sluoksnio pavadinimą (pvz. Aukštis).
Sukonfigūruokite nustatymus, kad jie atitiktų jūsų duomenų aibės poreikius, kaip paaiškinta žemiau.
Parinkus failą QGIS bando išnagrinėti failą su paskutiniu naudotu skirtuku, identifikuojant laukus ir eilutes. Kad QGIS galėtų teisingai išnagrinėti failą, labai svarbu parinkti teisingą skirtuką. Jūs galite nurodyti skirtuką pasirinkdami vieną iš:
CSV (kableliu atskirtos reikšmės) kad naudotumėte kablelio simbolį.
Reguliarios išraiškos skirtukas ir įveskite tekstą į lauką Išraiška. Pavyzdžiui jei norite pakeisti skirtuką į tabuliacijos simbolį, naudokite \t (tai reguliariose išraiškose naudojama kaip tabuliacijos simbolis).
Savi skirtukai, pasirinkite iš iš anksto apibrėžtų skirtukų, tokių kaip kablelis, tarpas, tabuliacija, kabliataškis, … .
Duomenų atpažinimui galima naudoti keletą kitų patogių parinkčių:
Skaičius išmetamų antraštės eilučių: patogu, kai norite išvengti kelių pirmų failo eilučių importo metu, nes arba jos yra tuščios, arba jose yra kitoks formatavimas.
Pirmame įraše yra laukų pavadinimai: pirmos eilutės reikšmės yra naudojamos laukų pavadinimams, kitu atveju QGIS naudoja laukų pavadinimus field_1, field_2…
Atpažinti laukų tipus: automatiškai atpažįsta lauko tipą. Išjungus šią parinktį visi atributai laiko tekstiniais.
Trupmeninės dalies skirtukas yra kablelis: galite priversti naudoti kablelį kaip trupmeninės dalies skirtuką.
Apkarpyti laukus: leidžia jums apkarpyti laukus ir gale esančius tarpus.
Išmesti tuščius laukus.
Savos loginės reikšmės: leidžia jums pridėti savo eilučių porą, kuri bus aptinkama kaip loginės reikšmės.
QGIS bando automatiškai aptikti laukų tipus (nebent varnelė Aptikti laukų tipus yra išjungta) tiriant papildomo CSVT failo turinį (žr. GeoCSV specifikacija) ir skenuojant visą failą, kad būtų įsitikinta, kad reikšmes tikrai galima konvertuoti be klaidų, atsarginis lauko tipas yra tekstas.
Aptiktas lauko tipas matosi po lauko pavadinimu pavyzdinių duomenų peržiūros lentelėje ir, jei reikia, jį galima pakeisti rankomis.
Palaikomi šie laukų tipai:
Loginis nuo raidžių dydžio nepriklausančios tekstinės poros, kurios interpretuojamos kaip loginės reikšmės, yra 1/0, true/false, t/f, yes/no
Sveikasskaičius(integer)
Sveikasskaičius(integer-64bit)
Dešimtainisskaičius: double precision floating point number
Išnagrinėjus failą, nustatykite Geometrijos apibrėžimą kaip
Taško koordinates ir pateikite X lauką, Y lauką, Z lauką (3-matmenų duomenims) ir M lauką (matavimo matmeniui), jei sluoksnis yra taško geometrijos ir turi tokius laukus. Jei koordinatės nurodytos laipsniais/minutėmis/sekundėmis, įjunkite varnelę DMS koordinatės. Pateikite atitinkamą Geometrijos CRS naudojant valdiklį Parinkti CRS.
Gerai žinomas teksto (WKT) parinktį, jei erdvinė informacija išreikšta kaip WKT: parinkite Geometrijos lauką, kuriame yra WKT geometrija ir parinkite atitinkamą Geometrijos tipą arba leiskite QGIS jį aptikti automatiškai. Pateikite atitinkamą Geometrijos CRS naudojant valdiklį Parinkti CRS.
Jei faile yra neerdviniai duomenys, įjunkite Nėra geometrijos (lentelėje tik atributai) ir jis bus įkeltas kaip paprasta lentelė.
Naudoti erdvinį indeksą, kad pagerintumėte erdvinių geoobjektų rodymo ir parinkimo greitaveiką.
Naudoti poaibio indeksą, kad pagerintumėte poaibių filtrų greitaveiką (kai jie apibrėžti sluoksnio savybėse).
Stebėti failą, kad būtų stebima, kada failą keičia kitos programos kol veikia QGIS.
Tada spauskite Pridėti, kad pridėtumėte sluoksnį į žemėlapį. Mūsų pavyzdyje į projektą pridedamas taškų sluoksnis vardu Elevation ir jis elgiasi lygiai taip pat, kaip visi kiti QGIS žemėlapio sluoksniai. Šis sluoksnis yra šaltinio failo .csv užklausos rezultatas (taigi su juo susijęs) ir jį reikės įrašyti, jei norėsite gauti erdvinį sluoksnį diske.
DXF ir DWG failus galima pridėti į QGIS tiesiog pertempus juos iš Naršyklės skydelio. Jūsų paprašys parinkti posluoksnius, kuriuos norite pridėti į projektą. Sluoksniai pridedami su atsitiktinėmis stiliaus savybėmis.
Pastaba
DXF failams su keliais geometrijos tipais (taškas, linijoma ir/arba poligonas), sluoksniai bus pavadinti kaip <failas.dxf> esybės <geometry type>.
Kad išlaikytumėte dxf/dwg failo struktūrą ir jo simbologiją QGIS’e, jūs galite naudoti tam skirtą įrankį Projektas ► Importuoti/Eksportuoti ► Importuoti sluoksnius iš DWG/DXF…, kuris leis jums:
importuoti elementus iš brėžinio failo į GeoPackage duomenų bazę.
pridėti importuotus elementus į projektą.
Dialoge DWG/DXF importas, norėdami importuoti brėžinio failo turinį:
Įveskite Šaltinio brėžinio vietą, t.y. DWG/DXF brėžinio failą, kurį reikia importuoti.
Nurodykite brėžinio failo duomenų koordinačių atskaitos sistemą.
Įveskite Paskirties paketo vietą, t.y. GeoPackage failą, į kurį bus įrašyti duomenys. Jei nurodomas esamas failas, jis bus perrašytas.
Parinkite, kaip importuoti blokus:
Išskleisti blokų geometrijas: importuoja brėžinio failo bokus kaip normalius elementus.
Išskleisti bloko geometrijas ir pridėti įterpimo taškus: importuoja brėžinio failo blokus kaip normalius elementus ir prideda įterpimo tašką kaip taškų sluoksnį.
Tik pridėti taškus: prideda blokų įterpimo tašką kaip taškų sluoksnį.
Įjunkite Naudoti kreives, kad keistumėte importuojamus sluoksnius į kreivių geometrijos tipą.
Naudokite mygtuką Importuoti, kad importuotumėte brėžinį į paskirties GeoPackage failą. GeoPackage duomenų bazė bus automatiškai užpildyta brėžinio failo turiniu. Priklausomai nuo failo dydžio, tai gali užtrukti.
Po to, kai .dwg ar .dxf duomenys importuojami į GeoPackage duomenų bazę, apatinėje dialogo dalyje esanti dalis užpildoma importuoto failo sluoksniais. Ten jūs galite pasirinkti ir pridėti sluoksnius į QGIS projektą:
Viršuje nurodykite Grupės pavadinimą, kad grupuotumėte brėžinių failus projekte. Pagal nutylėjimą ji nustatoma pagal šaltinio brėžinio failą.
Įjunkite rodomus sluoksnius: kiekvienas parinktas sluoksnis pridedamas į ad hoc grupę, kurioje yra brėžinio sluoksnio taškų, užrašų, linijų ir plotų geoobjektai. Sluoksnių stiliai panašūs į tuos, kurie buvo *CAD.
Parinkite ar sluoksnis turi būti matomas atidarant.
Įjungus parinktį Sulieti sluoksnius, visi sluoksniai bus vienoje grupėje.
OpenStreetMap projektas yra populiarus, nes daugumoje šalių negalima nemokamai gauti geoduomenų, tokių kaip kelių žemėlapiai. OSM projekto tikslas yra sukurti laisvą redaguojamą pasaulio žemėlapį naudojant GPS duomenis, oro fotografijas ir vietines žinias. Kad padėtų šiam tikslui, QGIS teikia OSM duomenų palaikymą.
Naudojant Naršyklės skydelį jūs galite įsikelti .osm failą į žemėlapio drobę, tokiu atveju jums bus parodytas dialogas, kuriame galėsite pasirinkti posluoksnius pagal geometrijos tipą. Įkeltuose sluoksniuose bus visi to geometrijos tipo duomenys iš .osm failo ir jie išlaikys osm failo duomenų struktūrą.
The first time you load data from a SpatiaLite
database, begin by:
clicking on the Add SpatiaLite Layer toolbar
button
selecting the Add SpatiaLite Layer…
option from the Layer ► Add Layer menu
or by typing Ctrl+Shift+L
This will bring up a window that will allow you either to connect to a
SpatiaLite database already known to QGIS (which you choose from the
drop-down menu) or to define a new connection to a new database. To define a
new connection, click on New and use the file browser to point to
your SpatiaLite database, which is a file with a .sqlite extension.
There are dozens of different file formats for storing GPS data.
The format that QGIS uses is called GPX (GPS eXchange format),
which is a standard interchange format that can contain any number of waypoints,
routes and tracks in the same file.
Use the …Browse button to select the GPX file,
then use the check boxes to select the feature types you want to load from that GPX file.
Each feature type will be loaded in a separate layer.
In order to read and write tables from a database format QGIS supports
you have to create a connection to that database. While QGIS Browser
Panel is the simplest and recommanded way to connect to
and use databases, QGIS provides other tools to connect to each
of them and load their tables:
Add PostGIS Layer… or by typing
Ctrl+Shift+D
Add MS SQL Server Layer
Add Oracle Spatial Layer… or by typing
Ctrl+Shift+O
Add SAP HANA Spatial Layer… or by typing
Ctrl+Shift+G
These tools are accessible either from the Manage Layers Toolbar
and the Layer ► Add Layer ► menu.
Connecting to SpatiaLite database is described at SpatiaLite Layers.
Patarimas
Create connection to database from the QGIS Browser Panel
Selecting the corresponding database format in the Browser
tree, right-clicking and choosing connect will provide you
with the database connection dialog.
Most of the connection dialogs follow a common structure:
a section with credentials information to connect to the database
a section with options to tune which data can be requested in the database
The first time you use a PostGIS data source, you must create a connection
to a database that contains the data.
Press the appropriate button as exposed above, opening the PostgreSQL tab
of the Data Source Manager dialog.
To access the connection manager, click on the New button
to display the Create a New PostGIS Connection dialog.
Fig. 11.12 Create a New PostGIS Connection Dialog
Name: A name for this connection. It can be the same as Database.
Service: Service parameter to be used alternatively to hostname/port
(and potentially database). This can be defined in pg_service.conf.
Check the PostgreSQL Service connection file section for more details.
Host: Name of the database host. This must be a resolvable host name
such as would be used to open a TCP/IP connection or ping the host.
If the database is on the same computer as QGIS, simply enter localhost here.
Port: Port number the PostgreSQL database server listens on.
The default port for PostGIS is 5432.
Database: Name of the database.
SSL mode: SSL encryption setup.
The following options are available:
Prefer (the default): I don’t care about encryption,
but I wish to pay the overhead of encryption if the server supports it.
Require: I want my data to be encrypted, and I accept the overhead.
I trust that the network will make sure I always connect to the server I want.
Verify CA: I want my data encrypted, and I accept the overhead.
I want to be sure that I connect to a server that I trust.
Verify Full: I want my data encrypted, and I accept the overhead.
I want to be sure that I connect to a server I trust, and that it’s the one I specify.
Allow: I don’t care about security,
but I will pay the overhead of encryption if the server insists on it.
Disable: I don’t care about security,
and I don’t want to pay the overhead of encryption.
Session role: used to set the current user identifier of the current session.
This is useful to automatically give the ownership of a new object (table, view, function)
to the session_role group and thus share ownership and associated rights with all members
of the session_role group.
Read more about session role.
Authentication, basic.
User name: User name used to log in to the database.
Password: Password used with Username to connect to the database.
You can save any or both of the Username and Password parameters, in
which case they will be used by default each time you need to connect to this
database. If not saved, you’ll be prompted to supply the credentials to
connect to the database in next QGIS sessions. The connection
parameters you entered are stored in a temporary internal cache and returned
whenever a username/password for the same database is requested, until you
end the current QGIS session.
Įspėjimas
QGIS User Settings and Security
In the Authentication tab, saving username and password
will keep unprotected credentials in the connection configuration. Those
credentials will be visible if, for instance, you share the project file
with someone. Therefore, it is advisable to save your credentials in an
Authentication configuration instead (Configurations tab -
See Autentifikacijos sistema for more details) or in a service connection
file (see PostgreSQL Service connection file for example).
Authentication, configurations.
Choose an authentication configuration. You can add configurations using
the button. Choices are:
Basic authentication
PKI PKCS#12 authentication
PKI paths authentication
PKI stored identity certificate
Optionally, depending on the type of database, you can activate the following
checkboxes:
Only show layers in the layer registries
Don’t resolve type of unrestricted columns (GEOMETRY)
Only look in the ‚public‘ schema
Also list tables with no geometry:
indicates that tables without geometry should also be listed by default.
Use estimated table metadata: When initializing layers,
various queries may be needed to establish the characteristics of the geometries
stored in the database table.
When this option is checked, these queries examine only a sample of the rows
and use the table statistics, rather than the entire table.
This can drastically speed up operations on large datasets,
but may result in incorrect characterization of layers
(e.g. the feature count of filtered layers will not be accurately determined)
and may even cause strange behaviour if columns that are supposed to be unique
actually are not.
Allow saving/loading QGIS projects in the database
- more details here
Allow saving/loading QGIS layer metadata in the database
- more details here
Once all parameters and options are set, you can test the connection by
clicking the Test Connection button or apply it by clicking
the OK button.
The service connection file allows PostgreSQL connection parameters to be
associated with a single service name. That service name can then be specified
by a client and the associated settings will be used.
It’s called .pg_service.conf under *nix systems (GNU/Linux, macOS etc.)
and pg_service.conf on Windows.
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.
If you don’t want to save the passwords in the service file you can use
the .pg_pass option.
Pastaba
QGIS Server and service
When using a service file and QGIS Server, you must configure the service on the server side as well.
You can follow the QGIS Server documentation.
On *nix operating systems (GNU/Linux, macOS etc.) you can save the
.pg_service.conf file in the user’s home directory and
PostgreSQL clients will automatically be aware of it.
For example, if the logged user is web, .pg_service.conf should
be saved in the /home/web/ directory in order to directly work (without
specifying any other environment variables).
You can specify the location of the service file by creating a
PGSERVICEFILE environment variable (e.g. run the
exportPGSERVICEFILE=/home/web/.pg_service.conf
command under your *nix OS to temporarily set the PGSERVICEFILE variable).
You can also make the service file available system-wide (all users) either by
placing the .pg_service.conf file in pg_config--sysconfdir or by
adding the PGSYSCONFDIR environment variable to specify the directory
containing the service file. If service definitions with the same name exist
in the user and the system file, the user file takes precedence.
Įspėjimas
There are some caveats under Windows:
The service file should be saved as pg_service.conf
and not as .pg_service.conf.
The service file should be saved in Unix format in order to work.
One way to do it is to open it with
Notepad++
and
Edit ► EOL Conversion ► UNIX Format ► File save.
You can add environmental variables in various ways; a tested one, known to
work reliably, is Control Panel ► System and Security ►
System ► Advanced system settings ► Environment Variables adding
PGSERVICEFILE with the path - e.g.
C:\Users\John\pg_service.conf
After adding an environment variable you may also need to restart
the computer.
The spatial features in Oracle Spatial aid users in managing geographic and
location data in a native type within an Oracle database.
The connection dialog proposes:
Database: SID or SERVICE_NAME of the Oracle instance;
Port: Port number the Oracle database server listens on. The default
port is 1521;
Options: Oracle connection specific options (e.g. OCI_ATTR_PREFETCH_ROWS,
OCI_ATTR_PREFETCH_MEMORY). The format of the options string is a semicolon
separated list of option names or option=value pairs;
Workspace: Workspace to switch to;
Schema: Schema in which the data are stored
Optionally, you can activate the following checkboxes:
Only look in metadata table: restricts the displayed
tables to those that are in the all_sdo_geom_metadata view.
This can speed up the initial display of spatial tables.
Only look for user’s tables: when searching for spatial tables,
restricts the search to tables that are owned by the user.
Also list tables with no geometry:
indicates that tables without geometry should also be listed by default.
Use estimated table statistics for the layer metadata:
when the layer is set up, various metadata are required for the Oracle table.
This includes information such as the table row count, geometry type and
spatial extents of the data in the geometry column.
If the table contains a large number of rows, determining this metadata can be time-consuming.
By activating this option, the following fast table metadata operations are done:
Row count is determined from all_tables.num_rows.
Table extents are always determined with the SDO_TUNE.EXTENTS_OF function,
even if a layer filter is applied.
Table geometry is determined from the first 100 non-null geometry rows in the table.
Only existing geometry types:
only lists the existing geometry types and don’t offer to add others.
Include additional geometry attributes.
Allow saving/loading QGIS projects in the database
- more details here
Schema: Allows to specify a single schema to limit a connection to.
When set, only tables from the matching schema will be included in the browser panel
and data source select for the connection.
This can be used to limit the database work required to populate tables
for a connection pointing to a large database store.
Patarimas
Oracle Spatial Layers
Normally, an Oracle Spatial layer is defined by an entry in the
USER_SDO_METADATA table.
To ensure that selection tools work correctly, it is recommended that your
tables have a primary key.
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:
restricts the available tables to the ones in the geometry_columns
metadata table when scanning for tables.
This can speed up the table scanning.
Use layer extent from geometry_columns table:
this option, dependent on the previous one, allows QGIS to skip extent calculation
when loading layers and thus lowering the amount of time needed to load them.
It relies on extent manually specified using additional QGIS-specific columns
(qgis_xmin, qgis_xmax, qgis_ymin, qgis_ymax)
in the geometry_columns table.
Use primary key from geometry_columns table:
allows QGIS to skip primary key calculation for views when loading them,
thus lowering the amount of time needed to load them.
It relies on names manually filled in a QGIS-specific qgis_pkey column
set in the geometry_columns table.
If more than one column is used for the primary key,
they should be filled as comma separated values.
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.
You require the SAP HANA Client to connect to a SAP HANA database.
You can download the SAP HANA Client for your platform at the SAP Development
Tools website.
Fig. 11.14 Create a New SAP HANA Connection Dialog
The following parameters can be entered:
Name: A name for this connection.
Driver: The name of the HANA ODBC driver. It is HDBODBC
if you are using 64-bit QGIS, HDBODBC32 if you are using 32-bit QGIS. The
appropriate driver name is entered automatically.
Driver: Either the name under which the SAP HANA ODBC
driver has been registered in /etc/odbcinst.ini or the full path to the
SAP HANA ODBC driver. The SAP HANA Client installer will install the ODBC
driver to /usr/sap/hdbclient/libodbcHDB.so by default.
Host: The name of the database host.
Identifier: Identifies the instance to connect to on the host.
This can be either Instance Number or Port Number.
Instance numbers consist of two digits, port numbers are in the range from 1
to 65,535.
Mode: Specifies the mode in which the SAP HANA instance runs. This
setting is only taken into account if Identifier is set to
Instance Number. If the database hosts multiple containers, you
can either connect to a tenant with the name given at
Tenant database or you can connect to the system database.
Schema: This parameter is optional. If a schema name is given,
QGIS will only search for data in that schema. If this field is left blank,
QGIS will search for data in all schemas.
Authentication ► Basic.
User name: User name used to connect to the database.
Password: Password used to connect to the database.
SSL Settings
Enable TLS/SSL encryption: Enables TLS 1.1 - TLS1.2
encryption. The server will choose the highest available.
Provider: Specifies the cryptographic library provider used for
SSL communication. sapcrypto should work on all platforms,
openssl should work on , mscrypto should
work on and commoncrypto requires CommonCryptoLib to be
installed.
Validate SSL certificate: If checked, the SSL
certificate will be validated using the truststore given in
Trust store file with public key.
Override hostname in certificate: Specifies the host name used
to verify server’s identity. The host name specified here verifies the
identity of the server instead of the host name with which the connection
was established. If you specify * as the host name, then the server’s
host name is not validated. Other wildcards are not permitted.
Keystore file with private key: Currently ignored. This
parameter might allow to authenticate via certificate instead via user and
password in future.
Trust store file with public key: Specifies the path to a trust
store file that contains the server’s public certificates if using OpenSSL.
Typically, the trust store contains the root certificate or the certificate
of the certification authority that signed the server’s public certificates.
If you are using the cryptographic library CommonCryptoLib or msCrypto, then
leave this property empty.
Only look for user’s tables: If checked, QGIS searches
only for tables and views that are owned by the user that connects to the
database.
Use estimated table metadata: If checked, estimated
table metadata will be used if available. For large tables, this avoids slow
table loads and potentially expensive computations, but may result in
incorrect layer properties such as layer extent. The fast extent estimation
is available starting with QRC1/2024 and SP8 in HANA Cloud and HANA On-Premise
respectively.
Also list tables with no geometries: If checked, QGIS
searches also for tables and views that do not contain a spatial column.
Patarimas
Connecting to SAP HANA Cloud
If you’d like to connect to an SAP HANA Cloud instance, you usually must set
Port Number to 443 and check
Enable TLS/SSL encryption.
Once you have one or more connections defined to a database (see section
Creating a stored Connection), you can load layers from it.
Of course, this requires that data are available. See section
Importing Data into PostgreSQL for a discussion on importing data into a
PostGIS database.
To load a layer from a database, you can perform the following steps:
Open the corresponding tab of the database in the Data Source Manager dialog.
Choose the connection name from the drop-down list and press Connect.
Select or unselect Also list tables with no geometry.
Optionally, use some Search Options to reduce the
list of tables to those matching your search. You can also set this option
before you hit the Connect button, speeding up the database
fetching.
Find the layer(s) you wish to add in the list of available layers.
Select it by clicking on it. You can select multiple layers by holding
down the Shift or Ctrl key while clicking.
If applicable, use the Set Filter button (or double-click
the layer) to start the Query Builder dialog (see section
Query Builder) and define which features to load from the
selected layer. The filter expression appears in the sql column.
This restriction can be removed or edited in the Layer
Properties ► General ► Provider Feature Filter frame.
The checkbox in the Selectatid column that is activated by default
gets the feature ids without the attributes and generally speeds up the
data loading.
Click on the Add button to add the layer to the map.
Use the Browser Panel to speed up loading of database table(s)
Adding DB tables from the Data Source Manager may
sometimes be time consuming as QGIS fetches statistics and
properties (e.g. geometry type and field, CRS, number of features)
for each table beforehand.
To avoid this, once the connection is set,
it is better to use the Browser Panel or the
DB Manager to drag and drop the database tables into the map canvas.
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
by the layer (geometry) type
Pastaba
The sources of metadata are implemented through a layer metadata provider system
that can be extended by plugins.
Layer definitions can be saved as a
Layer Definition File (QLR -
.qlr) using
Export ► Save As Layer Definition File… in the layer
context menu.
The QLR format makes it possible to share „complete“ QGIS layers with
other QGIS users.
QLR files contain links to the data sources and all the QGIS style
information necessary to style the layer.
QLR files are shown in the Browser Panel and can be used to add
layers (with their saved styles) to the Layers Panel.
You can also drag and drop QLR files from the system file manager into
the map canvas.
Available actions for QLR files in the Browser Panel are:
With QGIS you can get access to different types of OGC web services (WM(T)S,
WFS(-T), WCS, CSW, …).
Thanks to QGIS Server, you can also publish such services.
QGIS Serverio gidas/vadovas contains descriptions of these capabilities.
Vector Tile services can be added via the Vector
Tiles tab of the Data Source Manager dialog or the contextual menu
of the Vector Tiles entry in the Browser panel.
Services can be either a New Generic Connection… or a
New ArcGIS Vector Tile Service Connection….
You set up a service by adding:
a Name
a Style URL: a URL to a MapBox GL JSON style configuration.
If provided, then that style will be applied whenever the layers
from the connection are added to QGIS.
In the case of Arcgis vector tile service connections, the URL overrides
the default style configuration specified in the server configuration.
You can load vector tiles directly from a Style URL.
The data source is automatically parsed from the style, and URLs with multiple sources are supported.
That makes Source URL optional.
the Source URL: of the type http://example.com/{z}/{x}/{y}.pbf for generic
services and http://example.com/arcgis/rest/services/Layer/VectorTileServer
for ArcGIS based services.
The service must provide tiles in .pbf format.
the Min. Zoom Level and the Max. Zoom Level.
Vector Tiles have a pyramid structure. By using these options you have the
opportunity to individually generate layers from the tile pyramid.
These layers will then be used to render the Vector Tile in QGIS.
For Mercator projection (used by OpenStreetMap Vector Tiles) Zoom Level 0
represents the whole world at a scale of 1:500.000.000. Zoom Level 14
represents the scale 1:35.000.
Configurations can be saved to .XML file (Save Connections)
through the Vector Tiles entry in Data Source Manager
dialog or its context menu in the Browser panel.
Likewise, they can be added from a file (Load Connections).
Once a connection to a vector tile service is set, it’s possible to:
Edit the vector tile connection settings
Remove the connection
From the Browser panel, right-click over the entry
and you can also:
Add layer to project: a double-click also adds the layer
View the Layer Properties… and get access to metadata and
a preview of the data provided by the service.
More settings are available when the layer has been loaded into the project.
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:
the Tile Resolution: possible values are
Unknown (not scaled), Standard (256x256 / 96DPI)
and High (512x512 / 192DPI)
Interpretation: converts WMTS/XYZ raster datasets to a raster
layer of single band float type following a predefined encoding scheme.
Supported schemes are Default (no conversion is done),
MapTiler Terrain RGB and Terrarium Terrain RGB.
The selected converter will translate the RGB source values to float values
for each pixel. Once loaded, the layer will be presented as a single band
floating point raster layer, ready for styling using QGIS usual
raster renderers.
Press OK to establish the connection.
It will then be possible to:
Add the new layer to the project; it is loaded with the name given in the settings.
Edit the XYZ connection settings
Remove the connection
From the Browser panel, right-click over the entry
and you can also:
Add layer to project: a double-click also adds the layer
View the Layer Properties… and get access to metadata and
a preview of the data provided by the service.
More settings are available when the layer has been loaded into the project.
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.
ArcGIS REST Servers can be added via the
ArcGIS REST Server tab of the
Data Source Manager dialog or the contextual menu of the
ArcGIS REST Servers entry in the Browser panel.
Press New (respectively New Connection) and provide:
a Name
the URL
a Prefix: This is used to specify the proxy prefix in the URL,
which is necessary for some ArcGIS servers that use web proxy prefixes.
ArcGIS Feature Service connections which have their corresponding Portal
endpoint URLS set can be explored by content groups in the browser panel.
If a connection has the Portal endpoints set, then expanding out the connection
in the browser will show a “Groups” and “Services” folder, instead of the full
list of services usually shown. Expanding out the groups folder will show a list
of all content groups that the user is a member of, each of which can be
expanded to show the service items belonging to that group.
Configurations can be saved to .XML file (Save Connections)
through the ArcGIS REST Server entry in
Data Source Manager dialog. Likewise, they can be added from
a file (Load Connections).
Once a connection to an ArcGIS REST Server is set, it’s possible to:
Edit the ArcGIS REST Server connection settings
Remove the connection
Refresh the connection
use a filter for the available layers
choose from a list of available layers with the option to
Only request features overlapping the current view extent
From the Browser panel, right-click over the connection entry
and you can:
Refresh
Edit connection…
Remove connection…
View Service Info which will open the default web browser
and display the Service Info.
Right-click over the layer entry and you can also:
View Service Info which will open the default web browser
and display the Service Info.
Export layer… ► To File
Add layer to project: a double-click also adds the layer
View the Layer Properties… and get access to metadata and
a preview of the data provided by the service.
More settings are available when the layer has been loaded into the
project.
QGIS supports connections to cloud services like Alibaba Cloud OSS, Amazon S3, Google Cloud Storage,
Microsoft Azure Blob Storage, Microsoft Azure Data Lake Storage, and OpenStack Swift Object Storage.
You can load vector and raster data from these services into QGIS.
Set up a new Cloud connection in the Browser panel by right-clicking
on the Cloud entry and selecting New Connection. You will see a drop-down list of
available cloud services.
Select the service you want to connect to and fill in the required fields: