Страница 1 из 1
"Объединить" два проекта A.qgs + B.qgs = C.qgs
Добавлено: 10 апр 2011, 14:38
sdikiy
очень часто бывает нужно "слить" вместе два проекта (например A.qgs - основа OSM с сайта gis-lab, B.qgs - тематические слои приложения). обычно пользуюсь текстовым редактором, вставляя нужные секции из файла проекта B.qgs в A.qgs
возможно есть другие стандартные/красивые решения?
Re: "Объединить" два проекта A.qgs + B.qgs = C.qgs
Добавлено: 08 июн 2011, 09:30
sdikiy
Есть шанс, что появится красивое решение, за дело взялся Marco
Из Qgis-developer mailing list:
Hi devs
Recently, I implemented support for embedding layers and legend groups from
other project files. Like this, it is no longer necessary to repeat legend
arrangements. Just embed groups and/or layers from other project files as
references (Layer->embed layers and groups, then select a project file and mark
the entities to embed). The reference can be absolute / relative depending on
the project setting.
The code is contained in my github clone (
git@github.com:mhugent/Quantum-
GIS.git). I'm planning to do some testing before pushing to the main repo. If
you have some feedback, let me know.
One issue that I'm already aware of is the problem to embed several groups
with the same name. Solution might be to generate a unique group id (similarly
to the layer id), but this does not work for referencing old project files.
Regards,
Marco
Re: "Объединить" два проекта A.qgs + B.qgs = C.qgs
Добавлено: 08 июн 2011, 10:31
Александр Мурый
Чем хуже просто
?
Или небольшой скрипт на чем умеете с вырезкой и вставкой нужных "секций"?
Re: "Объединить" два проекта A.qgs + B.qgs = C.qgs
Добавлено: 08 июн 2011, 14:19
Voltron
Марко опоздал, т.к. уже есть расширение от Барри.