Parse SVG XML files
sgenzer
Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM ModeratorPosts:2,959Community Manager
Hi...I'd love to see a way for the "Read XML" operator to be adapted so that it can easily read SVG vector image files, broken down by image, subimage, segment, etc... It would be a great way to do image analysis!!
FYI I know there is a Java SVG parser publicly available...could this be used?https://xmlgraphics.apache.org/batik/
Scott
Tagged:
2
Comments
Hi Scott,
how would the resulting table look like?
~Martin
Dortmund, Germany
Excellent questionHere's what I think would make sense..
Original XML SVG file:
Output:
Width, title, desc all in metadata - only paths in example set:
path command x y x1 x2 y1 y2 width height fill stroke stroke-width
rect 1 1 398 398 none blue
d M 100 100
d L 300 100
d L 200 300
d z red blue 3
The key for me here is both to break out the shapes AND to de-pivot the paths.
Scott