Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] Created: (UDIG-1282) Bug in scale computation

Bug in scale computation
------------------------

                 Key: UDIG-1282
                 URL: http://jira.codehaus.org/browse/UDIG-1282
             Project: uDIG
          Issue Type: Bug
          Components: ui
    Affects Versions: UDIG 1.1.RC10, UDIG 1.2
            Reporter: Emmanuel AUVINET
            Priority: Minor


There is some bug in scale computation :
{quote}public class ViewportModelImpl ...{
...
 public void setScale( double scaleDenominator ) {
...

   _// in all version_
   cs[0] = Math.max(getBounds().getMinX(), getMap().getBounds(null).getMinX());
   {color:red}// Replace
   cs[1] = Math.max(getBounds().getMinX(), getMap().getBounds(null).getMinX()); {color}  
      {color:green}// by :
    cs[1] = Math.max(getBounds().getMinY(), getMap().getBounds(null).getMinY());{color}  
...
   _// in 1.2 only_
    gc.setDirection(45, groundDistance);
   {color:red}// Replace
  Point2D latLongPosition = gc.getStartingGeographicPoint(); {color} 
       {color:green}// by :
   Point2D latLongPosition = gc.getDestinationGeographicPoint();{color}  
...
}
...
} {quote}

Another bug is present in MapEditor ScaleRatioLabel

{quote}
class ScaleRatioLabel ...{
...
   private void go() {
    try{
    {color:red}// Replace :
    double d=Double.parseDouble(newScale);{color}
    {color:green}// by this to parse entry with spaces:
     double d = nf.parse(newScale.replace(" ","")).doubleValue();{color}
...
   }
...
}
{quote}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Back to the top