Revision 15555
trunk/extensions/extWFS2/src/com/iver/cit/gvsig/fmap/layers/FLyrWFSFactory.java | ||
---|---|---|
95 | 95 |
BaseView activeView = |
96 | 96 |
(BaseView) PluginServices.getMDIManager().getActiveWindow(); |
97 | 97 |
//The SRS original |
98 |
IProjection projection = CRSFactory.getCRS(wfsLayer.getSrs()); |
|
98 |
IProjection projection = null; |
|
99 |
try{ |
|
100 |
projection = CRSFactory.getCRS(wfsLayer.getSrs()); |
|
101 |
}catch(Exception e){ |
|
102 |
projection = null; |
|
103 |
} |
|
99 | 104 |
wfsLayer.setProjection(projection); |
100 | 105 |
adapter.setProjection(projection); |
101 | 106 |
if (loadLayer){ |
Also available in: Unified diff