Changeset 11400 in osm for applications/editors/josm/plugins/wmsplugin/src
- Timestamp:
- 2008-10-22T16:38:56+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin/src/wmsplugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java
r10684 r11400 63 63 protected URL getURL(double w, double s,double e,double n, 64 64 int wi, int ht) throws MalformedURLException { 65 String str = baseURL + "&bbox=" 65 String str = baseURL; 66 if(!str.endsWith("?")) 67 str += "&"; 68 str += "bbox=" 66 69 + latLonFormat.format(w) + "," 67 70 + latLonFormat.format(s) + "," -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/YAHOOGrabber.java
r11398 r11400 6 6 import java.awt.Image; 7 7 import java.net.URL; 8 import java.io.IOException; 9 import java.text.MessageFormat; 8 10 import java.util.ArrayList; 9 import java.io.IOException;10 11 11 import java.util.StringTokenizer; 12 12 … … 32 32 protected BufferedImage grab(URL url) throws IOException { 33 33 ArrayList<String> cmdParams = new ArrayList<String>(); 34 35 StringTokenizer st = new StringTokenizer(tr(browserCmd, url.toString())); 36 while( st.hasMoreTokens() ) 34 String urlstring = url.toExternalForm(); 35 // work around a problem in URL removing 2 slashes 36 if(!urlstring.startsWith("file:///")) 37 urlstring = urlstring.replaceFirst("file:", "file://"); 38 StringTokenizer st = new StringTokenizer(MessageFormat.format(browserCmd, urlstring)); 39 while( st.hasMoreTokens() ) 37 40 cmdParams.add(st.nextToken()); 38 41
Note:
See TracChangeset
for help on using the changeset viewer.