Statistics
| Revision:

gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.io / org.gvsig.raster.io.base / src / main / java / org / gvsig / fmap / dal / coverage / dataset / io / DefaultRasterIOLibrary.java @ 211

History | View | Annotate | Download (2.27 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.fmap.dal.coverage.dataset.io;
23

    
24
import org.gvsig.fmap.dal.DALFileLibrary;
25
import org.gvsig.fmap.dal.DALLibrary;
26
import org.gvsig.fmap.dal.coverage.dataset.io.param.WMSStoreParametersImpl;
27
import org.gvsig.fmap.dal.coverage.dataset.io.server.DefaultWMSServerExplorerParameters;
28
import org.gvsig.fmap.dal.coverage.dataset.io.wms.WMSProvider;
29
import org.gvsig.tools.ToolsLibrary;
30
import org.gvsig.tools.library.AbstractLibrary;
31
import org.gvsig.tools.library.Library;
32
import org.gvsig.tools.library.LibraryException;
33
/**
34
 *
35
 * @author Nacho Brodin (nachobrodin@gmail.com)
36
 */
37
public class DefaultRasterIOLibrary extends AbstractLibrary {        
38

    
39
        public DefaultRasterIOLibrary() {
40
                super(DefaultRasterIOLibrary.class,Library.TYPE.IMPL);
41
                require(ToolsLibrary.class);
42
                require(DALLibrary.class);
43
                require(DALFileLibrary.class);
44
        }
45
        
46
        @Override
47
        protected void doInitialize() throws LibraryException {
48
                //RasterLibrary.wakeUp();
49
        }
50

    
51
        @Override
52
        protected void doPostInitialize() throws LibraryException {
53
                DefaultWMSServerExplorerParameters.registerDynClass();
54
                WMSStoreParametersImpl.registerDynClass();
55
                
56
                // Registro de los drivers de lectura
57
                GdalDriver.register();
58
                ErmapperDriver.register();
59
                MrSidDriver.register();
60
                WMSProvider.register();
61
                
62
                // Registro de los drivers de escritura
63
                GdalWriter.register();
64
                ErmapperWriter.register();
65
                JpegWriter.register();
66
                PngWriter.register();
67
        }
68
}