We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Candy SVG Import and OpenStreetMap
Page Index Toggle Pages: 1
Candy SVG Import and OpenStreetMap (Read 758 times)
Candy SVG Import and OpenStreetMap
May 29th, 2008, 2:49pm
 
Hi all,

I want to create some maps for print and was planning on using an exported SVG map from OpenStreetMap (http://openstreetmap.org/) as the base. This does not seem to work. I thought I'd report it here in the hopes that someone might know of a solution.

Here's my code:

Code:

import processing.candy.*;
import processing.xml.*;

SVG myMap;

void setup() {
myMap = new SVG(this, "map.svg");
}

void draw() {
myMap.draw(0, 0);
}


And the output:

Code:

Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space

at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)

at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:575)

at java.lang.StringBuffer.append(StringBuffer.java:321)

at processing.xml.XMLElement.scanString(XMLElement.java:2303)

at processing.xml.XMLElement.scanElement(XMLElement.java:2576)

at processing.xml.XMLElement.scanElement(XMLElement.java:2639)

at processing.xml.XMLElement.scanElement(XMLElement.java:2639)

at processing.xml.XMLElement.scanElement(XMLElement.java:2639)

at processing.xml.XMLElement.parseFromReader(XMLElement.java:1652)

at processing.xml.XMLElement.parseFromReader(XMLElement.java:1598)

at processing.xml.XMLElement.<init>(XMLElement.java:485)

at processing.candy.SVG.<init>(SVG.java:158)

at Temporary_6169_9255.setup(Temporary_6169_9255.java:7)
Re: Candy SVG Import and OpenStreetMap
Reply #1 - May 29th, 2008, 5:18pm
 
http://processing.org/reference/troubleshooting/index.html#memory
Re: Candy SVG Import and OpenStreetMap
Reply #2 - May 30th, 2008, 9:27am
 
D'oh. Should've payed more attention to those error messages. Thanks Ben, I'll see if I can get it to work.
Page Index Toggle Pages: 1