Changeset 6774 in osm for applications/editors/josm/plugins/wmsplugin/src
- Timestamp:
- 2008-02-04T15:10:54+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSImage.java
r5319 r6774 17 17 import java.net.MalformedURLException; 18 18 import java.net.URL; 19 import java.text.DecimalFormat; 20 import java.text.NumberFormat; 19 21 20 22 import javax.imageio.ImageIO; … … 119 121 } 120 122 123 public static NumberFormat latLonFormat = new DecimalFormat("###0.0000000"); 124 121 125 protected URL doGetURL(double w,double s,double e,double n, int wi, 122 126 int ht) throws MalformedURLException 123 127 { 124 String str = constURL + "&bbox=" + w +"," + s + ","+ 125 e+","+n + "&width=" + wi + "&height=" + ht; 128 String str = constURL + "&bbox=" 129 + latLonFormat.format(w) + "," 130 + latLonFormat.format(s) + "," 131 + latLonFormat.format(e) + "," 132 + latLonFormat.format(n) 133 + "&width=" + wi + "&height=" + ht; 126 134 return new URL(str.replace(" ", "%20")); 127 135 }
Note:
See TracChangeset
for help on using the changeset viewer.