Revision 735
2.1/branches/org.gvsig.view3d_vector_and_extrusion_2.3/org.gvsig.view3d/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/data/GvSIGLayerDataRaster.java | ||
---|---|---|
370 | 370 |
|
371 | 371 |
try { |
372 | 372 |
|
373 |
IProjection projection = |
|
374 |
mapControl3D.getMapContext().getProjection(); |
|
373 |
IProjection projection = layer.getProjection(); |
|
375 | 374 |
ICoordTrans layerCoordTrans = layer.getCoordTrans(); |
376 | 375 |
ICoordTrans ct; |
377 | 376 |
if(layerCoordTrans != null){ |
2.1/branches/org.gvsig.view3d_vector_and_extrusion_2.3/org.gvsig.view3d/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/layers/DefaultLayerConverter.java | ||
---|---|---|
95 | 95 |
projectionLayer = mapControl.getMapContext().getProjection(); |
96 | 96 |
} |
97 | 97 |
|
98 |
if (!(layer instanceof FLyrVect) && !projectionLayer.equals(CRSFactory.getCRS("ESPG:4326"))) {
|
|
98 |
if (layer.getCoordTrans() != null) {
|
|
99 | 99 |
|
100 | 100 |
// Create new layer and configure it to be drawn projected on the fly |
101 | 101 |
try { |
2.1/branches/org.gvsig.view3d_vector_and_extrusion_2.3/org.gvsig.view3d/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/layers/loaders/AbstractRasterizedLayerLoaderFactory.java | ||
---|---|---|
192 | 192 |
|
193 | 193 |
private Sector getSector(FLayer layer, IProjection projection) throws DataException { |
194 | 194 |
|
195 |
ICoordTrans ct; |
|
196 |
if(layer.getCoordTrans()!=null){ |
|
197 |
ct = layer.getCoordTrans().getPDest().getCT(CRSFactory.getCRS("EPSG:4326")); |
|
198 |
} else { |
|
199 |
ct = projection.getCT(CRSFactory.getCRS("EPSG:4326")); |
|
195 |
ICoordTrans ct = null; |
|
196 |
IProjection epsg4326 = CRSFactory.getCRS("EPSG:4326"); |
|
197 |
if(!layer.getProjection().equals(epsg4326)) { |
|
198 |
if (layer.getCoordTrans() != null) { |
|
199 |
ct = layer.getCoordTrans().getPDest().getCT(epsg4326); |
|
200 |
} else { |
|
201 |
ct = projection.getCT(epsg4326); |
|
202 |
} |
|
200 | 203 |
} |
201 | 204 |
Point2D p1 = null; |
202 | 205 |
Point2D p2 = null; |
Also available in: Unified diff