How to display permanently the rotation done to an object

Discuss SVG code, accessible via the XML Editor.
Guest

How to display permanently the rotation done to an object

Postby Guest » Wed Sep 10, 2008 7:53 pm

Hi again,

My need is to be able to see (in order to keep the value and put in another files) a rotation in ° applied to an object.

In a web application being developed, we need a 'map' very precise - not gmap, even it's quite the same principle-
Purpose is to use Inkscape to create one at a time a rectangle that represent a small area and catch its coordinates
position this rectangle to one very place on astreet map (background)
rotate it to align with pavement side
save the coordinate x, y and rotation applied in degrees- but this can be done with a few manipulations - (and save it for instance manually in Excel)
duplicate an object model, do the same again and again.

Need some suggestion

thank you

Guest

Re: How to display permanently the rotation done to an object

Postby Guest » Wed Sep 10, 2008 8:02 pm

I would say may be there's a way to parse the svg files to extract the data I need ...

By obvisouly.. I dont see whre to find the rotation value ....

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: How to display permanently the rotation done to an object

Postby microUgly » Wed Sep 10, 2008 9:07 pm

Inkscape uses a transformation matrix to define the rotation. How the matrix works is over my head, but you can read about it at http://www.w3.org/TR/SVG/coords.html#Tr ... rixDefined

Note that you can define the rotation using transform="rotate(30)" (where 30 is the degrees) but Inkscape will convert that value to the matrix value.

elz64
Posts: 2
Joined: Wed Sep 10, 2008 6:22 pm

Re: How to display permanently the rotation done to an object

Postby elz64 » Wed Sep 10, 2008 11:50 pm

thank you.


Not clear at all, but I'll ask to super MathMan some help :shock:


Return to “SVG / XML Code”