World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-22-2010, 01:10 PM   #11
Baptiste13
Guest
 
Posts: n/a
Default

Hello,

first, thanks for the code. I think I found why it may not be quicker with SurfacePolylines: a new object is created for each segment. The problem is in 'visit', lines 352 to 366:

Code:
            SurfacePolylines pl = getSurfacePolylines(highway);
            CompoundVecBuffer buf;
            if (pl == null) {
                buf = new CompoundVecBuffer(2, new BufferFactory.DoubleBufferFactory(), 10, 10);
            } else {
                buf = pl.getBuffer();
            }
            buf.appendSubBuffer(vecbuffer);

            if (pl == null) {
                pl = new SurfacePolylines(buf);        <----
                pl.setAttributes(attributes);
                osmL.addRenderable(pl);
            }
            return true;
Setting the local variable 'pl' is not sufficient to set the appropriate outer class field.
If I get time to fix this, I'll submit the new code,

Cheers,
Baptiste
  Reply With Quote
 

Tags
layer, openstreetmap


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: My favorite Icons - Add Icons/Favorite canosso Add-ons & Scripts 26 03-02-2010 03:06 AM
WW1.3.2-Plugin: Layer Edit canosso Add-ons & Scripts 21 02-27-2010 04:37 AM
[Solved] How to add OpenStreetMap layer? linnuxxy Development Help 37 02-11-2010 05:36 PM
Layer Priority WWG Add-on & Script Development 3 12-08-2005 01:01 PM
GPX to Track and Layer, Waypoints to Layer canosso Add-ons & Scripts 14 03-05-2005 06:37 PM


All times are GMT +1. The time now is 12:14 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.