Adrian Custer a écrit :
> I'd like to be able to display countries.shp in a Mercator projection. I
> think I've created a correct ProjectionCRS but jmappane bails during the
> first repaint. The critical issue is that the data go to the poles where
> the Mercator is undefined. I thought that 
>   context's areaOfInterest
> was the critical element to limit the data to a valid range. The file
> attached bails in the first rendering pass. 
> 
> So who is responsible: me, the jmappane, the renderer, the reprojection
> system? 

I would said the renderer.

There is a reprojection system feature which may be of some help. It was used 
by J2D-Renderer (if I 
remember right), but I'm not sure if it is used by StreamingRenderer. The 
feature is that: if a 
projection fails with a TransformException, the reprojection system does not 
stop at the first 
coordinates failing. Instead, it continue to reproject all other coordinates, 
and the one that 
failed are set to Double.NaN. The exception is thrown only after all 
coordinates have been 
reprojected. This means that a renderer could catch the TransformException, log 
it to some logger 
(if they wish) and still display the data, keepind in mind that at least one 
point will be set to 
Double.NaN in the reprojected data.

        Martin.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to