Hi all,
I'm using QGIS+Inkscape combo to do some cartographic illustration for my thesis.
I have a base SVG (exported from QGIS and modified in Inkscape) in which I want to add other elements from another QGIS-ecxported SVG: same page size, same map position.
if I import the new SVG, the group is always shifted and not in position. this is very annoying, is there a way to avoid that? is it a bug to be fixed or an intended behavior?
The thing is, I wouldn't mind to move my object in the correct position since I have map borders (rectangles) in all the svg I exported, but snapping options don't work on the rectangle I'm moving because it's inside a group...
Any hint?
Imported SVGs not on position - bug or intended behavior?
-
- Posts: 22
- Joined: Wed Dec 12, 2012 8:04 pm
Re: Imported SVGs not on position - bug or intended behavior
Hi sanzoghenzo.
Interesting find - this must be an "Undocumented feature" or "BUG".
This behavior does not make sense and the transform value seems to be sort of "random".
I have figured a possible workaround;
Just after the import - while all imported objects are still selected - open the XML editor (Shift + Ctrl + X).
Highlight the transform values - press Delete - click Set (or Ctrl + Enter) and your imported pieces will be back in their original position.
Good Luck
RGDS
Ragnar
Interesting find - this must be an "Undocumented feature" or "BUG".
This behavior does not make sense and the transform value seems to be sort of "random".
I have figured a possible workaround;
Just after the import - while all imported objects are still selected - open the XML editor (Shift + Ctrl + X).
Highlight the transform values - press Delete - click Set (or Ctrl + Enter) and your imported pieces will be back in their original position.
Good Luck
RGDS
Ragnar
Last edited by ragstian on Mon Apr 15, 2013 2:01 pm, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: Imported SVGs not on position - bug or intended behavior
I didn't know about that method.
I would have done it manually, by selecting one of the maps,
duplicate it, ungroup the duplicant, deselect the map border, and delete unnecessary parts, without moving it any bit.
Then, draw a rectangle big enough to go over the bounding box of each group's bounding box, when aligned to the top right of the map borders.
After drawing it, duplicate and use the align and distribute panel -Shift+Ctrl+A- to put it top, right next to the duplicated map border.
Then, group it with the original grouped map part, and delete the duplicated border.
Then would do the exact same with the other group, using the previously drawn rectangle.
So after it all the align and distribute panel could be used on each map group, to place them in accurate position.
I would have done it manually, by selecting one of the maps,
duplicate it, ungroup the duplicant, deselect the map border, and delete unnecessary parts, without moving it any bit.
Then, draw a rectangle big enough to go over the bounding box of each group's bounding box, when aligned to the top right of the map borders.
After drawing it, duplicate and use the align and distribute panel -Shift+Ctrl+A- to put it top, right next to the duplicated map border.
Then, group it with the original grouped map part, and delete the duplicated border.
Then would do the exact same with the other group, using the previously drawn rectangle.
So after it all the align and distribute panel could be used on each map group, to place them in accurate position.
-
- Posts: 22
- Joined: Wed Dec 12, 2012 8:04 pm
Re: Imported SVGs not on position - bug or intended behavior
ragstian wrote:Hi sanzoghenzo.
...
I have figured a possible workaround;
...
Good Luck
RGDS
Ragnar
Great, thank you for your quick and useful reply!
I should learn more about svg's XML
have a good day!