Brought over long/latitude fix from "rounding_line_visible_hack" branch.

main
fjc40 8 years ago
parent b886cb426f
commit 0d2be85d17

@ -142,7 +142,7 @@ public class CompoundMark extends XMLCompoundMark{
/** /**
* Used to find how far apart the marks that make up this gate are * Used to find how far apart the marks that make up this gate are
* If this compound mark is only one point return base length of 250m * If this compound mark is only one point return base length of 400m
* @return the acceptable distance to round a mark * @return the acceptable distance to round a mark
*/ */
public double getRoundingDistance(){ public double getRoundingDistance(){
@ -187,7 +187,7 @@ public class CompoundMark extends XMLCompoundMark{
} }
//finds the mark furthest west and east //finds the mark furthest west and east
if(this.getMark1Position().getLatitude() > this.getMark2Position().getLatitude()){ if(this.getMark1Position().getLongitude() > this.getMark2Position().getLongitude()){
westMostMark = this.mark1; westMostMark = this.mark1;
eastMostMark = this.mark2; eastMostMark = this.mark2;
}else{ }else{
@ -196,7 +196,7 @@ public class CompoundMark extends XMLCompoundMark{
} }
//finds the mark furthest north and south //finds the mark furthest north and south
if(this.getMark1Position().getLongitude() > this.getMark2Position().getLongitude()){ if(this.getMark1Position().getLatitude() > this.getMark2Position().getLatitude()){
northMostMark = this.mark1; northMostMark = this.mark1;
southMostMark = this.mark2; southMostMark = this.mark2;
}else{ }else{

Loading…
Cancel
Save