Hi,
I have got this error:
28.10.2011 0:09:57 org.geotools.renderer.lite.StreamingRenderer fireErrorEvent
SEVERE: null
java.lang.NullPointerException
at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1908)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:798)
at org.geotools.swing.RenderingTask.call(RenderingTask.java:106)
at org.geotools.swing.RenderingTask.call(RenderingTask.java:41)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
While I have trying to render empty features collection with point style from
tutorial (http://docs.geotools.org/latest/userguide/tutorial/map/style.html)
with 8-M2 version of geotols.
Adding features I have done through this code:
this.mapContent.addLayer(new FeatureLayer(collection,
styleForBox));
this.mapPane = new JMapPane(mapContent);
When I add one feature to collection (thus it has more than zero features), it
works.
Have a nice day,
LuVar
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel