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
1answer
61 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?
3
votes
1answer
47 views

Saving slope raster when closing QGIS Project

I've been creating topo maps from DEM data, then shading the map according to the slope to identify hiking routes. Each time I close a project, the slope shading disappears, creating extra unnecessary ...
3
votes
0answers
36 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? ...
0
votes
1answer
41 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: ...
0
votes
1answer
40 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.
3
votes
1answer
196 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 ...
7
votes
3answers
140 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 ...
6
votes
1answer
110 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): ...
4
votes
1answer
173 views

Permissions for QGIS 3 project files 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 ...
1
vote
1answer
74 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?
1
vote
1answer
38 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&...
4
votes
0answers
164 views

Open multiple QGIS projects via PyQGIS simultaneously in different threads

I'm writing a standalone PyQGIS application. When the method qgis() is called in a new thread, it's supposed to open a QGIS project (with one layer in it) and close it again: from concurrent.futures....
4
votes
1answer
161 views

Keeping QGIS-projects up to date

Background: We're doing a lot of project work using QGIS. These projects are based on "template"-projects for administrative units, which are always kept up to date, e.g. new WMS are added, newly ...
12
votes
1answer
200 views

Measure loading times of QGIS projects

For QGIS there is already a method to measure loading times of plugins ( qgis.utils.plugin_times): How to tell which QGIS plugins are slow to load? Is there something similar to measure loading ...
0
votes
1answer
138 views

Replacing blank with underscore in shapefile names of layer sources breaks QGIS .qgs files

I recently discovered that several years worth of .qgs files were using an input shapefile with a space in the file name. I do not like spaces in file names! I did the following, to fix the problem: ...
6
votes
1answer
8k views

Difference between .qgs and .qgz [closed]

can anyone explain the difference between .qgz and .qgs project files in QGIS or know a good documentation?
1
vote
1answer
175 views

QGS format : backward compatibility between QGIS 3 and QGIS2

Some of my users may want, before finally migrate to QGIS3 LTR, to read with QGIS2 some qgs project files made under QGIS3. I would recommend them not to do that. But, for the sake of clarity: How ...
10
votes
4answers
953 views

Slow loading of QGIS Project

I have a number of standard projects set up for QGIS users. Some of them take more than 5 minutes to load. Things recently got much worse suddenly - and I want to track down why. Are there any methods ...
2
votes
0answers
157 views

Opening template project with PyQGIS in QGIS 3?

What do I need to do to open a project-file as a template with PyQGIS in QGIS 3? I am able to open a project like this: project = QgsProject.instance() project.read('C:/path/to/my/project.qgs') But ...
1
vote
0answers
118 views

Saving QML styles directly into QGS project file

I have a QGIS Model (saved in directly in QGIS 3 project file ".qgs") which creates some layers and assign predefined styles to them. I would like to save those QML styles into my .qgs and reference ...
1
vote
3answers
371 views

Getting the layer styles out of a *.QGS without having the layers itselves

Is it possible, to restore the layer-styles from a *.QGS project file? I have unhandled layers in my project. As I'm starting the project, QGIS is asking me for the source of the layers but I don't ...
1
vote
1answer
373 views

AttributeError: 'QgsVectorLayer' object has no attribute 'setCacheImage'

When I call the following (using QGIS 3.0.2): self.layerCatalog = QgsCore.QgsVectorLayer( "MultiPolygon?%s" % s_fields, nameLayer, "memory") if self.iface.mapCanvas().isCachingEnabled(): ...
2
votes
0answers
89 views

Converting symbols from ArcGIS Desktop to QGIS? [duplicate]

How do I export map information display styles from ArcGIS Desktop to QGIS? I tried exporting MXD to QGS (using mxd2qgs) - but the styles were not saved;Also, when I try to export styles from arcgis ...
2
votes
1answer
372 views

Is there any polygon select map tool for QgsMapCanvas?

I am trying to create a plugin that has a QgsMapCanvas of itself. The question is that I can't seem to find the appropriate library to use polygon select feature in the QgsMapCanvas. I know that iface ...
1
vote
1answer
363 views

Unable to read QGIS 3.0.2 project file (*.qgs) with blank layout

I have two *.qgs files created using QGIS 3.0.2. one of them is absolutely new (empty) project and another one is the same as empty but with blank layout. Here you can download my *.qgs files. I tried ...
3
votes
0answers
60 views

Increase the number of bookmarks in a QGIS project

In QGIS 3.0 and 2.18 there is apparently a limited number of bookmarks, that can be stored. It is a limit of 250 bookmarks per project. I find bookmarks great for an in-project team coomunication and ...
1
vote
0answers
1k views

A saved QGIS project doesn't show any layers

I was working with a lot of layers on a QGIS project. I saved it and when I opened the file it doesn't show any layers. The .qgis is not empty, weighing 1,7Kb (I have other with 500Kb working well) ...
4
votes
1answer
1k views

How do I update the extent of a raster in QGIS to the actual extent?

I have a project that references several raster files. I've grouped and styled them in QGIS 2.18, saved and closed the project, and then changed these raster files on the disk, with a larger extent.1 ...
0
votes
1answer
375 views

QGS Project file with multi-geometry shapefiles conversion to a single KML file with styles

How can we convert an entire QGS Project file with multi-geometry shapefiles into a single KML file with styles from QGIS?
2
votes
0answers
54 views

Problem reading .qgs file relating to type=“plugin”/ “raster”

I'm programming a plugin for Qgis 2.18 and everything worked fine, until we tried open the plugin from another computer. On the second computer (same Qgis version) the plugin is unable to open the ...
3
votes
0answers
2k views

Saving QGIS Project file (*.qgs) with PyQGIS?

I'm having trouble with QGIS (2.18.12) project files on Windows, if saved via python command. The project file is saved via: project = QgsProject.instance() project.write() The file is saved, I can ...
5
votes
1answer
254 views

Moving project, settings & plugins from Mac to Windows PC?

I am a complete novice with QGIS. I have completed my first project in QGIS 2.18.9 on a Mac. I need to transfer it to another Windows computer. How can I best do this while retaining all my ...
1
vote
0answers
158 views

project qgis 2.14 empty

I encounter the problem more and more often and it begins seriously to become embarrassing : I open a project of yesterday and it is empty or I just have the title groups, groups emptied of their ...
1
vote
1answer
377 views

Locking QGIS project file? [duplicate]

Is it possible to lock a QGIS project file, so only I can open it with a password? I work with a QGIS 2.18 version and I'm looking for a solution inside the QGIS software. in my map, i use only with ...
4
votes
3answers
273 views

How can I create a consistent <srs> element in a QGIS project's layer?

From a standalone python script (i.e. not running within QGIS) I am manipulating QGIS a project file (*.qgs) to have its layers point to different geometry data. That geometry data can be in ...
0
votes
1answer
696 views

Correct Incorrect Projection of Imported Shapefile into Excel PowerMap

Update 2 Below are the steps I re-projected shapefile. For some reason it disappears. In QGIS double-click on shapefile Right-click and select Set Layer CRS Select WGS 84 Click OK Right-click ...
1
vote
0answers
47 views

Cannot visualse project with Mac Sierra

I recently updated my Mac to Sierra OS. In the past, I had use QGIS without any problem with my previous OS version (Lion). Since I installed Sierra, I can open shapes, visualise maps and export ...
0
votes
0answers
716 views

Opening up a QGIS project file on a different computer [duplicate]

I've tried doing this but when I save the QGIS Project to my desktop its only a few KB's so when I try to open this up on a different computer all the information inside the actual file is missing. I'...
7
votes
1answer
472 views

Clean up QGIS project file *.qgs

I'm using a QGIS project as template for other projects. This template has got around 5000 rows. Because I do several updates to the file, it's getting larger and more complex by the time. I know, ...
4
votes
1answer
435 views

PyQGIS — write print composer to project file

Is there a way to write a print composer to a QGS project file via PyQGIS, so that when the project file is opened later, that print composer is available? I am able to successfully do the following: ...
4
votes
0answers
142 views

Seeking list of project properties that can be written in PyQGIS?

The methods QgsProject.instance().writeEntry() and QgsProject.instance().readEntry() can be used to programmatically set project properties. According to the QGIS API reference the properties ...
2
votes
1answer
199 views

QGIS (qgs file) meaning of annotationform and editform tag

What is the meaning of tags annotationform and editform in the qgs file? The reason I ask is because there is only file path within. Mostly relative path as dot, sometimes path to something like ../../...
8
votes
1answer
3k views

What's the purpose of .qgs~ files?

When i work on QGIS project (named "pro"), some file with this symbol appears in the workspace folder with the name "pro.qgs~": I tried to open it- but with no success. How can i open it and what ...
2
votes
1answer
168 views

Error when saving vector geometry with crs definition in PyQGIS

I came up with the following issue in PyQGIS (2.8.9-Wien on Windows) when trying to save a created point to a vector file: the point was saved as (inf,inf) in the vector file if the coordinates in ...
3
votes
0answers
321 views

How to open a QGIS Project with Optionspath and Configpath settings?

Is there a way of forcing QGIS to use the network settings for the Optionspath and Configpath switches (which i have added to the target for the QGIS desktop icon on my pc) when opening a Project that ...
1
vote
0answers
177 views

How to move projects from a server to local hard disk or removable drive?

I have a QGIS project on a desktop that I need to move to a laptop to take into the field. Whilst in the office, both PCs talk to the project on server via a persistent mapped drive (L:) - ie. ...
4
votes
1answer
594 views

Why is QGIS project in recent projects greyed out?

When I open QGIS, there are projects which cannot be chosen. They work when I start browser of files and click in directory where the projects are. Are there options to change it?
25
votes
4answers
11k views

How to remove a QGIS project from the “Recent Projects” list?

I have a project in the QGIS Recent Projects list that doesn't exist anymore, but it keeps being listed (greyed out and without thumbnail image). Is there any way to remove it from the list? Perhaps ...
1
vote
1answer
362 views

Why are there my_form_open() Python functions in my QGIS project file?

I have a project open with 6 layers (MapInfo .tab format), have set the style for each layer and added labels for 1 of them. So for a simple project the .qgs file is about 2000 lines long and among ...
2
votes
0answers
88 views

Understanding QGIS project files [duplicate]

I'm a GIS software developer, I've been working predominantly with MapInfo over the last year or so but have now been tasked with assessing QGIS to see if we can perform the same tasks we've developed ...