Changeset 14320
- Timestamp:
- 04/18/08 14:02:57 (3 months ago)
- Files:
-
- branches/1.5/gdal/swig/include/gdal.i (modified) (2 diffs)
- branches/1.5/gdal/swig/java/apps/gdalinfo.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.5/gdal/swig/include/gdal.i
r13049 r14320 259 259 // 260 260 //************************************************************************ 261 #if ndef SWIGPERL261 #if !defined(SWIGPERL) && !defined(SWIGJAVA) 262 262 %rename (ColorEntry) GDALColorEntry; 263 263 typedef struct … … 445 445 // 446 446 //************************************************************************ 447 #if !defined(SWIGJAVA) 447 448 %include "ColorTable.i" 449 #endif 448 450 449 451 //************************************************************************ branches/1.5/gdal/swig/java/apps/gdalinfo.java
r9112 r14320 7 7 * Author: Benjamin Collins, The MITRE Corporation 8 8 * 9 * **************************************************************************** 10 * Copyright (c) 1998, Frank Warmerdam 11 * Copyright (c) 2006, The MITRE Corporation 9 12 * 10 * $Log$ 11 * Revision 1.1 2006/02/02 21:04:35 collinsb 12 * Expand support for SWIG Java bindings 13 * Permission is hereby granted, free of charge, to any person obtaining a 14 * copy of this software and associated documentation files (the "Software"), 15 * to deal in the Software without restriction, including without limitation 16 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 17 * and/or sell copies of the Software, and to permit persons to whom the 18 * Software is furnished to do so, subject to the following conditions: 13 19 * 20 * The above copyright notice and this permission notice shall be included 21 * in all copies or substantial portions of the Software. 14 22 * 15 * 16 */ 23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 24 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 26 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 27 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 29 * DEALINGS IN THE SOFTWARE. 30 ****************************************************************************/ 31 17 32 18 33 import java.util.Enumeration; … … 21 36 22 37 import org.gdal.gdal.Band; 23 import org.gdal.gdal.ColorTable;38 //import org.gdal.gdal.ColorTable; 24 39 import org.gdal.gdal.Dataset; 25 40 import org.gdal.gdal.Driver; … … 238 253 Double[] pass1 = new Double[1], pass2 = new Double[1]; 239 254 double[] adfCMinMax = new double[2]; 240 ColorTable hTable;255 // ColorTable hTable; 241 256 242 257 hBand = hDataset.GetRasterBand(iBand + 1); … … 346 361 } 347 362 363 /** ColorTable not supported in GDAL 1.5 and 1.6. 364 348 365 if (hBand.GetRasterColorInterpretation() == gdalconstConstants.GCI_PaletteIndex 349 366 && (hTable = hBand.GetRasterColorTable()) != null) { … … 360 377 } 361 378 } 379 **/ 362 380 } 363 381 364 382 hDataset.delete(); 365 383 366 //CSLDestroy( argv );367 368 //GDALDumpOpenDatasets( stderr );369 370 384 //gdal.DestroyDriverManager(); 371 372 //CPLDumpSharedList( null );373 //CPLCleanupTLS();374 385 375 386 System.exit(0);
