The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Parse SVG XML files


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 question
Here'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