Loading exported SVG by Illustrator into Geomerative error: OutOfBounds: -1
in
Contributed Library Questions
•
3 years ago
I was having success so far, importing svg's into Processing using Geomerative, but have run aground.
suddenly leads to:
The funny thing is that this happened AFTER I opened a SVG that was exported by a GIS program in Illustrator, cleaned it up (removed fills) and saved it again as SVG 1.0. Before this, it loaded fine.
Previously, one of the files that came directly from the GIS program immediately throwed this exact same error, and I solved this by doing exactly the same as what now causes it: editing it in Illustrator, removing fills and resaving it.
I'm at a loss here.
- RShape grp = RG.loadShape(filepath);
suddenly leads to:
- processing.app.debug.RunnerException: ArrayIndexOutOfBoundsException: -1
- at processing.app.Sketch.placeException(Sketch.java:1565)
- at processing.app.debug.Runner.findException(Runner.java:568)
- at processing.app.debug.Runner.reportException(Runner.java:543)
- at processing.app.debug.Runner.exception(Runner.java:498)
- at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
- at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
- at processing.app.debug.EventThread.run(EventThread.java:89)
- Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: -1
- at geomerative.RSVG.getPolyline(RSVG.java:473)
- at geomerative.RSVG.elemToPolyline(RSVG.java:338)
- at geomerative.RSVG.elemToPolygon(RSVG.java:350)
- at geomerative.RSVG.elemToCompositeShape(RSVG.java:240)
- at geomerative.RSVG.elemToCompositeShape(RSVG.java:234)
- at geomerative.RSVG.elemToCompositeShape(RSVG.java:234)
- at geomerative.RSVG.elemToCompositeShape(RSVG.java:234)
- at geomerative.RSVG.toShape(RSVG.java:63)
- at geomerative.RG.loadShape(RG.java:242)
- at palestine_svg.loadMap(palestine_svg.java:228)
- at palestine_svg.setup(palestine_svg.java:70)
- at processing.core.PApplet.handleDraw(PApplet.java:1571)
- at processing.core.PApplet.run(PApplet.java:1496)
- at java.lang.Thread.run(Thread.java:637)
The funny thing is that this happened AFTER I opened a SVG that was exported by a GIS program in Illustrator, cleaned it up (removed fills) and saved it again as SVG 1.0. Before this, it loaded fine.
Previously, one of the files that came directly from the GIS program immediately throwed this exact same error, and I solved this by doing exactly the same as what now causes it: editing it in Illustrator, removing fills and resaving it.
I'm at a loss here.
1