Revision 39282 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/CrossesGeometryEvaluator.java

View differences:

CrossesGeometryEvaluator.java
39 39
		this.geometry = geometry;
40 40
		this.geometryTrans = geometry.cloneGeometry();
41 41
		this.srs = projection.getAbrev();
42
		ICoordTrans ct = projection.getCT(fad.getSRS());
42
		
43
		ICoordTrans ct = null;
44
		IProjection fad_proj = fad.getSRS();
45
		
46
		if (fad_proj != null && !fad_proj.equals(projection)) {
47
		    ct = projection.getCT(fad_proj);
48
		}
49

  
43 50
		if (ct != null) {
44 51
			geometryTrans.reProject(ct);
45 52
		}

Also available in: Unified diff