Hi Jody:
According to your last email....
Formerly, I suppose the projection of the current map was "forced" into the 
shapefile.
If this is just a bug, i believe that the idea of choosing a default projection 
if the file does not count with a prj file will be considered.

A first analysis:
Well, if we review the code:
I put a break point in 
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.java 
in line 223: ReferencedEnvelope validBounds = validateBounds(bounds, monitor, 
getContext());
It calls validateBounds function and in line 395: ReferencedEnvelope 
layerBounds = context.getLayer().getBounds(new SubProgressMonitor(monitor, 0), 
viewportCRS); is where the problem starts:

When the file is being asked for bounds:
1. In: net.refractions.udig.project.internal.impl.LayerImpl.java
        line 1857:  tmp = info.getBounds();
2. And then in: 
net.refractions.udig.project.internal.impl.GeoResourceInfoInterceptor.java
line 85: env = JTS.transform(tmp, 
CRS.findMathTransform(tmp.getCoordinateReferenceSystem(), getCRS()));
After that, an error message is being printed in the console...


Magna

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to