I think the rendering code also is willing to "force" the CRS specified as part of the Layer (there was some horrible code that did this last time I did a code review).
GeoServer could also provide a "default" CRS to use in this case. Jody > Hi all, > on Geoserver we're having issues with people with missing > or broken CRS definitions that make the StreamingRenderer choke. > The issue boils down to geometric attribute types not having > CRS info at all (null CRS). How we should handle these? > My take would be to spit out a warning, and then don't try > to reproject them, instead of breaking with a null pointer > exception. > Does anyone have different opinions? > Cheers > Andrea > > PS: the typical exception you'll get is: > > java.lang.NullPointerException > at > org.geotools.referencing.operation.BufferedCoordinateOperationFactory$CRSPair.<init>(BufferedCoordinateOperationFactory.java:83) > at > org.geotools.referencing.operation.BufferedCoordinateOperationFactory.createOperation(BufferedCoordinateOperationFactory.java:245) > at > org.geotools.renderer.lite.StreamingRenderer.getMathTransform(StreamingRenderer.java:2053) > at > org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1613) > at > org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1530) > at > org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1472) > at > org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:687) > at > org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:430) > at > org.vfny.geoserver.wms.responses.DefaultRasterMapProducer.produceMap(DefaultRasterMapProducer.java:269) > > ... > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
