Hi Sujesh, "Sujesh Babu N" <[EMAIL PROTECTED]> wrote on 01/04/2007 06:41:03 AM:
> User can select multiple svg icons and system will display a set of > common shapes present in the icons . So we thinking of various ways > of extracting the common shapes from svg documents like ,creating a > set of rules, which states, the different attributes should match, > for the basic shapes to be considered identical or similar. Using Batik you can iterate through the entire DOM or use getElementsByTagNameNS to find all elements of a particular type. You can then check the attributes on the element. This however is probably not going to work real well as in SVG there can be many ways to produce similar visible shapes and it might be quite common to have "the same shape" but shifted a few pixels in multiple icons. I wish you the best of luck, but I suspect that this is the sort of feature that sounds really good but probably isn't very useful in "The Real World". > This is the scenario , i am trying to find a solution. I am looking > for a better way so that i can extract common shapes from SVG documents > > Thanks again > On 1/4/07, Sujesh Babu N <[EMAIL PROTECTED]> wrote: > Hi , > I am working on an application , which uses SVG extensively as icons > as well as background images . We are planning to provide an option > for mass editing of the icons. > Is there any way i can extract common shapes( circles,rects, > polygon.. etc ) from svg document? > any help will be appreciated . > thanks > Sujesh
