Revision: 6506 http://sourceforge.net/p/jump-pilot/code/6506 Author: edso Date: 2020-09-21 13:32:21 +0000 (Mon, 21 Sep 2020) Log Message: ----------- added some logging to find a nifty error on linux
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/workbench/imagery/geoimg/GeoRaster.java Modified: core/trunk/src/com/vividsolutions/jump/workbench/imagery/geoimg/GeoRaster.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/workbench/imagery/geoimg/GeoRaster.java 2020-09-21 13:30:06 UTC (rev 6505) +++ core/trunk/src/com/vividsolutions/jump/workbench/imagery/geoimg/GeoRaster.java 2020-09-21 13:32:21 UTC (rev 6506) @@ -145,13 +145,17 @@ */ protected void fetchRaster() throws ReferencedImageException { // we accept either URI strings or string file paths + Logger.trace("imageFileLocation is -> "+imageFileLocation); try { uri = new URI(imageFileLocation); + if (!uri.isAbsolute()) // means it has a scheme:// + throw new URISyntaxException(imageFileLocation, "missing scheme://"); } catch (URISyntaxException e) { Logger.debug("not an URI, will treat as path -> "+imageFileLocation, e); File file = new File(imageFileLocation); uri = file.toURI(); } + Logger.trace("uri is now -> "+uri.toString()); // check availability early if (!new File(uri).canRead()) throw new ReferencedImageException("cannot read file -> "+imageFileLocation); _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel