Shifting an svg symbol to a specific point 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
1
down vote

favorite












Is it possible in QGIS to make a particular point of a custom .svg symbol coincide with the layer point position? i.e referring to the image: I would like to make the beginning of the symbol line coincide with the geographical position of the point in the layer (cross):
enter image description here










share|improve this question





























    up vote
    1
    down vote

    favorite












    Is it possible in QGIS to make a particular point of a custom .svg symbol coincide with the layer point position? i.e referring to the image: I would like to make the beginning of the symbol line coincide with the geographical position of the point in the layer (cross):
    enter image description here










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Is it possible in QGIS to make a particular point of a custom .svg symbol coincide with the layer point position? i.e referring to the image: I would like to make the beginning of the symbol line coincide with the geographical position of the point in the layer (cross):
      enter image description here










      share|improve this question















      Is it possible in QGIS to make a particular point of a custom .svg symbol coincide with the layer point position? i.e referring to the image: I would like to make the beginning of the symbol line coincide with the geographical position of the point in the layer (cross):
      enter image description here







      qgis style svg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 21 at 14:23









      lambertj

      1,4031421




      1,4031421










      asked Aug 21 at 9:46









      Andrew-63

      1138




      1138




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          If the beginning of the line starts in the middle of the .svg file, the beginning of the symbol will be where your point is positioned.



          I added two photos to make it clear. First one is the .svg file, second is in QGIS:



          enter image description here



          enter image description here






          share|improve this answer




















          • So, if I understand correctly, (i.e. in inkscape) should I set a page of appropriate size and move the symbol so that the beginning of the line coincides with the center of the page?
            – Andrew-63
            Aug 21 at 13:46










          • Yes exactly. You can use auxiliary lines (hope that's the correct name, since I do not use Inkscape in English) to find the middle.
            – gHupf
            Aug 22 at 7:24










          • I've tried setting document page format as square (as shown in the image of your example) in inkscape and it seems to work well. Thanks a lot!!
            – Andrew-63
            Aug 22 at 7:46


















          up vote
          2
          down vote













          @Andrew-63, unfortunately, QGIS is not that superpowerful in the sense of visualization and symbolization.



          However, in your case, I can suggest




          Layer Properties > Style > SVG Marker > Anchor point




          There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.



          Furthermore, you can play with Offset X,Y.
          But be careful when working with metric dimensions, since the changes that you apply to the SVG marker offset in QGIS main window will differ from the visual part in Print Composer.



          And as @J.R mentioned, it is better to work with map units.






          share|improve this answer






















          • I suggest to set all symbology unit to map unit, that way the size and offset of symbol won't need to be adjusted each time the scale change
            – J.R
            Aug 21 at 11:18










          • (Yes i'm working with map units) You say:"There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.", are anchor point setting (low, center, high, left,, center, right) related to the geometry/dimensions of SVG marker?
            – Andrew-63
            Aug 21 at 13:56










          • @Andrew-63, no.
            – Taras
            Aug 22 at 8:34










          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
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f293470%2fshifting-an-svg-symbol-to-a-specific-point-in-qgis%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          If the beginning of the line starts in the middle of the .svg file, the beginning of the symbol will be where your point is positioned.



          I added two photos to make it clear. First one is the .svg file, second is in QGIS:



          enter image description here



          enter image description here






          share|improve this answer




















          • So, if I understand correctly, (i.e. in inkscape) should I set a page of appropriate size and move the symbol so that the beginning of the line coincides with the center of the page?
            – Andrew-63
            Aug 21 at 13:46










          • Yes exactly. You can use auxiliary lines (hope that's the correct name, since I do not use Inkscape in English) to find the middle.
            – gHupf
            Aug 22 at 7:24










          • I've tried setting document page format as square (as shown in the image of your example) in inkscape and it seems to work well. Thanks a lot!!
            – Andrew-63
            Aug 22 at 7:46















          up vote
          2
          down vote



          accepted










          If the beginning of the line starts in the middle of the .svg file, the beginning of the symbol will be where your point is positioned.



          I added two photos to make it clear. First one is the .svg file, second is in QGIS:



          enter image description here



          enter image description here






          share|improve this answer




















          • So, if I understand correctly, (i.e. in inkscape) should I set a page of appropriate size and move the symbol so that the beginning of the line coincides with the center of the page?
            – Andrew-63
            Aug 21 at 13:46










          • Yes exactly. You can use auxiliary lines (hope that's the correct name, since I do not use Inkscape in English) to find the middle.
            – gHupf
            Aug 22 at 7:24










          • I've tried setting document page format as square (as shown in the image of your example) in inkscape and it seems to work well. Thanks a lot!!
            – Andrew-63
            Aug 22 at 7:46













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          If the beginning of the line starts in the middle of the .svg file, the beginning of the symbol will be where your point is positioned.



          I added two photos to make it clear. First one is the .svg file, second is in QGIS:



          enter image description here



          enter image description here






          share|improve this answer












          If the beginning of the line starts in the middle of the .svg file, the beginning of the symbol will be where your point is positioned.



          I added two photos to make it clear. First one is the .svg file, second is in QGIS:



          enter image description here



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 21 at 11:53









          gHupf

          8910




          8910











          • So, if I understand correctly, (i.e. in inkscape) should I set a page of appropriate size and move the symbol so that the beginning of the line coincides with the center of the page?
            – Andrew-63
            Aug 21 at 13:46










          • Yes exactly. You can use auxiliary lines (hope that's the correct name, since I do not use Inkscape in English) to find the middle.
            – gHupf
            Aug 22 at 7:24










          • I've tried setting document page format as square (as shown in the image of your example) in inkscape and it seems to work well. Thanks a lot!!
            – Andrew-63
            Aug 22 at 7:46

















          • So, if I understand correctly, (i.e. in inkscape) should I set a page of appropriate size and move the symbol so that the beginning of the line coincides with the center of the page?
            – Andrew-63
            Aug 21 at 13:46










          • Yes exactly. You can use auxiliary lines (hope that's the correct name, since I do not use Inkscape in English) to find the middle.
            – gHupf
            Aug 22 at 7:24










          • I've tried setting document page format as square (as shown in the image of your example) in inkscape and it seems to work well. Thanks a lot!!
            – Andrew-63
            Aug 22 at 7:46
















          So, if I understand correctly, (i.e. in inkscape) should I set a page of appropriate size and move the symbol so that the beginning of the line coincides with the center of the page?
          – Andrew-63
          Aug 21 at 13:46




          So, if I understand correctly, (i.e. in inkscape) should I set a page of appropriate size and move the symbol so that the beginning of the line coincides with the center of the page?
          – Andrew-63
          Aug 21 at 13:46












          Yes exactly. You can use auxiliary lines (hope that's the correct name, since I do not use Inkscape in English) to find the middle.
          – gHupf
          Aug 22 at 7:24




          Yes exactly. You can use auxiliary lines (hope that's the correct name, since I do not use Inkscape in English) to find the middle.
          – gHupf
          Aug 22 at 7:24












          I've tried setting document page format as square (as shown in the image of your example) in inkscape and it seems to work well. Thanks a lot!!
          – Andrew-63
          Aug 22 at 7:46





          I've tried setting document page format as square (as shown in the image of your example) in inkscape and it seems to work well. Thanks a lot!!
          – Andrew-63
          Aug 22 at 7:46













          up vote
          2
          down vote













          @Andrew-63, unfortunately, QGIS is not that superpowerful in the sense of visualization and symbolization.



          However, in your case, I can suggest




          Layer Properties > Style > SVG Marker > Anchor point




          There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.



          Furthermore, you can play with Offset X,Y.
          But be careful when working with metric dimensions, since the changes that you apply to the SVG marker offset in QGIS main window will differ from the visual part in Print Composer.



          And as @J.R mentioned, it is better to work with map units.






          share|improve this answer






















          • I suggest to set all symbology unit to map unit, that way the size and offset of symbol won't need to be adjusted each time the scale change
            – J.R
            Aug 21 at 11:18










          • (Yes i'm working with map units) You say:"There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.", are anchor point setting (low, center, high, left,, center, right) related to the geometry/dimensions of SVG marker?
            – Andrew-63
            Aug 21 at 13:56










          • @Andrew-63, no.
            – Taras
            Aug 22 at 8:34














          up vote
          2
          down vote













          @Andrew-63, unfortunately, QGIS is not that superpowerful in the sense of visualization and symbolization.



          However, in your case, I can suggest




          Layer Properties > Style > SVG Marker > Anchor point




          There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.



          Furthermore, you can play with Offset X,Y.
          But be careful when working with metric dimensions, since the changes that you apply to the SVG marker offset in QGIS main window will differ from the visual part in Print Composer.



          And as @J.R mentioned, it is better to work with map units.






          share|improve this answer






















          • I suggest to set all symbology unit to map unit, that way the size and offset of symbol won't need to be adjusted each time the scale change
            – J.R
            Aug 21 at 11:18










          • (Yes i'm working with map units) You say:"There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.", are anchor point setting (low, center, high, left,, center, right) related to the geometry/dimensions of SVG marker?
            – Andrew-63
            Aug 21 at 13:56










          • @Andrew-63, no.
            – Taras
            Aug 22 at 8:34












          up vote
          2
          down vote










          up vote
          2
          down vote









          @Andrew-63, unfortunately, QGIS is not that superpowerful in the sense of visualization and symbolization.



          However, in your case, I can suggest




          Layer Properties > Style > SVG Marker > Anchor point




          There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.



          Furthermore, you can play with Offset X,Y.
          But be careful when working with metric dimensions, since the changes that you apply to the SVG marker offset in QGIS main window will differ from the visual part in Print Composer.



          And as @J.R mentioned, it is better to work with map units.






          share|improve this answer














          @Andrew-63, unfortunately, QGIS is not that superpowerful in the sense of visualization and symbolization.



          However, in your case, I can suggest




          Layer Properties > Style > SVG Marker > Anchor point




          There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.



          Furthermore, you can play with Offset X,Y.
          But be careful when working with metric dimensions, since the changes that you apply to the SVG marker offset in QGIS main window will differ from the visual part in Print Composer.



          And as @J.R mentioned, it is better to work with map units.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 21 at 11:35

























          answered Aug 21 at 10:22









          Taras

          869419




          869419











          • I suggest to set all symbology unit to map unit, that way the size and offset of symbol won't need to be adjusted each time the scale change
            – J.R
            Aug 21 at 11:18










          • (Yes i'm working with map units) You say:"There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.", are anchor point setting (low, center, high, left,, center, right) related to the geometry/dimensions of SVG marker?
            – Andrew-63
            Aug 21 at 13:56










          • @Andrew-63, no.
            – Taras
            Aug 22 at 8:34
















          • I suggest to set all symbology unit to map unit, that way the size and offset of symbol won't need to be adjusted each time the scale change
            – J.R
            Aug 21 at 11:18










          • (Yes i'm working with map units) You say:"There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.", are anchor point setting (low, center, high, left,, center, right) related to the geometry/dimensions of SVG marker?
            – Andrew-63
            Aug 21 at 13:56










          • @Andrew-63, no.
            – Taras
            Aug 22 at 8:34















          I suggest to set all symbology unit to map unit, that way the size and offset of symbol won't need to be adjusted each time the scale change
          – J.R
          Aug 21 at 11:18




          I suggest to set all symbology unit to map unit, that way the size and offset of symbol won't need to be adjusted each time the scale change
          – J.R
          Aug 21 at 11:18












          (Yes i'm working with map units) You say:"There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.", are anchor point setting (low, center, high, left,, center, right) related to the geometry/dimensions of SVG marker?
          – Andrew-63
          Aug 21 at 13:56




          (Yes i'm working with map units) You say:"There is a possibility to edit the anchor point with custom expression, which will include [FIELD_x] and [FIELD_Y] accordingly.", are anchor point setting (low, center, high, left,, center, right) related to the geometry/dimensions of SVG marker?
          – Andrew-63
          Aug 21 at 13:56












          @Andrew-63, no.
          – Taras
          Aug 22 at 8:34




          @Andrew-63, no.
          – Taras
          Aug 22 at 8:34

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f293470%2fshifting-an-svg-symbol-to-a-specific-point-in-qgis%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay