Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/io/imagery
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/imagery
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r12279 r12620 15 15 import javax.xml.parsers.ParserConfigurationException; 16 16 17 import org.openstreetmap.josm.Main;18 17 import org.openstreetmap.josm.data.imagery.ImageryInfo; 19 18 import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryBounds; … … 24 23 import org.openstreetmap.josm.tools.JosmRuntimeException; 25 24 import org.openstreetmap.josm.tools.LanguageInfo; 25 import org.openstreetmap.josm.tools.Logging; 26 26 import org.openstreetmap.josm.tools.MultiMap; 27 27 import org.openstreetmap.josm.tools.Utils; … … 97 97 throw e; 98 98 } catch (ParserConfigurationException e) { 99 Main.error(e); // broken SAXException chaining99 Logging.error(e); // broken SAXException chaining 100 100 throw new SAXException(e); 101 101 } … … 219 219 atts.getValue("max-lon"), ","); 220 220 } catch (IllegalArgumentException e) { 221 Main.trace(e);221 Logging.trace(e); 222 222 break; 223 223 } … … 252 252 shape.addPoint(atts.getValue("lat"), atts.getValue("lon")); 253 253 } catch (IllegalArgumentException e) { 254 Main.trace(e);254 Logging.trace(e); 255 255 break; 256 256 } -
trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
r12557 r12620 25 25 import javax.xml.parsers.ParserConfigurationException; 26 26 27 import org.openstreetmap.josm.Main;28 27 import org.openstreetmap.josm.data.Bounds; 29 28 import org.openstreetmap.josm.data.imagery.ImageryInfo; … … 31 30 import org.openstreetmap.josm.tools.HttpClient; 32 31 import org.openstreetmap.josm.tools.HttpClient.Response; 32 import org.openstreetmap.josm.tools.Logging; 33 33 import org.openstreetmap.josm.tools.Utils; 34 34 import org.w3c.dom.Document; … … 223 223 serviceUrl = new URL(serviceUrlStr); 224 224 } catch (HeadlessException e) { 225 Main.warn(e);225 Logging.warn(e); 226 226 return; 227 227 } … … 229 229 final Response response = HttpClient.create(getCapabilitiesUrl).connect(); 230 230 final String incomingData = response.fetchContent(); 231 Main.debug("Server response to Capabilities request:");232 Main.debug(incomingData);231 Logging.debug("Server response to Capabilities request:"); 232 Logging.debug(incomingData); 233 233 234 234 if (response.getResponseCode() >= 400) { … … 239 239 DocumentBuilder builder = Utils.newSafeDOMBuilder(); 240 240 builder.setEntityResolver((publicId, systemId) -> { 241 Main.info("Ignoring DTD " + publicId + ", " + systemId);241 Logging.info("Ignoring DTD " + publicId + ", " + systemId); 242 242 return new InputSource(new StringReader("")); 243 243 }); … … 267 267 String baseURL = child.getAttribute("xlink:href"); 268 268 if (!baseURL.equals(serviceUrlStr)) { 269 Main.info("GetCapabilities specifies a different service URL: " + baseURL);269 Logging.info("GetCapabilities specifies a different service URL: " + baseURL); 270 270 serviceUrl = new URL(baseURL); 271 271 } … … 283 283 boolean isFormatSupported = isImageFormatSupported(format); 284 284 if (!isFormatSupported) { 285 Main.info("Skipping unsupported image format {0}", format);285 Logging.info("Skipping unsupported image format {0}", format); 286 286 } 287 287 return isFormatSupported;
Note:
See TracChangeset
for help on using the changeset viewer.