0001-I-some-cases-the-projection-of-the-layer-is-not-corr.patch
| libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/DefaultStrategy.java | ||
|---|---|---|
| 377 | 377 | |
| 378 | 378 |
if (visitor.start(capa)) {
|
| 379 | 379 |
ReadableVectorial va = ((SingleLayer) capa).getSource(); |
| 380 |
ICoordTrans ct = getCapa().getCoordTrans();
|
|
| 380 |
ICoordTrans ct = capa.getCoordTrans();
|
|
| 381 | 381 |
va.start(); |
| 382 | 382 |
for (int i = 0; i < va.getShapeCount(); i++) {
|
| 383 | 383 |
if(cancel != null){
|
| ... | ... | |
| 389 | 389 |
if (geom == null) {
|
| 390 | 390 |
continue; |
| 391 | 391 |
} |
| 392 |
if (ct != null) {
|
|
| 392 |
if ((ct != null) && (capa.getProjection() != null)){
|
|
| 393 | 393 |
if (!capa.getProjection().getAbrev().equals(capa.getMapContext().getViewPort().getProjection().getAbrev())){
|
| 394 | 394 |
geom.reProject(ct); |
| 395 | 395 |
} |
| 396 |
- |
|