Revision: 5070 http://sourceforge.net/p/jump-pilot/code/5070 Author: ma15569 Date: 2016-10-10 07:35:28 +0000 (Mon, 10 Oct 2016) Log Message: ----------- Add Sextante Programming guide
Modified Paths: -------------- plug-ins/SextantePlugIn/.project plug-ins/SextantePlugIn/src/es/unex/sextante/openjump/core/OpenJUMPRasterLayer.java Added Paths: ----------- plug-ins/SextantePlugIn/programming-docs/ plug-ins/SextantePlugIn/programming-docs/ProgrammingGuide.pdf Modified: plug-ins/SextantePlugIn/.project =================================================================== --- plug-ins/SextantePlugIn/.project 2016-10-09 19:57:03 UTC (rev 5069) +++ plug-ins/SextantePlugIn/.project 2016-10-10 07:35:28 UTC (rev 5070) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <projectDescription> - <name>openjump_bindings</name> + <name>Sextante_OpenJUMP_source</name> <comment></comment> <projects> </projects> Added: plug-ins/SextantePlugIn/programming-docs/ProgrammingGuide.pdf =================================================================== (Binary files differ) Index: plug-ins/SextantePlugIn/programming-docs/ProgrammingGuide.pdf =================================================================== --- plug-ins/SextantePlugIn/programming-docs/ProgrammingGuide.pdf 2016-10-09 19:57:03 UTC (rev 5069) +++ plug-ins/SextantePlugIn/programming-docs/ProgrammingGuide.pdf 2016-10-10 07:35:28 UTC (rev 5070) Property changes on: plug-ins/SextantePlugIn/programming-docs/ProgrammingGuide.pdf ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Modified: plug-ins/SextantePlugIn/src/es/unex/sextante/openjump/core/OpenJUMPRasterLayer.java =================================================================== --- plug-ins/SextantePlugIn/src/es/unex/sextante/openjump/core/OpenJUMPRasterLayer.java 2016-10-09 19:57:03 UTC (rev 5069) +++ plug-ins/SextantePlugIn/src/es/unex/sextante/openjump/core/OpenJUMPRasterLayer.java 2016-10-10 07:35:28 UTC (rev 5070) @@ -378,26 +378,25 @@ final FileOutputStream tifOut = new FileOutputStream(m_sFilename); final TIFFEncodeParam param = new TIFFEncodeParam(); param.setCompression(TIFFEncodeParam.COMPRESSION_NONE); - TIFFField[] tiffFields = new TIFFField[2]; + TIFFField[] tiffFields = new TIFFField[3]; + // [Giuseppe Aruta 8 Oct. 2016] the following parameters come from + // RasterImageIO class + // and add cell size, nodata value and Tie point to the new created + // file. + // Cell size - - /* - * tiffFields[0] = new - * TIFFField(GeoTiffConstants.ModelPixelScaleTag, - * TIFFField.TIFF_DOUBLE, 2, new double[] { cellSize.cellSizeX, - * cellSize.cellSizeY }); - */ - + tiffFields[0] = new TIFFField(GeoTiffConstants.ModelPixelScaleTag, + TIFFField.TIFF_DOUBLE, 2, new double[] { + getLayerCellSize(), getLayerCellSize() }); // No data String noDataS = Double.toString(getNoDataValue()); byte[] bytes = noDataS.getBytes(); - tiffFields[0] = new TIFFField(TiffTags.TIFFTAG_GDAL_NODATA, + tiffFields[1] = new TIFFField(TiffTags.TIFFTAG_GDAL_NODATA, TIFFField.TIFF_BYTE, noDataS.length(), bytes); - // Tie point final Envelope envelope = m_Layer.getWholeImageEnvelope(); - tiffFields[1] = new TIFFField(GeoTiffConstants.ModelTiepointTag, + tiffFields[2] = new TIFFField(GeoTiffConstants.ModelTiepointTag, TIFFField.TIFF_DOUBLE, 6, new double[] { 0, 0, 0, envelope.getMinX(), envelope.getMaxY(), 0 }); param.setExtraFields(tiffFields); ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel