na0607 / jgrasstools

Automatically exported from code.google.com/p/jgrasstools
0 stars 0 forks source link

IllegalArgumentException when zoomed in on Gt-Swt demo #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've downloaded the Zip and run it via 'Launch an Eclipse application'.  I then 
loaded the countries.shp and cities.shp.

The following has happened a couple of times.  I've zoomed in on the map, but 
the map hasn't rendered.  The console shows:

Feb 21, 2011 10:36:39 AM org.geotools.renderer.lite.StreamingRenderer 
fireErrorEvent
SEVERE: The scale denominator must be positive.
java.lang.IllegalArgumentException: The scale denominator must be positive.
    at org.geotools.renderer.lite.RendererUtilities.calculatePixelsPerMeterRatio(RendererUtilities.java:414)
    at org.geotools.renderer.lite.StreamingRenderer.applyUnitRescale(StreamingRenderer.java:1944)
    at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1897)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:764)
    at org.geotools.swt.SwtMapPane.handleEvent(SwtMapPane.java:1098)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
    at org.eclipse.swt.widgets.Control.drawWidget(Control.java:1131)
    at org.eclipse.swt.widgets.Canvas.drawWidget(Canvas.java:134)
    at org.eclipse.swt.widgets.Widget.drawRect(Widget.java:685)
    at org.eclipse.swt.widgets.Canvas.drawRect(Canvas.java:129)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4958)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:4483)
    at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4739)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
    at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:85)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3271)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.geotools.swt.GtSwtApplication.start(GtSwtApplication.java:36)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

SwtMapPane.java isn't in the dist, so I can't look at what's causing the error.

Original issue reported on code.google.com by i...@planetmayo.com on 21 Feb 2011 at 10:43

GoogleCodeExporter commented 8 years ago
I am currently not able to reproduce the problem, even using the same layers as 
you did. I do not get any error. I will try to look into what it might be. If 
you have additional info, they are welcome.

Original comment by andrea.a...@gmail.com on 21 Feb 2011 at 12:08

GoogleCodeExporter commented 8 years ago

Original comment by andrea.a...@gmail.com on 21 Feb 2011 at 12:09

GoogleCodeExporter commented 8 years ago

Original comment by andrea.a...@gmail.com on 29 Apr 2011 at 8:33