Ticket #6698: patch.diff
| File patch.diff, 5.2 KB (added by , 15 years ago) |
|---|
-
src/org/openstreetmap/josm/data/Version.java
### Eclipse Workspace Patch 1.0 #P JOSM
109 109 version = Integer.parseInt(value); 110 110 } catch(NumberFormatException e) { 111 111 version = 0; 112 System.err.println(tr("Warning: unexpected JOSM version number in revision file, value is ''{0}''", value));112 System.err.println(tr("Warning: Unexpected JOSM version number in revision file, value is ''{0}''", value)); 113 113 } 114 114 } else { 115 115 version = JOSM_UNKNOWN_VERSION; -
src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
88 88 dataSet = reader.parseOsm(progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false)); 89 89 } catch(Exception e) { 90 90 if (isCanceled()) { 91 System.out.println(tr(" Ignoring exception because download has been canceled. Exception was: {0}", e.toString()));91 System.out.println(tr("Warning: Ignoring exception because download has been canceled. Exception: {0}", e.toString())); 92 92 return; 93 93 } 94 94 if (e instanceof OsmTransferCanceledException) { -
src/org/openstreetmap/josm/actions/Map_Rectifier_WMSmenuAction.java
74 74 KeyEvent.VK_R, 75 75 Shortcut.GROUP_NONE), 76 76 true 77 );77 ); 78 78 79 79 // Add default services 80 80 services.add( 81 81 new RectifierService("Metacarta Map Rectifier", 82 82 "http://labs.metacarta.com/rectifier/", 83 83 "http://labs.metacarta.com/rectifier/wms.cgi?id=__s__&srs=EPSG:4326" 84 + "&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png&",85 // This matches more than the "classic" WMS link, so users can pretty much86 // copy any link as long as it includes the ID87 "labs\\.metacarta\\.com/(?:.*?)(?:/|=)([0-9]+)(?:\\?|/|\\.|$)",88 "^[0-9]+$")89 );84 + "&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png&", 85 // This matches more than the "classic" WMS link, so users can pretty much 86 // copy any link as long as it includes the ID 87 "labs\\.metacarta\\.com/(?:.*?)(?:/|=)([0-9]+)(?:\\?|/|\\.|$)", 88 "^[0-9]+$") 89 ); 90 90 services.add( 91 91 // TODO: Change all links to mapwarper.net once the project has moved. 92 92 // The RegEx already matches the new URL and old URLs will be forwarded … … 94 94 new RectifierService("Geothings Map Warper", 95 95 "http://warper.geothings.net/", 96 96 "http://warper.geothings.net/maps/wms/__s__?request=GetMap&version=1.1.1" 97 + "&styles=&format=image/png&srs=epsg:4326&exceptions=application/vnd.ogc.se_inimage&",98 // This matches more than the "classic" WMS link, so users can pretty much99 // copy any link as long as it includes the ID100 "(?:mapwarper\\.net|warper\\.geothings\\.net)/(?:.*?)/([0-9]+)(?:\\?|/|\\.|$)",101 "^[0-9]+$")102 );97 + "&styles=&format=image/png&srs=epsg:4326&exceptions=application/vnd.ogc.se_inimage&", 98 // This matches more than the "classic" WMS link, so users can pretty much 99 // copy any link as long as it includes the ID 100 "(?:mapwarper\\.net|warper\\.geothings\\.net)/(?:.*?)/([0-9]+)(?:\\?|/|\\.|$)", 101 "^[0-9]+$") 102 ); 103 103 104 104 // This service serves the purpose of "just this once" without forcing the user 105 105 // to commit the link to the preferences … … 207 207 208 208 // and display an error message. The while(true) ensures that the dialog pops up again 209 209 JOptionPane.showMessageDialog(Main.parent, 210 tr("Could n''t match the entered link or id to the selected service. Please try again."),210 tr("Could not match the entered link or id to the selected service. Please try again."), 211 211 tr("No valid WMS URL or id"), 212 212 JOptionPane.ERROR_MESSAGE); 213 213 diag.setVisible(true);
