Revision 11020

View differences:

branches/v10/extensions/extWFS2/src/com/iver/cit/gvsig/fmap/layers/FLyrWFSFactory.java
59 59
 *
60 60
 * $Id$
61 61
 * $Log$
62
 * Revision 1.2.2.4  2007-01-04 10:06:25  jcampos
62
 * Revision 1.2.2.5  2007-04-03 10:24:25  jorpiell
63
 * La transformaci?n de coordenadas que se usa para reproyactar no debe ponerse en la capa a pi?on fijo.
64
 *
65
 * Revision 1.2.2.4  2007/01/04 10:06:25  jcampos
63 66
 * Upgrade new version
64 67
 *
65 68
 * Revision 1.2.2.3  2006/11/17 11:28:45  ppiqueras
......
97 100
		BaseView activeView = 
98 101
			(BaseView) PluginServices.getMDIManager().getActiveWindow();
99 102
		wfsLayer.setProjection(CRSFactory.getCRS(wfsLayer.getSrs()));
100
		IProjection wfsProjection = CRSFactory.getCRS(wfsLayer.getSrs());
101
		IProjection layerProjection = activeView.getMapControl().getProjection(); 
102
		if (wfsProjection != null){
103
			if (!(wfsProjection.equals(layerProjection))){
104
				layer.setCoordTrans(wfsProjection.getCT(layerProjection));
105
			}
106
		}
107 103
		if (loadLayer){
108 104
			try {
109 105
				wfsLayer.load();

Also available in: Unified diff