IAE in StreamingRenderer.paint() if mapArea has no CRS
------------------------------------------------------
Key: GEOT-2352
URL: http://jira.codehaus.org/browse/GEOT-2352
Project: GeoTools
Issue Type: Bug
Affects Versions: 2.5.3
Reporter: Norman Fomferra
Reproduce:
(1) If the renderer is initialized with a MapContext which has a MapLayer
whose features come from a DefaultFeatureCollection (fc)
(2) ReferencedEnvelope mapArea = fc.getBounds(); (this produces an envelop with
null CRS, see GEOT-2351)
(3) Call renderer.paint(graphics, paintArea, mapArea);
20.02.2009 10:29:22
org.geotools.renderer.lite.StreamingRenderer$RenderableFeature getShape
WARNUNG: Argument "targetCRS" should not be null.
java.lang.IllegalArgumentException: Argument "targetCRS" should not be null.
at
org.geotools.referencing.operation.AbstractCoordinateOperationFactory.ensureNonNull(AbstractCoordinateOperationFactory.java:732)
at
org.geotools.referencing.operation.BufferedCoordinateOperationFactory.createOperation(BufferedCoordinateOperationFactory.java:248)
at org.geotools.referencing.CRS.findMathTransform(CRS.java:1001)
at
org.geotools.renderer.lite.StreamingRenderer$RenderableFeature.getShape(StreamingRenderer.java:2282)
at
org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1732)
at
org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1667)
at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1609)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:642)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:474)
--
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
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel