Revision 23730 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/ViewPort.java
ViewPort.java | ||
---|---|---|
555 | 555 |
double dist = -1; |
556 | 556 |
dist = pt1.distance(pt2); |
557 | 557 |
|
558 |
if ((proj != null) && !(proj instanceof CSUTM)) {
|
|
558 |
if ((proj != null) && !(proj.isProjected())) {
|
|
559 | 559 |
dist = new GeoCalc(proj).distanceVincenty(proj.toGeo(pt1), |
560 | 560 |
proj.toGeo(pt2)); |
561 | 561 |
return dist; |
Also available in: Unified diff