Change filename of QGIS layer in Python? Planned maintenance scheduled April 17/18, 2019 at...

Statistical model of ligand substitution

What LEGO pieces have "real-world" functionality?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

What are the performance impacts of 'functional' Rust?

What do you call the holes in a flute?

3 doors, three guards, one stone

Do working physicists consider Newtonian mechanics to be "falsified"?

How does modal jazz use chord progressions?

Should you tell Jews they are breaking a commandment?

Limit for e and 1/e

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?

Complexity of many constant time steps with occasional logarithmic steps

Using "nakedly" instead of "with nothing on"

How to market an anarchic city as a tourism spot to people living in civilized areas?

How do I automatically answer y in bash script?

I'm having difficulty getting my players to do stuff in a sandbox campaign

How are presidential pardons supposed to be used?

Cauchy Sequence Characterized only By Directly Neighbouring Sequence Members

Passing functions in C++

If I can make up priors, why can't I make up posteriors?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Area of a 2D convex hull

How to rotate it perfectly?



Change filename of QGIS layer in Python?



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?QGIS (2.4) keeps caching old Python codeWhy does this Python script only work once on QGIS?Stopping PyQGIS script that has infinite loop, using keyboard?Qgis layer renaming stays the sameSetting extent with python in QGIS in new projectspurious “.tif Exists” errors on QGIS Python script processingAfter an update, reset the values with QgisGeodjango PostgreSQL/PostGIS database questionQGIS 3.4.3 Refactor fields changes symbols in fields (cp1250)ArcGIS loads splash screen then quits (possible Python issue)





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















Is there a simple way to change the filename of a layer while operating in QGIS.



(The obvious way is to close the layer, rename the file, and open it again. However, renaming it with a simpler command obviously simplifies things, so is worth asking on here.)










share|improve this question































    0















    Is there a simple way to change the filename of a layer while operating in QGIS.



    (The obvious way is to close the layer, rename the file, and open it again. However, renaming it with a simpler command obviously simplifies things, so is worth asking on here.)










    share|improve this question



























      0












      0








      0








      Is there a simple way to change the filename of a layer while operating in QGIS.



      (The obvious way is to close the layer, rename the file, and open it again. However, renaming it with a simpler command obviously simplifies things, so is worth asking on here.)










      share|improve this question
















      Is there a simple way to change the filename of a layer while operating in QGIS.



      (The obvious way is to close the layer, rename the file, and open it again. However, renaming it with a simpler command obviously simplifies things, so is worth asking on here.)







      qgis python pyqgis






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 min ago









      Vince

      14.8k32850




      14.8k32850










      asked 12 mins ago









      DillonDillon

      62




      62






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318773%2fchange-filename-of-qgis-layer-in-python%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318773%2fchange-filename-of-qgis-layer-in-python%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

          Meter-Bus Содержание Параметры шины | Стандартизация |...