Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS Server: problem with two project with same layers #16816

Closed
qgib opened this issue May 30, 2013 · 8 comments
Closed

QGIS Server: problem with two project with same layers #16816

qgib opened this issue May 30, 2013 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented May 30, 2013

Author Name: leolami - (leolami -)
Original Redmine Issue: 7956
Affected QGIS version: 1.8.0
Redmine category:qgis_server


Hi all,

there is a problem when I have two projects with one or more layers that are present in both projects.
If I set different styles for this layers in QGIS Desktop and I see the two projects in QGis Server I have no difference styles for this layers.
It seems that the first project load in QGis Server is ruling.

I'm using QGIS 1.8

Best regards


Related issue(s): #18544 (duplicates)
Redmine related issue(s): 10068


@qgib
Copy link
Contributor Author

qgib commented May 30, 2013

Author Name: Marco Hugentobler (@mhugent)


Do the layers have the same layerID?
The layer id is meant to be globally unique. Otherwise, the QGIS server won't be able to cache layers and styles (and thus loose performance).


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jun 3, 2013

Author Name: leolami - (leolami -)


Hi,

No problem if the layers have different id.

But in a classic workflow is possible that fot the preparation of a project we start with a template project.
So, in this case, the layers of the template project have the same id in all the derived projects.
If I change the associated style of one of this layers in a derived projects I don't have change in the WMS result.

Anyone had the same problem and know the way to resolve it?

A solution may be the association layer id / project at Qgis Server level?

All the best.

Leonardo

@qgib
Copy link
Contributor Author

qgib commented Jul 13, 2013

Author Name: Jürgen Fischer (@jef-n)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2014

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - High Priority

@qgib
Copy link
Contributor Author

qgib commented Mar 21, 2014

Author Name: Paolo Cavallini (@pcav)


Agreed, a pretty annoying issue; having IDs as a combination of the project name and the layerid seems the way to go

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 1, 2018

Author Name: Giovanni Manghi (@gioman)


Please test with a recent QGIS release (2.18 or 3), if the issue/request is still valid change the affected version accordingly, if is fixed/implemented then close the ticket. Thanks!


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Aug 16, 2018

Author Name: Giovanni Manghi (@gioman)


Closing for lack of feedback.


  • resolution was changed from to not reproducable
  • description was changed from Hi all,

there is a problem when I have two projects with one or more layers that are present in both projects.
If I set different styles for this layers in QGIS Desktop and I see the two projects in QGis Server I have no difference styles for this layers.
It seems that the first project load in QGis Server is ruling.

I'm using QGIS 1.8

Best regards to Hi all,

there is a problem when I have two projects with one or more layers that are present in both projects.
If I set different styles for this layers in QGIS Desktop and I see the two projects in QGis Server I have no difference styles for this layers.
It seems that the first project load in QGis Server is ruling.

I'm using QGIS 1.8

Best regards

  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Aug 16, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels May 24, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

1 participant