Inkscape.org
Beyond the Basics Elements not showing up in SVG viewers?
  1. #1
    MisterElection2001 MisterElection2001 @MisterElection2001
    *

    Whenever I open this file in any SVG viewer, the only elements that appear are the text, rectangles and arrows.

    I've looked through the XML code but couldn't pinpoint anything.

    If it helps, the file was originally a shapefile (.shp) that was exported as an SVG from ArcGIS Pro.

    For reference, this is what the file looks like in Inkscape:

     

    Layout
  2. #2
    Aero Aero @Aero◻️

    Group element is not allowed in clippath.
     

  3. #3
    MisterElection2001 MisterElection2001 @MisterElection2001

    Apologies, I’m not sure what that means. How do I solve this problem? Do I need to edit the code or is there something I can do in Inkscape?

  4. #4
    Aero Aero @Aero◻️

    Maybe save copy as PDF and check if the groups are gone when you open the new PDF.
    Use the XML-editor to check before and after, clippaths is found in defs.
     

  5. #5
    David248 David248 @David248
    *

    Aero explains that the objects that are not displayed in browsers are the ones that are clipped using a group as a clippath and not a path as a clippath.

    One slow method is to open object's panel (ctrl + shift + L) and check for objects that are clipped (a small scissor is displayed on object's icon), select them and right clic > release clip. The object stays unchanged (magic of unnecessary clips...) and a black filled group appears above : select it and delete it. Repeat.

    Another method is to select all clipped paths in one go, using search and replace panel (ctrl + F) and type in Find: field #clipPath and press on find button (bottom of panel) : this selects all clipped paths.

    Then group them (it's a group of clipped paths, let's name this group myGroup) for ease and select all clipped paths inside again and make a right clic on one in object's panel and do release clip. Delete all created groups inside mygroup . Eventually ungroup mygroup.

     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Elements not showing up in SVG viewers?