We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0
votes
1answer
42 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: ...
1
vote
1answer
541 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
61 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 ...
1
vote
0answers
90 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
86 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
182 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 ...
0
votes
1answer
262 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
76 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 ...
1
vote
1answer
184 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 ...
0
votes
1answer
251 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 ...
3
votes
0answers
58 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
634 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
552 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
210 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
45 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 ...
2
votes
0answers
978 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
178 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
152 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
237 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
191 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
454 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
44 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
339 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'...
6
votes
1answer
354 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
310 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
97 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
178 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
1k 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
144 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
281 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
152 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. ...
3
votes
1answer
395 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?
23
votes
4answers
9k 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
259 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
82 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 ...
1
vote
0answers
130 views

Qgis standalone script using eclipse IDE -No data provider available issue

I know, the question is asked few times also in this forum but i apply already the presented solutions without any chance to fix the problem. In General the source code looks like the following: from ...
4
votes
0answers
254 views

Tools to help migration from Mapserver to QGIS Server

I'm going to migrate a Mapserver WMS server to QGIS Server. I'd like to know if there are some tools or plugins that convert Mapserver mapfile (.map) to QGIS project file (.qgs). WMS responses (...
2
votes
2answers
146 views

How to read the saved extent of the QgsProject?

I am trying to access the extent of QgsProject. How can i do that with PyQGIS?
5
votes
1answer
538 views

Can I set the Project in QGIS to display data at Zoom Full on startup?

I have a project with several .qml files assigned to SHP files with the same name but different data. I am just changing the SHP files, but when I start the project with different SHP I see just the ...
3
votes
0answers
108 views

Can't open my saved .qgs file in QGIS [duplicate]

When I try to open my .qgs file I get the following error: It says that the project can't be opened, and that something is wrong when trying to read the project file, this is my translation. Can I ...
2
votes
0answers
237 views

Loading a qgsproject when another one is loaded

I am loading a project with: QgsProject.instance().read(QFileInfo(path)) When i try to load another project it subtracts the layers and shows nothing. But if I try doing it again it works.
4
votes
1answer
435 views

Is there is a signal in QGIS when a project is about to be closed?

Is there is a signal in QGIS emitted when a project is about to be closed (QGIS closing or some other project opening)? I want to programmatically save changes in layers if they are in edit mode.
0
votes
1answer
841 views

How to delete a project in QGIS [closed]

Somehow I've created two projects with duplicate data in QGIS. How can I delete one of them?
2
votes
0answers
718 views

What could be making QGIS 2.10 crash when loading a project file?

On QGIS 2.10, running on Ubuntu 15.04 Linux, I have a project file that has a fairly large number of mainly shapefile layers, which gets to 99% on the slider to the right of where it has a message ...
1
vote
0answers
93 views

QGis Application Debugging - missing source problem at setScene method in QgsMapCanvas class [closed]

I develop a app in C++ with Qgis components with VS2010 Prof on Windows 7. Compiling a release succeeded and the app´s behaviour is as expected. Nevertheless I would like to take advantage of the ...
2
votes
2answers
1k views

How to insert QGIS project properties “Project Title” as field or token using an expression?

Using QGIS, the "General" project properties dialogue includes a "Project Title" area. Is it possible to use the information inserted in this dialogue in an expression (specifically including within ...
2
votes
1answer
2k views

Save vector layer and update .qgs project file (PyQGIS)

Need help to solve the following use case: QGIS started with new project (no layers) New layer is created programmatically and data is populated: vl = QgsVectorLayer("Point", "temporary_points", "...
3
votes
1answer
4k views

Why can't I open projects with QGIS?

I have a problem with QGIS that I've had both with version 2.2 and now with 2.8. I can't open the projects that I have saved. It is a project of 4 layers: a vector with a region of Madagascar, a river ...
4
votes
1answer
3k views

How to add a column/feature with PyQGIS 2.x?

I'm using PyQgis 2.2 and I'm creating a plugin. I want to add one feature/column to a shapefile. But I get error.. I've tried to do this as it's shown in Cookbook: if caps & ...
5
votes
2answers
984 views

Is it possible to save qgs file as older version?

I just got installed the version 2.6 of QGIS (OSGeo4W) on Windows 7. I am exploring the new capabilities and the compatibility of our tools with this new version, however, i have to keep on working on ...