Shifting an svg symbol to a specific point in QGIS
Clash 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):
qgis style svg
add a comment |Â
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):
qgis style svg
add a comment |Â
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):
qgis style svg
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):
qgis style svg
qgis style svg
edited Aug 21 at 14:23
lambertj
1,4031421
1,4031421
asked Aug 21 at 9:46
Andrew-63
1138
1138
add a comment |Â
add a comment |Â
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:
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
add a comment |Â
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.
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
add a comment |Â
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:
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
add a comment |Â
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:
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
add a comment |Â
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:
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:
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
add a comment |Â
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
@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.
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password