Displaying direction of water system with arrows in QGIS?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
6
down vote

favorite












I would like to put direction arrows next to my Water system just like in OpenTopoMap (see the image under).



Screenshot from Opentopomap



I already watched the source code but they made it with Mapnik. However, I am working on my maps in QGIS.



In QGIS there are arrows line. I can put it next to my flow, but they are stick one after the another. I would like to have separated arrows by a certain distance.










share|improve this question









New contributor




S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    up vote
    6
    down vote

    favorite












    I would like to put direction arrows next to my Water system just like in OpenTopoMap (see the image under).



    Screenshot from Opentopomap



    I already watched the source code but they made it with Mapnik. However, I am working on my maps in QGIS.



    In QGIS there are arrows line. I can put it next to my flow, but they are stick one after the another. I would like to have separated arrows by a certain distance.










    share|improve this question









    New contributor




    S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      6
      down vote

      favorite









      up vote
      6
      down vote

      favorite











      I would like to put direction arrows next to my Water system just like in OpenTopoMap (see the image under).



      Screenshot from Opentopomap



      I already watched the source code but they made it with Mapnik. However, I am working on my maps in QGIS.



      In QGIS there are arrows line. I can put it next to my flow, but they are stick one after the another. I would like to have separated arrows by a certain distance.










      share|improve this question









      New contributor




      S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I would like to put direction arrows next to my Water system just like in OpenTopoMap (see the image under).



      Screenshot from Opentopomap



      I already watched the source code but they made it with Mapnik. However, I am working on my maps in QGIS.



      In QGIS there are arrows line. I can put it next to my flow, but they are stick one after the another. I would like to have separated arrows by a certain distance.







      qgis flow-direction






      share|improve this question









      New contributor




      S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 1 hour ago









      PolyGeo♦

      51.9k1777233




      51.9k1777233






      New contributor




      S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      S Van Hooren

      311




      311




      New contributor




      S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      S Van Hooren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          You can achieve this result with styling.



          Take the water line layer style and add a new symbol layer, select marker line and display it on central point



          enter image description here



          Select the marker layer, select the arrow symbol (at this point you can also import another svg symbol if the default arrow doesn't suit your needs), set its color. Beside the rotation setting, click the data defined override button / edit and enter the following equation, which compute the line angle at the center of the line.



          line_interpolate_angle( $geometry , $length /2)



          EDIT thanks to @J.R comment, you can just put 90 instead of computing the angle



          enter image description here



          At last, select the simple marker layer and put an adequate offset, maybe 2 mm



          enter image description here






          share|improve this answer


















          • 1




            If you need to have equally spaced marker just choose the "with interval" radio button and set the interval. Also you dont need to set the rotation with a formula, the symbol should follow the curvature of your line (if your arrow is perpendicular to your line set the rotation to 90 or -90 to point in the right direction). Also dont forget to set a line offset to display the arrow on the side of the line.
            – J.R
            20 mins ago










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          S Van Hooren is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f297218%2fdisplaying-direction-of-water-system-with-arrows-in-qgis%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote













          You can achieve this result with styling.



          Take the water line layer style and add a new symbol layer, select marker line and display it on central point



          enter image description here



          Select the marker layer, select the arrow symbol (at this point you can also import another svg symbol if the default arrow doesn't suit your needs), set its color. Beside the rotation setting, click the data defined override button / edit and enter the following equation, which compute the line angle at the center of the line.



          line_interpolate_angle( $geometry , $length /2)



          EDIT thanks to @J.R comment, you can just put 90 instead of computing the angle



          enter image description here



          At last, select the simple marker layer and put an adequate offset, maybe 2 mm



          enter image description here






          share|improve this answer


















          • 1




            If you need to have equally spaced marker just choose the "with interval" radio button and set the interval. Also you dont need to set the rotation with a formula, the symbol should follow the curvature of your line (if your arrow is perpendicular to your line set the rotation to 90 or -90 to point in the right direction). Also dont forget to set a line offset to display the arrow on the side of the line.
            – J.R
            20 mins ago














          up vote
          3
          down vote













          You can achieve this result with styling.



          Take the water line layer style and add a new symbol layer, select marker line and display it on central point



          enter image description here



          Select the marker layer, select the arrow symbol (at this point you can also import another svg symbol if the default arrow doesn't suit your needs), set its color. Beside the rotation setting, click the data defined override button / edit and enter the following equation, which compute the line angle at the center of the line.



          line_interpolate_angle( $geometry , $length /2)



          EDIT thanks to @J.R comment, you can just put 90 instead of computing the angle



          enter image description here



          At last, select the simple marker layer and put an adequate offset, maybe 2 mm



          enter image description here






          share|improve this answer


















          • 1




            If you need to have equally spaced marker just choose the "with interval" radio button and set the interval. Also you dont need to set the rotation with a formula, the symbol should follow the curvature of your line (if your arrow is perpendicular to your line set the rotation to 90 or -90 to point in the right direction). Also dont forget to set a line offset to display the arrow on the side of the line.
            – J.R
            20 mins ago












          up vote
          3
          down vote










          up vote
          3
          down vote









          You can achieve this result with styling.



          Take the water line layer style and add a new symbol layer, select marker line and display it on central point



          enter image description here



          Select the marker layer, select the arrow symbol (at this point you can also import another svg symbol if the default arrow doesn't suit your needs), set its color. Beside the rotation setting, click the data defined override button / edit and enter the following equation, which compute the line angle at the center of the line.



          line_interpolate_angle( $geometry , $length /2)



          EDIT thanks to @J.R comment, you can just put 90 instead of computing the angle



          enter image description here



          At last, select the simple marker layer and put an adequate offset, maybe 2 mm



          enter image description here






          share|improve this answer














          You can achieve this result with styling.



          Take the water line layer style and add a new symbol layer, select marker line and display it on central point



          enter image description here



          Select the marker layer, select the arrow symbol (at this point you can also import another svg symbol if the default arrow doesn't suit your needs), set its color. Beside the rotation setting, click the data defined override button / edit and enter the following equation, which compute the line angle at the center of the line.



          line_interpolate_angle( $geometry , $length /2)



          EDIT thanks to @J.R comment, you can just put 90 instead of computing the angle



          enter image description here



          At last, select the simple marker layer and put an adequate offset, maybe 2 mm



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 14 mins ago

























          answered 28 mins ago









          JGH

          10.6k2833




          10.6k2833







          • 1




            If you need to have equally spaced marker just choose the "with interval" radio button and set the interval. Also you dont need to set the rotation with a formula, the symbol should follow the curvature of your line (if your arrow is perpendicular to your line set the rotation to 90 or -90 to point in the right direction). Also dont forget to set a line offset to display the arrow on the side of the line.
            – J.R
            20 mins ago












          • 1




            If you need to have equally spaced marker just choose the "with interval" radio button and set the interval. Also you dont need to set the rotation with a formula, the symbol should follow the curvature of your line (if your arrow is perpendicular to your line set the rotation to 90 or -90 to point in the right direction). Also dont forget to set a line offset to display the arrow on the side of the line.
            – J.R
            20 mins ago







          1




          1




          If you need to have equally spaced marker just choose the "with interval" radio button and set the interval. Also you dont need to set the rotation with a formula, the symbol should follow the curvature of your line (if your arrow is perpendicular to your line set the rotation to 90 or -90 to point in the right direction). Also dont forget to set a line offset to display the arrow on the side of the line.
          – J.R
          20 mins ago




          If you need to have equally spaced marker just choose the "with interval" radio button and set the interval. Also you dont need to set the rotation with a formula, the symbol should follow the curvature of your line (if your arrow is perpendicular to your line set the rotation to 90 or -90 to point in the right direction). Also dont forget to set a line offset to display the arrow on the side of the line.
          – J.R
          20 mins ago










          S Van Hooren is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          S Van Hooren is a new contributor. Be nice, and check out our Code of Conduct.












          S Van Hooren is a new contributor. Be nice, and check out our Code of Conduct.











          S Van Hooren is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f297218%2fdisplaying-direction-of-water-system-with-arrows-in-qgis%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          White Anglo-Saxon Protestant

          BuddyTV

          Conflict (narrative)