Hi there,
I've been getting this exception caused by the following line:
context.addLayer(features, style);
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:323)
at
org.geotools.renderer.LegendIconMaker.reallyMakeLegendIcon(LegendIconMaker.java:292)
at
org.geotools.renderer.LegendIconMaker.makeLegendIcon(LegendIconMaker.java:170)
at
org.geotools.renderer.LegendIconMaker.makeLegendIcon(LegendIconMaker.java:160)
at
org.geotools.renderer.LegendIconMaker.makeLegendIcon(LegendIconMaker.java:150)
at
org.geotools.renderer.LegendIconMaker.makeLegendIcon(LegendIconMaker.java:155)
at org.geotools.gui.swing.Legend.constructRuleNote(Legend.java:244)
at org.geotools.gui.swing.Legend.contructLayer(Legend.java:219)
at
org.geotools.gui.swing.Legend.contructTreeModelAndLayerList(Legend.java:173)
at org.geotools.gui.swing.Legend.contextChanged(Legend.java:371)
at org.geotools.gui.swing.Legend.layerAdded(Legend.java:407)
at
org.geotools.map.DefaultMapContext.fireMapLayerListListenerLayerAdded(DefaultMapContext.java:843)
at
org.geotools.map.DefaultMapContext.addLayer(DefaultMapContext.java:195)
at
org.geotools.map.DefaultMapContext.addLayer(DefaultMapContext.java:209)
at
ie.nuim.cs.mapgen.gui.TestDocking$3.doNonUILogic(TestDocking.java:320)
at
org.geotools.gui.swing.worker.BlockingSwingWorker.construct(BlockingSwingWorker.java:123)
at
org.geotools.gui.swing.worker.BlockingSwingWorker.access$000(BlockingSwingWorker.java:33)
at
org.geotools.gui.swing.worker.BlockingSwingWorker$2.run(BlockingSwingWorker.java:78)
at java.lang.Thread.run(Thread.java:595)
I've checked the code over and it seems fine. It's taken from the shape file
viewer (with map legend) demo. Can anybody help here?
Thanks,
Sean
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users