geotiffdescriptor.java
来自「OpenMap是一个基于JavaBeansTM的开发工具包。利用OpenMap你」· Java 代码 · 共 44 行
JAVA
44 行
package org.geotiff.image.jai;/* * JAI GeoTIFF extensions. * Copyright (c) 2000 Niles Ritter. */import org.libtiff.jai.codec.XTIFFDirectory;import org.libtiff.jai.operator.XTIFFDescriptor;/** * The GeoTIFFDescriptor is a single class that is both an OperationDescriptor * and a RenderedImageFactory for the overridden "tiff" operation. * * @author Niles Ritter */public class GeoTIFFDescriptor extends XTIFFDescriptor { /** * The public Constructor. */ public GeoTIFFDescriptor() { super(); } private static boolean alreadyCalled = false; /** * A convenience method for registering the "geotiff" methods into JAI. This * needs only be called once before using GeoTIFF methods. */ public synchronized static void register() { if (!alreadyCalled) { // Create the objects GeoTIFFDescriptor odesc = new GeoTIFFDescriptor(); XTIFFDescriptor.register(odesc); // Tell XTIFF to create a GeoTIFF directory instead of XTIFF. XTIFFDirectory.setFactory(new GeoTIFFFactory()); alreadyCalled = true; } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?