Revision: 6623 http://sourceforge.net/p/jump-pilot/code/6623 Author: michaudm Date: 2020-11-15 09:42:42 +0000 (Sun, 15 Nov 2020) Log Message: ----------- fix #512 about georeferencing (introduced by r6523)
Modified Paths: -------------- core/trunk/ChangeLog core/trunk/src/org/openjump/core/rasterimage/AddRasterImageLayerWizard.java Modified: core/trunk/ChangeLog =================================================================== --- core/trunk/ChangeLog 2020-11-11 22:01:40 UTC (rev 6622) +++ core/trunk/ChangeLog 2020-11-15 09:42:42 UTC (rev 6623) @@ -4,10 +4,13 @@ # 3. be concise but convey the change in a way that ordinary users understand #<-------------------------------- 80 chars ----------------------------------> +2020-11-15 mmichaud + * fix #512 about georeferencing (introduced by r6523) + 2020-10-25 Giuseppe Aruta - * Updated CadTool plugin to ver. 1.0: activated Add and remove area plugin - from Kosmo to test complementary edition on polygons touching the edited - one. Minor corrections of bugs on the block panel + * Updated CadTool plugin to ver. 1.0: activated Add and remove area plugin + from Kosmo to test complementary edition on polygons touching the edited + one. Minor corrections of bugs on the block panel 2020-10-25 mmichaud * fix #508 : java2xml with setInteriorBorder/hasInteriorBorder property Modified: core/trunk/src/org/openjump/core/rasterimage/AddRasterImageLayerWizard.java =================================================================== --- core/trunk/src/org/openjump/core/rasterimage/AddRasterImageLayerWizard.java 2020-11-11 22:01:40 UTC (rev 6622) +++ core/trunk/src/org/openjump/core/rasterimage/AddRasterImageLayerWizard.java 2020-11-15 09:42:42 UTC (rev 6623) @@ -295,8 +295,11 @@ if (fileName.toLowerCase().endsWith(".tif") || fileName.toLowerCase().endsWith(".tiff")) { // logger.printDebug("checking for GeoTIFF"); - - TiffUtilsV2.getEnvelope(new File(fileName)); + env = TiffUtilsV2.getEnvelope(new File(fileName)); + // TiffUtilsV2 returns an enveloppe even if no geotags are found + // If env = image size, image is not considered as georeferenced + isGeoTiff = env.getWidth() != imageDimensions.getX() || + env.getHeight() != imageDimensions.getY(); // Coordinate tiePoint = null, pixelOffset = null, pixelScale = null; // double[] doubles = null; _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel