Imported SVGs not on position - bug or intended behavior?

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.

Imported SVGs not on position - bug or intended behavior?

Postby sanzoghenzo » Mon Apr 15, 2013 7:14 am

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?
sanzoghenzo
 
Posts: 22
Joined: Wed Dec 12, 2012 8:04 pm

Re: Imported SVGs not on position - bug or intended behavior

Postby ragstian » Mon Apr 15, 2013 7:39 am

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.

Image

Good Luck
RGDS
Ragnar
Last edited by ragstian on Mon Apr 15, 2013 2:01 pm, edited 1 time in total.
User avatar
ragstian
 
Posts: 724
Joined: Thu Oct 11, 2012 2:44 am
Location: Katy, TX

Re: Imported SVGs not on position - bug or intended behavior

Postby Lazur URH » Mon Apr 15, 2013 8:08 am

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.
microUgly wrote:People who figure things out for themselves will be far better at their craft than people who are told how or have someone else do the work for them.
User avatar
Lazur URH
 
Posts: 2069
Joined: Sun Feb 10, 2013 10:50 pm

Re: Imported SVGs not on position - bug or intended behavior

Postby sanzoghenzo » Mon Apr 15, 2013 4:51 pm

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!
sanzoghenzo
 
Posts: 22
Joined: Wed Dec 12, 2012 8:04 pm


Return to Discuss Software Issues

Who is online

Users browsing this forum: Google [Bot] and 3 guests