[OSM-talk] Landsat and waypoints in JOSM

Graham Wall g.hamwall at gmail.com
Tue Sep 26 16:20:29 BST 2006


On 26/09/06, Nick Whitelegg <nick at hogweed.org> wrote:
>
> I have managed to get Landsat to display in JOSM. Following a discussion over
> the New Forest weekend, the approach I have taken is to allow the user to
> download Landsat for the currently-displayed area, rather than a continuous
> grab from the WMS server. Hence I have implemented a new layer, LandsatLayer.
>

Great work again Nick. Can't wait to see it in action. I've been
trying out the last josm-custom with map features and am finding it a
big improvement. I did find a bug though. It seems to hang when it
tries to render an incomplete area. e.g. only downloading half a lake:


download: http://www.openstreetmap.org/api/0.3/map?bbox=-2.629973842637194,51.33837122786385,-2.5918
960669671365,51.36490658696667
got return: 200
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.drawWayAsArea(Unknown
Source)
        at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.visit(Unknown
Source)
        at org.openstreetmap.josm.data.osm.Way.visit(Unknown Source)
        at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(Unknown Source)
        at org.openstreetmap.josm.gui.MapView.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
        at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
        at javax.swing.JComponent._paintImmediately(Unknown Source)
        at javax.swing.JComponent.paintImmediately(Unknown Source)
        at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.drawWayAsArea(Unknown
Source)
        at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.visit(Unknown
Source)
        at org.openstreetmap.josm.data.osm.Way.visit(Unknown Source)
        at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(Unknown Source)
        at org.openstreetmap.josm.gui.MapView.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JLayeredPane.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
        at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
        at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
        at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
        at java.awt.Container.paint(Unknown Source)
        at sun.awt.RepaintArea.paintComponent(Unknown Source)
        at sun.awt.RepaintArea.paint(Unknown Source)
        at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)




More information about the talk mailing list