TransWikia.com

Shifting SVG symbol to specific point in QGIS

Geographic Information Systems Asked on July 4, 2021

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

2 Answers

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

Correct answer by gHupf on July 4, 2021

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.

Answered by Taras on July 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP