Skip to main content

Questions tagged [qgs]

The project file extension of QGIS. Use this tag for questions about this file type, its structure and content or conversion from or to that file type. Don't use this tag for general questions about QGIS and QGIS projects where the *.qgs file or its content isn't the topic.

Filter by
Sorted by
Tagged with
2 votes
0 answers
41 views

How to use third party python libraries on QGIS plugins?

I am looking for a way to use third party libraries which uses pyproj in QGIS plugins. I don't want to ask the user to install the library in the system python environment. Instead, I want to use the ...
AMA's user avatar
  • 454
1 vote
0 answers
77 views

Expanding all subfolders in project home directory using PyQGIS

In the QGIS browser, I would love to have all subfolders and ESRI GDBs to be expanded such that I can search for specific datasets via the browser search in the QGIS GUI. Currently, I struggle with ...
pggsn's user avatar
  • 11
1 vote
0 answers
117 views

Can you open QGIS projects with Q Field from Onedrive?

I configured some projects using QGIS and saved them and the respective layers on a folder in OneDrive. Then I tried to link QField to that folder and use the app to open the projects but the links ...
Driza Ingeniería's user avatar
0 votes
0 answers
42 views

How to prevent some features from being selected on QGIS 3.28

How to prevent some features from being selected on QGIS? I want to avoid the selection of some features at project level. What I tried so far is this: I created a project macro like this: from qgis....
Rik Ferreira's user avatar
0 votes
0 answers
24 views

QGIS use only certain plugins for each project

I would like to make use of certain plugins for each project. Instead having to disable installed plugins for a particular project, I would like to select the one(s) that I want to use on the project ...
António's user avatar
0 votes
0 answers
31 views

Source references to resource files in layout section of *.qgs

I'm making a plugin that moves each resource into a custom folder structure (SHP, RASTER, ETC) and updates the paths within the qgs file. In the layout section there are also references to resource ...
Dennis Grasso's user avatar
0 votes
0 answers
58 views

Expression works in one QGIS project, but not another

I have an expression in a Print Layout that populates a label with an attribute, based on which polygons are selected in map view. In the QGIS project that I made, it works perfectly. I tried copying ...
Winet's user avatar
  • 34
1 vote
1 answer
2k views

QGIS (3.28.2-Firenze) QGZ save error - "Unable to perform zip"

QGIS (3.28.2-Firenze) QGZ save error gives the message: "Unable to perform zip" This occurs when trying to save, or save as. Folder location does not matter either. Trying to save the ...
Jacory's user avatar
  • 21
3 votes
3 answers
295 views

Batch export .QGS to .QGZ

I have multiple .QGS files and I would like to export them to .QGZ. Right now I'm opening the .QGS file and save as .QGZ one by one, but I have over 180 .QGS files so I'm looking for a way to automate ...
pfrud's user avatar
  • 81
7 votes
1 answer
118 views

Running Python code easily for end users in QGIS

I have a basic bit of code that updates layout names to help manage revisioning and PDF names etc. Currently, it is run from the project Python actions - so it runs whenever the project is saved, this ...
Sethinacan's user avatar
  • 1,724
7 votes
2 answers
284 views

Configuring QGIS Project using external config file

I have a large QGIS project file (let's call it the master project) and would like to use it for several customers. Currently, I am creating copies of the master project for each customer and ...
MartinMap's user avatar
  • 8,328
3 votes
1 answer
202 views

Getting QGIS Project data from outside Python script

In my project, I have to connect .Net with the QGIS app, so I need to know how an outside script can get data from QGIS. I can run this script from .Net perfectly: from qgis.PyQt.QtWidgets import ...
Andrés Rodríguez's user avatar
3 votes
2 answers
265 views

Splitting one QGIS project into two projects

QGIS 3.22.4, on Windows 11, with shapefiles and a lot of reports. On an initial project, only looking at roads, footpathes on a defined region, we started to work with new shapefiles linked to hikes ...
ClaudeVer's user avatar
  • 630
3 votes
2 answers
114 views

Looking for QGIS equivalent of ArcGIS "List By Data Source"

I have a client with many duplicates and redundant layers, we are going through the folders and deleting archiving files. In ArcGIS Desktop, I select 'List By Data Source' to find out what layers a ...
Vantooville's user avatar
4 votes
0 answers
213 views

Reducing loading time of QGIS project

I have saved a couple of QGIS projects in a PostGIS DB, which is hosted in the cloud. The projects consist of different layers. When I open the QGIS projects, the loading time is very long. That is a ...
Enzo Baldini's user avatar
  • 2,337
1 vote
0 answers
81 views

What's in (project-name)_attachments.zip

In addition to a project file, project-name.qgs, QGIS is saving project-name_attachments.zip. Deleting the .zip file seems not to have a significant effect. A new one gets created when I save the ...
Ana Nimbus's user avatar
4 votes
1 answer
601 views

Safely rename a QGIS project

How do you rename a project without breaking it? I used the Rename option from the Manage option of the context-sensitive menu in the Browser to rename my project1. This seems to work. However, I ...
Ana Nimbus's user avatar
0 votes
0 answers
103 views

Old project now shows up blank (no more layers)

I've been working on this project for months now. Today I opened it up and it was blank, no layers, no nothing. I'm using version 3.16 of QGIS I've tried opening multiple other projects and they all ...
Budgiebuda's user avatar
2 votes
1 answer
791 views

Accessing same shapefile for different users via SharePoint in QGIS

We are currently migrating our files and data to SharePoint. Currently, we are using our file system with a path structure like this: Z:\_Maps\Cities\Project1.qgz with a shapefile (.shz) which will be ...
Sven's user avatar
  • 21
0 votes
0 answers
172 views

QField project accidently overwritten by importing new project

In QField on Android, I imported an (old) version of my project and overwrote by mistake the current project and all data is not there anymore. I was mainly working in shapes of a geopackage and I ...
user207763's user avatar
0 votes
0 answers
206 views

Can't load a previous project with QGIS 3.18.2 with versions 3.24.3. 3.20.0 3.22.0. No layers and just a white screen

With QGIS 3.18.2 I have created a map point cloud data with contours. I saved, Lakach_East_West_IntRas_Clip-3-24-32, and closed the project. A few months later, now using 3.24.3 I wanted to continue ...
MikeJolly's user avatar
1 vote
0 answers
199 views

QGIS: 'Incorrect parameter value for AGGREGATES' when using Aggregate in a Python-Processing-Script

I am currently working on a QGIS-Python-Processing-Script that creates an automated street register for a printed city map as a CSV file. In that context I want to give the user the option to choose ...
enrico_pallazzo's user avatar
3 votes
1 answer
825 views

Getting all shapefile layers in project using PyQGIS

I'm writing a plugin that needs to check a few things for every shapefile layer in the current project. I am iterating over the layers as shown below, but cant figure out how to check if it is a ...
Mads Skjern's user avatar
3 votes
0 answers
217 views

Unavailable layer saved on computer as .txt file in my all projects (.qgz)

I have a problem with all my saved .qgz projects. I always worked with layers in projects only as .txt files, not saving them as shapefile, because I can make changes in .txt files (eg. add more ...
Michaela Uhrová's user avatar
3 votes
0 answers
62 views

Docked attribute table not displayed when reopening a QGIS project

I have created a project with multiple map views (canvases). I have also opened vertically in the project an attribute table. When I save and reopen the project, the layout is lost. What can I do to ...
N_S's user avatar
  • 303
1 vote
1 answer
197 views

Assigning a different set of layers to each project stored in a QGIS GeoPackage

I have a QGIS GeoPackage storing several vector layers and three projects. The QGIS User Guide, chapter 6. Working with Project Files, states: ‘The information saved in a project file includes ‘Layers ...
Pavla's user avatar
  • 11
1 vote
1 answer
255 views

How to set fonts for different OS on QGIS?

I have a project set up on windows fonts and I use several of them for different layers, but while most users use windows, some use mac When mac users open up the project they get the font not ...
Luffydude's user avatar
  • 2,318
4 votes
1 answer
399 views

Deleting QGIS project stored in PostgreSQL using PyQGIS

I would like to delete a .qgs project stored in PostgreSQL using PyQGIS. This SQL code does the job into pgAdmin : DELETE FROM test2.qgis_projects WHERE name = 'Project_name'; My attempt which doesn'...
zlikotp's user avatar
  • 24
3 votes
0 answers
200 views

Creating similar project in QGIS

I use to create several projects very similar everyday. For every project, I always do very repetitive task: create and style vector layers (road, roof, buildings) with same style and fields ...
zlikotp's user avatar
  • 24
2 votes
0 answers
136 views

Programmatically generating minimal QGIS map file (.qgs) containing specified PostGIS layers

I am just wondering if there is a way to generate a QGIS map file (.qgs) from the list of data sources (PostGIS) that comprise the map. I have many maps each containing two layers from a PostGIS ...
tinlyx's user avatar
  • 11.1k
1 vote
2 answers
1k views

QGIS throws errors in Project after updating to QGIS 3.20

After updating QGIS in Version 3.20.3-Odense, I get following three errors when opening projects that were running without problems before. -Loading layer fnk_get: Font “Dingbats” not available on ...
oppia04's user avatar
  • 735
-2 votes
1 answer
171 views

Deleting whole project in QGIS [closed]

How do I delete the whole project in QGIS? I used the above methods and was not successful.
user193101's user avatar
2 votes
1 answer
483 views

QGIS Custom Projection in WKT not saving .prj file

I've created a Custom Projection System in QGIS using the WKT format (see code below). The custom projection using a local grid system and transforms it GDA94 / MGA zone 51. It works well in QGIS to ...
Garth Cooper's user avatar
1 vote
0 answers
619 views

Setting default project view extent in QGIS

I'm trying to find a setting in QGIS that will allow me to save a default view extent - so that when I open a saved project file, it opens on the area of interest. Currently the map loads at some ...
ActionEcologist's user avatar
2 votes
1 answer
954 views

Repairing multiple broken layer file paths in QGIS

I have moved all my QGIS layer files from C:// drive to One Drive, and I would like to re-map the old filepaths to the new drive. I know I can open the QGIS file as a text file and run a find and ...
Mr Magoo's user avatar
2 votes
1 answer
123 views

Why title remains with asterisk after executing command from iface class?

Why, after executing the command: iface.mainWindow().findChild(QAction, 'mActionSaveProject').trigger() does the title remain with the asterisk as shown in the screenshot?
Billy's user avatar
  • 91
3 votes
2 answers
251 views

Saving slope rasters in QGIS

I've been creating maps from DEM data, then shading the slopes to identify hiking routes. Each time I close a project, the slope rasters disappear. How can I save slope rasters?
John Newman's user avatar
1 vote
2 answers
734 views

QGIS - How do I embed my layer's database connections into the project (rather than DB Manager)? [closed]

Situation: I have projects, lots of projects. They call dozens of layers from the corporate PostGIS. This is largely public data, and the data is referenced via a readonly user account. As it happens, ...
Mat's user avatar
  • 27
7 votes
4 answers
8k views

Exporting project with all files, properties and dependencies using QGIS

I need to share a project with some students but I would like to share it simply in a sort of package file which would include the project and all the files (Vector and Rasters) with they properties ...
LuGuglie's user avatar
  • 121
3 votes
0 answers
71 views

Why is loading qgs/qgz 2 x slower than loading qlr?

I have a Layer Definition file(.qlr) that takes 50sec to load. When I save it as a project(qgs/qgz) it takes over 2min to load the same data. Why does loading of qgs/qgz take longer than loading qlr? ...
Thomas's user avatar
  • 31
7 votes
1 answer
2k views

Understanding Coordinate Reference System of QGIS Project and Layer

I do not understand why there can be in QGIS different CRS for project and for layers. I have worked previously with subsurface petroleum software and there CRS "stuff" was lot more strict ...
Marin Mirošević's user avatar
0 votes
1 answer
145 views

Can't open world.qgs as in Training Manual 6.1.1

I’m working through the training manual located at https://docs.qgis.org/3.16/en/docs/training_manual/index.html. I have QGIS 3.16 running on OS 10.15.7 (Catalina). The following describes my problem: ...
GaryP's user avatar
  • 125
1 vote
1 answer
395 views

How to translate a QGIS project using a *.qm file? / my QGIS project is not translated?

Usually when you create a QGIS project, you will name the attributes, layer etc. in your own language. You might want to deliver the project to another user in another language.
tim's user avatar
  • 417
5 votes
1 answer
3k views

Extracting x,y coordinates from QgsGeometry: Point(x, y) using PyQGIS

I'm trying to extract the coordinates of a feature vertex. When I write on my editor print(vertex) what I get is <QgsGeometry: Point(58746.43000004297, -256665.088999123)> But when I try to ...
Sara Isabel Aleixo Perestrelo's user avatar
8 votes
3 answers
468 views

Saving PDF files as part of QGIS Project

I am using QGIS to create a record of remediation works across a number of assets. When an asset is remediated, we will often prepare a condition report PDF document which is linked to within the ...
Brenton Hale's user avatar
6 votes
1 answer
827 views

QgsMapToolEmitPoint - output coordinate to QGIS python console

I'm trying to output points to the QGIS Python Console with the following code which works: canvas = iface.mapCanvas() emit = QgsMapToolEmitPoint(canvas) canvas.setMapTool(emit) def display(pt, e): ...
user1655130's user avatar
4 votes
1 answer
737 views

Lacking permissions for other users when saving QGIS 3 project on Windows 10

When saving a project under QGIS 3.x on a local Windows PC under e.g. c:\tmp another user logged on to the PC cannot open the project due to lacking permissions. The project file saved from QGIS 3 ...
Jochen Schwarze's user avatar
2 votes
1 answer
271 views

Using QGS file in ArcMap

I have received files in .qgd and .qgs extensions from a friend who works with QGIS. Is it possible to use that in ArcMap 10.8?
Maya's user avatar
  • 43
1 vote
1 answer
110 views

QGIS: using non-square SVG

I am using QGIS 3.10 and would like to visualise my data using a custom svg whose source code is: <svg enable-background="new 0 0 175 375" height="375" viewBox="0 0 175 375&...
cymed's user avatar
  • 155
1 vote
1 answer
193 views

Documenting workflow and processing in QGIS-project

I want to include a documentation about the steps I undertook to create a QGIS-project to be able to understand how my data was prepared and processed, which steps I performed in QGIS. I'm not sure ...
Babel's user avatar
  • 72.7k