[Openstreetmap] Re: Where is my street map?
SteveC
steve at fractalus.com
Tue May 3 09:47:31 BST 2005
* @ 02/05/05 10:32:37 PM pere at hungry.com wrote:
> [Steve Coast]
> > No, I need to write a bit of code so the lines get displayed thats
> > all.
>
> Ah. I'll try to find time to look at the code, in case I'm able to
> fix it.
you can see that org/openstreetmap/test stuff basically copies the line
and point layer stuff from an old applet version, except it talks
directly to osmServerHandler, whilst the applet brings up an xmlrpc link
to get the data.
what needs to be done is move the org.openstreetmap.test stuff to
somewhere sensible then create a subclass of OM Layer (see
osmLineLayer.java) which you subclass once to plug in to the applet, or
again to plug in to the static viewer.
I just havn't had time...
> I uploaded one month of the large data set, and used it to draw a few
> road lines in Oslo. Then I started to get OutOfMemory errors, and
> deleted the data set again. And a bit after this, the map drawing
> stopped working. :/
yeah the outofmemory stuff killed it. That is easy to fix too, but
depends on the stuff above. Instead of grabbing a whole Vector of
OMCirc's (or whatever) into memory just reuse the same one, .generate()
and paint it...
have fun,
SteveC steve at fractalus.com http://www.fractalus.com/steve/
More information about the talk
mailing list