Statistics
| Revision:

gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster.tools / org.gvsig.raster.tools.lib / org.gvsig.raster.tools.lib.impl / src / main / java / org / gvsig / raster / tools / lib / impl / DefaultRasterToolsManager.java @ 6659

History | View | Annotate | Download (2.7 KB)

1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2017 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.raster.tools.lib.impl;
24

    
25
import java.io.File;
26
import java.util.List;
27

    
28
import org.gvsig.fmap.dal.raster.api.BandDescriptor;
29
import org.gvsig.fmap.geom.primitive.Envelope;
30
import org.gvsig.fmap.mapcontext.raster.api.RasterLayer;
31
import org.gvsig.raster.tools.lib.api.RasterClip;
32
import org.gvsig.raster.tools.lib.api.RasterToolsManager;
33
import org.gvsig.tools.dynobject.DynObject;
34
import org.gvsig.tools.service.Service;
35
import org.gvsig.tools.service.ServiceException;
36

    
37
/**
38
 * @author fdiaz
39
 *
40
 */
41
public class DefaultRasterToolsManager implements RasterToolsManager {
42

    
43
    @Override
44
    public DynObject createServiceParameters(String serviceName) throws ServiceException {
45
        return null;
46
    }
47

    
48
    @Override
49
    public Service getService(DynObject parameters) throws ServiceException {
50
        return null;
51
    }
52

    
53
    @Override
54
    public RasterClip createRasterClip(RasterLayer layer, Envelope envelope, double pixelSizeX, double pixelSizeY, int columns, int rows, int interpolationMethod,
55
        List<Integer> bands, String layerNamePrefix, boolean createOneLayerPerBand) {
56

    
57
        return new DefaultRasterClip(layer, envelope, pixelSizeX, pixelSizeY, columns, rows, interpolationMethod, bands, layerNamePrefix,
58
            createOneLayerPerBand);
59
    }
60

    
61
    @Override
62
    public RasterClip createRasterClip(RasterLayer layer, Envelope envelope, double pixelSizeX, double pixelSizeY, int columns, int rows, int interpolationMethod,
63
        List<Integer> bands, String layerNamePrefix, boolean createOneLayerPerBand, boolean saveToNewRasterFile,
64
        File folder) {
65

    
66
        return new DefaultRasterClip(layer, envelope, pixelSizeX, pixelSizeY, columns, rows, interpolationMethod, bands, layerNamePrefix,
67
            createOneLayerPerBand, saveToNewRasterFile, folder);
68
    }
69

    
70
}