From: Michael B. (JIRA) <ji...@co...> - 2011-04-29 12:39:28
|
Displaying a GridCoverage2D in JMapPane causes an error ------------------------------------------------------- Key: GEOT-3555 URL: http://jira.codehaus.org/browse/GEOT-3555 Project: GeoTools Issue Type: Bug Affects Versions: 8.0-M0, 2.7.0 Reporter: Michael Bedward Assignee: Michael Bedward Fix For: 2.7.1, 8.0-M1 Reported by Mike O'Toole on the user list. Code such as this: MapContext map = new MapContext(); map.addLayer( myGridCoverage, myStyle ); JMapFrame.showMap(map); ...will provoke the following error: Error: 2011-04-28 16:09:54 SEVERE: org.geotools.feature.simple.SimpleFeatureImpl cannot be cast to org.geotools.coverage.grid.GridCoverage2D (StreamingRenderer.fireErrorEvent()) java.lang.ClassCastException: org.geotools.feature.simple.SimpleFeatureImpl cannot be cast to org.geotools.coverage.grid.GridCoverage2D org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2219) org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:2158) org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2014) org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1934) org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:766) org.geotools.swing.RenderingExecutor$Task.call(RenderingExecutor.java:149) org.geotools.swing.RenderingExecutor$Task.call(RenderingExecutor.java:105) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) java.util.concurrent.FutureTask.run(FutureTask.java:166) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) java.lang.Thread.run(Thread.java:636) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |