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

Alex Mandel tech_dev at wildintellect.com
Thu Jul 24 11:27:51 PDT 2014


On 07/24/2014 09:56 AM, Jan Michálek wrote:
> 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;

Could it be your browser is caching the page since the url is the same
and only the parameters are changing? Try clearing your cache and
starting with the green url.

Thanks,
Alex







More information about the Qgis-user mailing list