[Qgis-user] Moving many project files - bulk updating paths to tables?

Antonio Viscomi antoviscomi at gmail.com
Fri Apr 5 01:15:58 PDT 2024


Hi Tony,
if you're using linux what you need is simply use the 'sed' command by
terminal as i.e.:

*sudo sed -i 's/NEWPATHTOSUBSTITUTE(your path or IP or domain)/OLDPATH/g'
*.qgs*

Cheers

Antonio


Il giorno ven 5 apr 2024 alle ore 09:58 Gordon Wakelin-King via QGIS-User <
qgis-user at lists.osgeo.org> ha scritto:

> There is a project packager plugin that works pretty well. It may not be
> exactly what you need but maybe the author could be approached for tips on
> the process.
>
> Get Outlook for Android <https://aka.ms/AAb9ysg>
> ------------------------------
> *From:* QGIS-User <qgis-user-bounces at lists.osgeo.org> on behalf of Tony
> Shepherd (FarmMaps NZ) via QGIS-User <qgis-user at lists.osgeo.org>
> *Sent:* Friday, April 5, 2024 6:06:48 AM
> *To:* 'Jorge Gustavo Rocha' <jgr at geomaster.pt>; qgis-user at lists.osgeo.org
> <qgis-user at lists.osgeo.org>
> *Subject:* Re: [Qgis-user] Moving many project files - bulk updating
> paths to tables?
>
>
> Thanks Jorge
>
>
>
> Yes, I toyed with that, but somewhat painful with thousands to process.
>
>
>
> Has anybody scripted or coded something for this?
>
>
>
> Cheers
>
>
>
> *From:* QGIS-User <qgis-user-bounces at lists.osgeo.org> *On Behalf Of *Jorge
> Gustavo Rocha via QGIS-User
> *Sent:* Friday, April 5, 2024 7:53 AM
> *To:* qgis-user at lists.osgeo.org
> *Subject:* Re: [Qgis-user] Moving many project files - bulk updating
> paths to tables?
>
>
>
> Hi Tony,
>
> You can unzip the qgz file and change the text in the qgs files. qgs are
> text files. Afterwards, you can create the zip again with the qgz extension
> or open the qgs file directly.
>
> I hope it helps,
>
> Jorge
>
> On 04/04/24 19:28, Tony Shepherd (FarmMaps NZ) via QGIS-User wrote:
>
> Hi All
>
>
>
> I am sure I am not the first to ponder how to deal with this.  I have
> loads, thousands likely, of project files in a series of folders and
> subfolders.  I need to move those files and folders to a new location to
> enable other staff to use the project files and their associated shp files,
> geo packages, rasters etc.
>
>
>
> Essentially, I am shifting my entire collection of GIS work to a shared
> location for others to start using, so moving from a sole operator to a
> shared environment.
>
>
>
> In my old MapInfo days, I would simply do a bulk search and replace over
> the workspace files (text-based so this is easy) and change the paths that
> need changing and all would be ok.
>
>
>
> As qgz files are not easily modified through a text editor, are there any
> tools out there to enable bulk changing of file paths in those files?
>
>
>
> Any other approaches?
>
>
>
> Cheers
>
> Tony
>
>
>
>
> ------------------------------------------------------------------------------------------------------------------
>
> *Tony Shepherd*
>
> *  GeoSpatial Manager @ FarmMaps NZ & Photographer @ Shepherd Photos*
>
>
>
> *Phone* *–* 027 435 6193  | *Website – *shepherdphotos.co.nz
>
> *Email** – Maps* tony at farmmaps.nz  |  *Email – Photos*
> tony at shepherdphotos.co.nz
>
> *Facebook* TonyShepherdPhotos
> <https://www.facebook.com/TonyShepherdPhotos>
>
>
>
>
>
> [image: FM_logo1_small (Custom)]
>
>
>
>
>
> _______________________________________________
>
> QGIS-User mailing list
>
> QGIS-User at lists.osgeo.org
>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240405/be8093a5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3062 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240405/be8093a5/attachment.jpg>


More information about the QGIS-User mailing list