Revision 47430 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/MapContext.java
MapContext.java | ||
---|---|---|
1038 | 1038 |
* @see #reProject(ICoordTrans) |
1039 | 1039 |
*/ |
1040 | 1040 |
public IProjection getProjection() { |
1041 |
return getViewPort().getProjection(); |
|
1041 |
ViewPort vp = this.getViewPort(); |
|
1042 |
if( vp == null ) { |
|
1043 |
return null; |
|
1044 |
} |
|
1045 |
return vp.getProjection(); |
|
1042 | 1046 |
} |
1043 | 1047 |
|
1044 | 1048 |
/** |
Also available in: Unified diff