Statistics
| Revision:

gvsig-raster / org.gvsig.raster.mosaic / trunk / org.gvsig.raster.mosaic / org.gvsig.raster.mosaic.io / src / main / java / org / gvsig / raster / mosaic / io / MosaicDataParameters.java @ 723

History | View | Annotate | Download (4.56 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

    
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 IVER T.I   {{Task}}
26
*/
27

    
28
package org.gvsig.raster.mosaic.io;
29

    
30
import java.util.ArrayList;
31

    
32
import org.gvsig.fmap.dal.coverage.store.parameter.RasterDataParameters;
33
import org.gvsig.fmap.dal.spi.DataStoreProvider;
34
import org.gvsig.raster.impl.provider.RasterProvider;
35
import org.gvsig.timesupport.Time;
36

    
37
/**
38
 * Parameters for the Mosaic provider
39
 * @author Nacho Brodin (nachobrodin@gmail.com)
40
 */
41
public interface MosaicDataParameters extends RasterDataParameters {
42
        public static final String            FIELD_PROVIDERS           = "Providers";
43
        public static final String            FIELD_PIXELSIZE           = "Pixelsize";
44
        public static final String            FIELD_NODATA              = "NoData";
45
        public static final String            FIELD_OVERLAP             = "Overlap";
46
        public static final String            FIELD_COLORCORRECTION     = "ColorCorrection";
47
        public static final String            FIELD_TIMESELECTION       = "TimeSelection";
48
        public static final String            FIELD_PROVIDER_VISIBLE    = "ProviderVisible";
49
        
50
        //Overlap methods
51
        public static final int               FIRST                     = 0;
52
        public static final int               LAST                      = 1;
53
        public static final int               FEATHERING                = 2;
54
        public static final int               MEAN                      = 3;
55
        public static final int               MIN                       = 4;
56
        public static final int               MAX                       = 5;
57
        
58
        //Color correction
59
        public static final int               NONE                      = 0;
60
        public static final int               HISTOGRAM_MATCHING        = 1;
61
        
62
        /**
63
         * Removes a provider from the list
64
         * @param uri
65
         */
66
        public void removeProvider(String uri);
67
        
68
        /**
69
         * Adds a provider to the list
70
         * @param prov
71
         */
72
        public void addProvider(RasterProvider prov);
73
        
74
        /**
75
         * Adds a provider to the list if this is not tiled
76
         * @param prov
77
         * @return true if the provider has been added and false if doesn't
78
         */
79
        public boolean addNotTiledProvider(DataStoreProvider prov);
80
        
81
        /**
82
         * Returns true if exists a provider with the selected file name
83
         * @param fileName
84
         * @return
85
         */
86
        public boolean existsProvider(String fileName);
87
        
88
        /**
89
         * Gets the list of providers
90
         */
91
        public ArrayList<RasterProvider> getProviders();
92
        
93
        /**
94
         * Gets the pixel size
95
         * @return
96
         */
97
        public double getPixelSize();
98
        
99
        /**
100
         * Sets the pixel size 
101
         */
102
        public void setPixelSize(double ps);
103
        
104
        /**
105
         * Gets the NoData value
106
         * @return
107
         */
108
        public double getNoData();
109
        
110
        /**
111
         * Sets the NoData value 
112
         */
113
        public void setNoData(double nd);
114
        
115
        /**
116
         * Returns true if the parameters has changed
117
         * @return
118
         */
119
        public boolean hasParamsChanged();
120
        
121
        /**
122
         * Sets the overlap method. The disposable methods are defined 
123
         * as a constant in this interface
124
         * @return
125
         */
126
        public void setOverlapMethod(int overlap);
127
        
128
        /**
129
         * Gets the overlap method. The disposable methods are defined 
130
         * as a constant in this interface
131
         * @return
132
         */
133
        public int getOverlapMethod();
134
        
135
        /**
136
         * Sets the color correction method. The disposable methods are defined 
137
         * as a constant in this interface
138
         * @return
139
         */
140
        public void setColorCorrectionMethod(int colorCorrection);
141
        
142
        /**
143
         * Gets the color correction method. The disposable methods are defined 
144
         * as a constant in this interface
145
         * @return
146
         */
147
        public int getColorCorrectionMethod();
148
        
149
        /**
150
         * Sets the selection of time. If this parameter is null all layers will
151
         * be selected.
152
         * @param
153
         */
154
        public void setTimeSelection(Time timeSelection);
155
        
156
        /**
157
         * Gets the selection of time. If this parameter is null all layers will
158
         * be selected.
159
         * @return
160
         */
161
        public Time getTimeSelection();
162
}