[Qgis-user] Save group layers in Quantum GIS 1.5?

Craig Leat craig.leat at gmail.com
Wed Sep 8 04:55:50 PDT 2010


Hi,

Els Dens wrote:
> Is it possible in QGIS 1.5 to save a combination of vector and raster layers to a kind of 'layer file',
> in order to be able to load this combination of layers into a new project (saving also the previously
> defined symbology and labeling, …)?

I agree it would be nice to save a bunch of layers (with symbology) in
a project file and use these as base layers in many different
projects. Currently you can do the following on the command line:

$qgis --project BaseLayers.qgs NewLayer1.shp NewLayer2.shp

The draw back with this is that you end up with a project called
BaseLayers.qgs and forgetting to use "Save Project As..." will mess up
the base layers collection. Ideally you should be able to do:

$qgis --project BaseLayers.qgs NewProject.qgs

and have your base layers loaded into "NewProject.qgs", appearing
below the existing layers in NewProject.qgs. QGIS should check that
the SRS for each project is the same and abort if they differ.
Unfortunately issuing the above command only loads the BaseLayers
project. Please file an enhancement ticket on the trac site. I too
wish for this enhancement :-)

If you are using a current trunk version you can achieve the same
result by serving the BaseLayers project as WMS via QGIS Map Server.

Regards,

Craig



More information about the Qgis-user mailing list