[Qgis-user] Qgis server returns map from another project, that is defined in URL

Jan Michálek godzilalalala at gmail.com
Thu Jul 24 09:56:40 PDT 2014


Have a nice day
I have problem with qgis server (2.2). I have a few projects in my folders
and qgis doesn't use project specify in my url.

For example i had folder called
projects
with two files. red.qgs a green.qgs with the same layer (from postgis), but
with differenet symbology (fill color).

i use for first time url like this
http://nejakejservr.cz/cgi-bin/qgis_mapserv.fcgi?MAP=/mnt/data/projects/red.qgs&REQUEST=GetMap&BBOX=-615170.147011,-1003827.798116,-614613.882202,-1003027.916641&CRS=EPSG:5514&WIDTH=400&HEIGHT=300&LAYERS=test&STYLES=,,&FORMAT=image/png&DPI=96

And I obtain red filled polygons (as is specified in red.qgs project).

If i use this.

http://nejakejservr.cz/cgi-bin/qgis_mapserv.fcgi?MAP=/mnt/data/projects/green.qgs&REQUEST=GetMap&BBOX=-615170.147011,-1003827.798116,-614613.882202,-1003027.916641&CRS=EPSG:5514&WIDTH=400&HEIGHT=300&LAYERS=test&STYLES=,,&FORMAT=image/png&DPI=96

I should obtain layer from green.qgs project, but i obtain red filled
polygons from project i had use before.

I had use qgis (2.4) on my desktop for this wms, but with the same problem.
I get lazers from first used project.

Why?

How I can change this?

Thanks Je;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140724/3f6fdfe1/attachment.html>


More information about the Qgis-user mailing list