<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div>Hi,<br /><br />Just reading about a script to bulk change qgz and other files.<br />A couple of years ago I needed this functionality when the servernames changed, so I wrote this script:<br />####################################################<br />import os<br />import zipfile<br />import ntpath<br /><br /># Wijzig deze map zonodig<br />startdir = "C:/"<br /><br />newserver = "somenewserver"<br />oldserver = "10.195.6.122"<br />oldserver2 = "10.195.5.110"<br />oldserver3 = "10.195.5.101"<br /><br />def path_leaf(path):<br />    head, tail = ntpath.split(path)<br />    return tail or ntpath.basename(head)<br /><br />def replace_servername(fl, svname):<br />    print("opening file " + fl)<br />    f = open(fl,'r')<br />    filedata = f.read()<br />    f.close()<br />    newdata = filedata.replace(oldserver,newserver)<br />    data2 = newdata.replace(oldserver2,newserver)<br />    data = data2.replace(oldserver3,newserver)<br />    f = open(fl,'w')<br />    f.write(data)<br />    f.close()<br /><br /><br />def change_servername(fname, zonder_ext, ext):<br />    if ext == '.qlr':<br />        replace_servername(fname, newserver)<br />    if ext == '.qgz':        <br />        with zipfile.ZipFile(fname, 'r') as zip_ref:            <br />            zip_ref.extractall(os.path.dirname(fname))        <br />        qgsfile = zonder_ext + '.qgs'<br />        qgdfile = zonder_ext + '.qgd'<br />        replace_servername(qgsfile, newserver)<br />        os.remove(fname)<br />        zipObj = zipfile.ZipFile(fname, 'w')<br />        zipObj.write(qgsfile)<br />        if os.path.isfile(qgdfile):<br />            zipObj.write(qgdfile)<br />            os.remove(qgdfile)<br />        zipObj.close()<br />        os.remove(qgsfile)<br />        <br />        <br /><br /><br />for (root, dirs, files) in os.walk(startdir, topdown=True):<br />    if files:<br />        for f in files:<br />            fl = os.path.join(root,  f)<br />            zonder, extension = os.path.splitext(fl)<br />            if extension == '.qgz' or extension == '.qlr':<br />                change_servername(fl, zonder, extension)<br /><br />print("klaar")<br /><br /><br />##############################################################<br /><br /><br /><div dir="ltr" style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;font-size:1px;direction:ltr;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;border-collapse:collapse;font-size:1px;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:5px 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;color:#5C676D;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="padding:2px 0;vertical-align:top;font-family:Tahoma;">Reginald Carlier<span style="font-family:remialcxesans;font-size:1px;color:#FFFFFF;line-height:1px;">​<span style="font-family:'template-rrFDUTCsEeeAwwANOiISNg';">​</span><span style="font-family:'zone-1';">​</span><span style="font-family:'zones-AQ';">​</span></span></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;color:#5C676D;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:13.33px;"><td align="left" style="padding:2px 0;vertical-align:top;font-family:Tahoma;">Deskundige GIS</td></tr></table></td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:3px 0;vertical-align:top;"><a href="https://www.ingelmunster.be/" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="https://www.ingelmunster.be/fileadmin/templates/img/logo-400-200.png" height="65" border="0" alt="" style="height:65px;min-height:65px;max-height:65px;font-size:0;" /></a></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:2px 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;color:#5C676D;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:12px;"><td align="left" style="vertical-align:top;font-family:Tahoma;">Gemeente Ingelmunster</td><td align="left" style="vertical-align:top;font-family:Tahoma;">, </td><td align="left" style="vertical-align:top;font-family:Tahoma;">Oostrozebekestraat 4</td><td align="left" style="vertical-align:top;font-family:Tahoma;">, </td><td align="left" style="vertical-align:top;font-family:Tahoma;">8770</td><td align="left" style="vertical-align:top;font-family:Tahoma;"> </td><td align="left" style="vertical-align:top;font-family:Tahoma;">Ingelmunster</td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:2px 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;color:#5C676D;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:12px;"><td align="left" style="vertical-align:top;font-family:Tahoma;">T</td><td align="left" style="vertical-align:top;font-family:Tahoma;"><a href="tel:+32%2051%2033%2074%2039" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#5C676D;">+32 51 33 74 39</a></td><td align="left" style="vertical-align:top;font-size:0;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;color:#5C676D;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:12px;"><td align="left" style="padding:0 0 0 5px;vertical-align:top;font-family:Tahoma;"><a href="http://www.ingelmunster.be/" target="_blank" id="LPlnk689713" title="Website Ingelmunster" style="text-decoration:none;color:#5C676D;">www.ingelmunster.be</a></td></tr></table></td></tr></table></td></tr></table></td></tr><tr style="font-size:14.67px;color:#5C676D;font-style:normal;font-weight:400;white-space:nowrap;"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif;"><span style="font-size:12px;"><span style="font-family:Calibri,sans-serif;">0207.485.473 (gemeente) â€‘ 0212.221.845 (OCMW)<br />​</span>RPR Rechtbank van eerste aanleg West‑Vlaanderen afdeling Kortrijk<br /></span> </td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:4px 0 2px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><a href="https://www.facebook.com/Ingelmunster/" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image520723.png@F28BEDEC.502F93A0" width="19" height="19" border="0" title="Facebook" alt="Facebook" style="width:19px;min-width:19px;max-width:19px;height:19px;min-height:19px;max-height:19px;font-size:12px;" /></a></td><td align="left" style="vertical-align:top;"><a href="https://www.instagram.com/ingelmunster/" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image113227.png@05FEE3FE.5D3BC4AB" width="19" height="19" border="0" title="instagram" alt="instagram" style="width:19px;min-width:19px;max-width:19px;height:19px;min-height:19px;max-height:19px;font-size:12px;" /></a></td><td align="left" style="vertical-align:top;"><a href="https://www.youtube.com/ingelmunster" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image757869.png@ABF35FA5.24756455" width="19" height="19" border="0" title="youtube" alt="youtube" style="width:19px;min-width:19px;max-width:19px;height:19px;min-height:19px;max-height:19px;font-size:12px;" /></a></td><td align="left" style="vertical-align:top;"><a href="https://twitter.com/ingelmunster" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image200095.png@C6BBBD04.8F15D820" width="19" height="19" border="0" title="twitter" alt="twitter" style="width:19px;min-width:19px;max-width:19px;height:19px;min-height:19px;max-height:19px;font-size:12px;" /></a></td></tr></table></td></tr></table></td></tr><tr style="font-size:9px;color:#000001;font-style:normal;font-weight:400;white-space:nowrap;"><td align="left" style="vertical-align:top;font-family:Tahoma;"><a href="https://www.ingelmunster.be/openingsuren/maak-een-afspraak" target="_blank" id="LPlnk689713" title="afspraak" style="text-decoration:none;color:#000001;">Wij werken enkel op afspraak</a></td></tr><tr style="font-size:9px;color:#000001;font-style:normal;font-weight:400;white-space:nowrap;"><td align="left" style="vertical-align:top;font-family:Tahoma;"><a href="https://www.ingelmunster.be/nieuwsbrief/" target="_blank" id="LPlnk689713" title="nieuwsbrief" style="text-decoration:none;color:#5C676D;">Schrijf je in op onze nieuwsbrief!</a></td></tr><tr style="font-size:9px;color:#5C676D;font-style:normal;font-weight:400;white-space:nowrap;"><td align="left" style="vertical-align:top;font-family:Tahoma;"><a href="http://www.ingelmunster.be/email-disclaimer.html" target="_blank" id="LPlnk689713" title="disclaimer" style="text-decoration:none;color:#5C676D;">Raadpleeg onze disclaimer </a></td></tr></table></div>-----Oorspronkelijk bericht-----<br />Van: QGIS-User <qgis-user-bounces@lists.osgeo.org> Namens qgis-user-request@lists.osgeo.org<br />Verzonden: vrijdag 5 april 2024 9:58<br />Aan: qgis-user@lists.osgeo.org<br />Onderwerp: QGIS-User Digest, Vol 218, Issue 10<br /><br />Send QGIS-User mailing list submissions to<br />  qgis-user@lists.osgeo.org<br /><br />To subscribe or unsubscribe via the World Wide Web, visit<br />  https://lists.osgeo.org/mailman/listinfo/qgis-user<br />or, via email, send a message with subject or body 'help' to<br />  qgis-user-request@lists.osgeo.org<br /><br />You can reach the person managing the list at<br />      qgis-user-owner@lists.osgeo.org<br /><br />When replying, please edit your Subject line so it is more specific than "Re: Contents of QGIS-User digest..."<br /><br /><br />Today's Topics:<br /><br />   1. Re: Moving many project files - bulk updating paths to<br />      tables? (Tony Shepherd (FarmMaps NZ))<br />   2. Re: Announce - migrate our mailing lists to Discourse<br />      (DancesWithCars)<br />   3. Re: Announce - migrate our mailing lists to Discourse<br />      (Michael Shand)<br />   4. Re: Announce - migrate our mailing lists to Discourse<br />      (David Strip)<br />   5. Re: Moving many project files - bulk updating paths to<br />      tables? (Gordon Wakelin-King)<br /><br /><br />----------------------------------------------------------------------<br /><br />Message: 1<br />Date: Fri, 5 Apr 2024 08:06:48 +1300<br />From: "Tony Shepherd \(FarmMaps NZ\)" <tony@farmmaps.nz><br />To: "'Jorge Gustavo Rocha'" <jgr@geomaster.pt>,<br />  <qgis-user@lists.osgeo.org><br />Subject: Re: [Qgis-user] Moving many project files - bulk updating<br />     paths to tables?<br />Message-ID: <004301da86c3$41fb3da0$c5f1b8e0$@farmmaps.nz><br />Content-Type: text/plain; charset="utf-8"<br /><br />Thanks Jorge<br /><br /> <br /><br />Yes, I toyed with that, but somewhat painful with thousands to process.<br /><br /> <br /><br />Has anybody scripted or coded something for this?<br /><br /> <br /><br />Cheers<br /><br /> <br /><br />From: QGIS-User <qgis-user-bounces@lists.osgeo.org> On Behalf Of Jorge Gustavo Rocha via QGIS-User<br />Sent: Friday, April 5, 2024 7:53 AM<br />To: qgis-user@lists.osgeo.org<br />Subject: Re: [Qgis-user] Moving many project files - bulk updating paths to tables?<br /><br /> <br /><br />Hi Tony,<br /><br />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.<br /><br />I hope it helps,<br /><br />Jorge<br /><br />On 04/04/24 19:28, Tony Shepherd (FarmMaps NZ) via QGIS-User wrote:<br /><br />Hi All<br /><br /> <br /><br />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.<br /><br /> <br /><br />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.<br /><br /> <br /><br />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.<br /><br /> <br /><br />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? <br /><br /> <br /><br />Any other approaches?<br /><br /> <br /><br />Cheers<br /><br />Tony<br /><br /> <br /><br />------------------------------------------------------------------------------------------------------------------<br /><br />Tony Shepherd<br /><br />  GeoSpatial Manager @ FarmMaps NZ & Photographer @ Shepherd Photos<br /><br /> <br /><br />Phone ? 027 435 6193  | Website ?  <http://shepherdphotos.co.nz/> shepherdphotos.co.nz<br /><br />Email ? Maps  <mailto:tony@farmmaps.nz> tony@farmmaps.nz  |  Email ? Photos   <mailto:tony@shepherdphotos.co.nz> tony@shepherdphotos.co.nz<br /><br />Facebook  <https://www.facebook.com/TonyShepherdPhotos> TonyShepherdPhotos<br /><br /> <br /><br /> <br /><br /><br /><br /> <br /><br /><br /><br /><br /><br />_______________________________________________<br />QGIS-User mailing list<br />QGIS-User@lists.osgeo.org <mailto:QGIS-User@lists.osgeo.org><br />List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<br />Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user<br /><br />-------------- next part --------------<br />An HTML attachment was scrubbed...<br />URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240405/e1ecbd4f/attachment-0001.htm><br />-------------- next part --------------<br />A non-text attachment was scrubbed...<br />Name: image001.jpg<br />Type: image/jpeg<br />Size: 3062 bytes<br />Desc: not available<br />URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240405/e1ecbd4f/attachment-0001.jpg><br /><br />------------------------------<br /><br />Message: 2<br />Date: Thu, 4 Apr 2024 16:17:38 -0400<br />From: DancesWithCars <danceswithcars@gmail.com><br />To: chris hermansen <clhermansen@gmail.com><br />Cc: R?gis Haubourg <regis.haubourg@gmail.com>, qgis-psc<br />    <qgis-psc@lists.osgeo.org>, qgis-developer@lists.osgeo.org,<br />   qgis-user@lists.osgeo.org<br />Subject: Re: [Qgis-user] Announce - migrate our mailing lists to<br />       Discourse<br />Message-ID:<br />    <CA+zqz3V2B-pciLiog2H=RpaWJ7yeWqmQooFJ=gFUK9POsQ=BTQ@mail.gmail.com><br />Content-Type: text/plain; charset="utf-8"<br /><br />I won't be making the transition.<br />Bye<br /><br /><br />On Thu, Apr 4, 2024, 14:06 chris hermansen via QGIS-User < qgis-user@lists.osgeo.org> wrote:<br /><br />> R?gis and everyone else,<br />><br />> My apologies; I try not to top post but my response is more an overall <br />> reaction to your announcement rather than a point by point response.<br />><br />> I was a member (??) over at opensource.com's Discourse instance until <br />> RedHat decided to shut down support for opensource.com, so I have some <br />> experience with that Discourse configuration, also plenty of <br />> experience with mailing lists.  Also familiarity with the Ubuntu <br />> Forums, Stack Exchange etc.<br />><br />> In my experience, Discourse "out of the box" doesn't offer any net <br />> benefit to its users.<br />><br />> It's quite possible that people interested in, and willing to invest <br />> time and effort into customizing their usage profile would benefit <br />> more from Discourse than from a mailing list.  I have no experience with that.<br />><br />> You may be correct when you say that we will attract more new users by <br />> offering them Discourse than by maintaining a mailing list.  I guess <br />> the question that begs to be asked is, will those new users thereby <br />> turn into contributors, or will the biggest Discourse channel be "how <br />> do I install QGIS on my new Mac"?<br />><br />> I suppose, perhaps wrongly, that most of us on this (and other) <br />> mailing lists are here because the list provides a sense of community, <br />> an opportunity to pay back by offering a bit of help, an opportunity <br />> to stumble on something new and useful from time to time... what else?  <br />> I'm pretty sure none of us participate in this list to learn how to <br />> participate effectively in lists.  Moreover, we don't really have the <br />> tools to "only pay attention to topics X, Y and Z".  So all of us get <br />> to see the beginner questions, and the responses, and sometimes we <br />> find ourselves in the situation of starting fresh with something that, <br />> because of this broad familiarity, is not a total blank.<br />><br />> In contrast, in my experience, moving to Discourse, or any other <br />> similar forum-type structure, allows or even encourages us to stick to <br />> certain topics that we think may be of interest and avoid all others.<br />><br />> I would argue that we thereby cheapen and diminish our contribution <br />> back to the forum, simply because we miss real opportunities to help <br />> while we avoid reading certain topics; and by doing so, we reduce the <br />> sense of community we get by belonging to the list.  I would further <br />> argue that we run the risk of not learning many new things because by <br />> streaming topics into tens or hundreds of specialist channels, we <br />> inevitably miss things that might benefit us.<br />><br />> Finally, we have the "opportunity" to spend more of our limited time <br />> learning about configuring our participation in this mechanism, rather <br />> than just participating.  Your example of learning how to treat <br />> Discourse like a mailing list by following the Mozilla tutorial <br />> addresses this situation precisely - instead of helping a person with <br />> their configuration issues, or learning more about how to structure <br />> the queries used in QGIS, we are tweaking the Discourse knobs and levers to get the "optimum" experience.<br />><br />> I guess you can tell that I'm negative on this concept.  I don't feel <br />> that the mailing list is a be-all and end-all.  But I am pretty sure, <br />> again based on my experience, that the lovely community we have here <br />> on qgis-user@lists.osgeo.org will not be the same collection of good <br />> things once migrated to Discourse.  I do hope that I am wrong!<br />><br />> On Wed, Apr 3, 2024 at 7:04?AM R?gis Haubourg via QGIS-User < <br />> qgis-user@lists.osgeo.org> wrote:<br />><br />>> [Message sent to all QGIS's lists. Sorry for crossposting - **please <br />>> reply only in PSC list**  ] [stuff deleted]<br />>><br />>><br />>> Any thought from you is more than welcome, from ranting against <br />>> modernity to thanking SAC for their hard work.<br />>><br />>  And thank you, SAC, for your hard work!<br />><br />> --<br />> Chris Hermansen ? clhermansen "at" gmail "dot" com<br />><br />> C'est ma fa?on de parler.<br />> _______________________________________________<br />> QGIS-User mailing list<br />> QGIS-User@lists.osgeo.org<br />> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<br />> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user<br />><br />-------------- next part --------------<br />An HTML attachment was scrubbed...<br />URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240404/ffe5634d/attachment-0001.htm><br /><br />------------------------------<br /><br />Message: 3<br />Date: Thu, 4 Apr 2024 20:49:03 +0000<br />From: Michael Shand <Mike.Shand@glasgow.ac.uk><br />To: "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org><br />Subject: Re: [Qgis-user] Announce - migrate our mailing lists to<br />      Discourse<br />Message-ID: <52c0a0e2-faa6-4fb7-adc6-c2a621d2157d@email.android.com><br />Content-Type: text/plain; charset="utf-8"<br /><br />Another great mapping list bites the dust.<br />I used CartoSOC for over 20 years which was great for info and connecting with like minded cartographers, after a merger it became a Forum and died a slow death.<br /><br />Sent from Samsung mobile<br /><br />On 4 Apr 2024 21:29, DancesWithCars via QGIS-User <qgis-user@lists.osgeo.org> wrote:<br />I won't be making the transition.<br />Bye<br /><br /><br />On Thu, Apr 4, 2024, 14:06 chris hermansen via QGIS-User <qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>> wrote:<br />R?gis and everyone else,<br /><br />My apologies; I try not to top post but my response is more an overall reaction to your announcement rather than a point by point response.<br /><br />I was a member (??) over at opensource.com<http://opensource.com/>'s Discourse instance until RedHat decided to shut down support for opensource.com<http://opensource.com/>, so I have some experience with that Discourse configuration, also plenty of experience with mailing lists.  Also familiarity with the Ubuntu Forums, Stack Exchange etc.<br /><br />In my experience, Discourse "out of the box" doesn't offer any net benefit to its users.<br /><br />It's quite possible that people interested in, and willing to invest time and effort into customizing their usage profile would benefit more from Discourse than from a mailing list.  I have no experience with that.<br /><br />You may be correct when you say that we will attract more new users by offering them Discourse than by maintaining a mailing list.  I guess the question that begs to be asked is, will those new users thereby turn into contributors, or will the biggest Discourse channel be "how do I install QGIS on my new Mac"?<br /><br />I suppose, perhaps wrongly, that most of us on this (and other) mailing lists are here because the list provides a sense of community, an opportunity to pay back by offering a bit of help, an opportunity to stumble on something new and useful from time to time... what else?  I'm pretty sure none of us participate in this list to learn how to participate effectively in lists.  Moreover, we don't really have the tools to "only pay attention to topics X, Y and Z".  So all of us get to see the beginner questions, and the responses, and sometimes we find ourselves in the situation of starting fresh with something that, because of this broad familiarity, is not a total blank.<br /><br />In contrast, in my experience, moving to Discourse, or any other similar forum-type structure, allows or even encourages us to stick to certain topics that we think may be of interest and avoid all others.<br /><br />I would argue that we thereby cheapen and diminish our contribution back to the forum, simply because we miss real opportunities to help while we avoid reading certain topics; and by doing so, we reduce the sense of community we get by belonging to the list.  I would further argue that we run the risk of not learning many new things because by streaming topics into tens or hundreds of specialist channels, we inevitably miss things that might benefit us.<br /><br />Finally, we have the "opportunity" to spend more of our limited time learning about configuring our participation in this mechanism, rather than just participating.  Your example of learning how to treat Discourse like a mailing list by following the Mozilla tutorial addresses this situation precisely - instead of helping a person with their configuration issues, or learning more about how to structure the queries used in QGIS, we are tweaking the Discourse knobs and levers to get the "optimum" experience.<br /><br />I guess you can tell that I'm negative on this concept.  I don't feel that the mailing list is a be-all and end-all.  But I am pretty sure, again based on my experience, that the lovely community we have here on qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org> will not be the same collection of good things once migrated to Discourse.  I do hope that I am wrong!<br /><br />On Wed, Apr 3, 2024 at 7:04?AM R?gis Haubourg via QGIS-User <qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>> wrote:<br /><br />[Message sent to all QGIS's lists. Sorry for crossposting - **please reply only in PSC list**  ]<br /><br />[stuff deleted]<br /><br /><br />Any thought from you is more than welcome, from ranting against modernity to thanking SAC for their hard work.<br /><br /> And thank you, SAC, for your hard work!<br /><br />--<br /><br />Chris Hermansen ? clhermansen "at" gmail "dot" com<br /><br />C'est ma fa?on de parler.<br />_______________________________________________<br />QGIS-User mailing list<br />QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org><br />List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<br />Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user<br /><br />-------------- next part --------------<br />An HTML attachment was scrubbed...<br />URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240404/c24a2f82/attachment-0001.htm><br /><br />------------------------------<br /><br />Message: 4<br />Date: Thu, 4 Apr 2024 15:29:24 -0600<br />From: David Strip <qgis-user@stripfamily.net><br />To: "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org><br />Subject: Re: [Qgis-user] Announce - migrate our mailing lists to<br />     Discourse<br />Message-ID: <c4ae20a2-4056-443f-8a9f-3e7f91f1cd8c@stripfamily.net><br />Content-Type: text/plain; charset="us-ascii"<br /><br />An HTML attachment was scrubbed...<br />URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240404/019a55df/attachment-0001.htm><br /><br />------------------------------<br /><br />Message: 5<br />Date: Fri, 5 Apr 2024 07:58:23 +0000<br />From: Gordon Wakelin-King <gordon@wakelinassociates.com.au><br />To: "Tony Shepherd (FarmMaps NZ)" <tony@farmmaps.nz>, 'Jorge Gustavo<br />     Rocha' <jgr@geomaster.pt>, "qgis-user@lists.osgeo.org"<br />  <qgis-user@lists.osgeo.org><br />Subject: Re: [Qgis-user] Moving many project files - bulk updating<br />     paths to tables?<br />Message-ID:<br />     <ME2P282MB22422EFEF0BEC9774041F914E4032@ME2P282MB2242.AUSP282.PROD.OUTLOOK.COM><br />       <br />Content-Type: text/plain; charset="windows-1252"<br /><br />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.<br /><br />Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________<br />From: QGIS-User <qgis-user-bounces@lists.osgeo.org> on behalf of Tony Shepherd (FarmMaps NZ) via QGIS-User <qgis-user@lists.osgeo.org><br />Sent: Friday, April 5, 2024 6:06:48 AM<br />To: 'Jorge Gustavo Rocha' <jgr@geomaster.pt>; qgis-user@lists.osgeo.org <qgis-user@lists.osgeo.org><br />Subject: Re: [Qgis-user] Moving many project files - bulk updating paths to tables?<br /><br /><br />Thanks Jorge<br /><br /><br /><br />Yes, I toyed with that, but somewhat painful with thousands to process.<br /><br /><br /><br />Has anybody scripted or coded something for this?<br /><br /><br /><br />Cheers<br /><br /><br /><br />From: QGIS-User <qgis-user-bounces@lists.osgeo.org> On Behalf Of Jorge Gustavo Rocha via QGIS-User<br />Sent: Friday, April 5, 2024 7:53 AM<br />To: qgis-user@lists.osgeo.org<br />Subject: Re: [Qgis-user] Moving many project files - bulk updating paths to tables?<br /><br /><br /><br />Hi Tony,<br /><br />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.<br /><br />I hope it helps,<br /><br />Jorge<br /><br />On 04/04/24 19:28, Tony Shepherd (FarmMaps NZ) via QGIS-User wrote:<br /><br />Hi All<br /><br /><br /><br />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.<br /><br /><br /><br />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.<br /><br /><br /><br />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.<br /><br /><br /><br />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?<br /><br /><br /><br />Any other approaches?<br /><br /><br /><br />Cheers<br /><br />Tony<br /><br /><br /><br />------------------------------------------------------------------------------------------------------------------<br /><br />Tony Shepherd<br /><br />  GeoSpatial Manager @ FarmMaps NZ & Photographer @ Shepherd Photos<br /><br /><br /><br />Phone ? 027 435 6193  | Website ? shepherdphotos.co.nz<http://shepherdphotos.co.nz/><br /><br />Email ? Maps tony@farmmaps.nz<mailto:tony@farmmaps.nz>  |  Email ? Photos  tony@shepherdphotos.co.nz<mailto:tony@shepherdphotos.co.nz><br /><br />Facebook TonyShepherdPhotos<https://www.facebook.com/TonyShepherdPhotos><br /><br /><br /><br /><br /><br />[FM_logo1_small (Custom)]<br /><br /><br /><br /><br /><br />_______________________________________________<br /><br />QGIS-User mailing list<br /><br />QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org><br /><br />List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<br /><br />Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user<br />-------------- next part --------------<br />An HTML attachment was scrubbed...<br />URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240405/94be66d9/attachment.htm><br />-------------- next part --------------<br />A non-text attachment was scrubbed...<br />Name: image001.jpg<br />Type: image/jpeg<br />Size: 3062 bytes<br />Desc: image001.jpg<br />URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240405/94be66d9/attachment.jpg><br /><br />------------------------------<br /><br />Subject: Digest Footer<br /><br />_______________________________________________<br />QGIS-User mailing list<br />QGIS-User@lists.osgeo.org<br />List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<br />Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user<br /><br /><br />------------------------------<br /><br />End of QGIS-User Digest, Vol 218, Issue 10<br />******************************************<br /></div></body></html>