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 @ 2193
History | View | Annotate | Download (5.06 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.List; |
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 List<RasterProvider> getProviders(); |
92 |
|
93 |
/**
|
94 |
* Gets the URI by provider
|
95 |
* @return
|
96 |
*/
|
97 |
public String getURIByProvider(int prov); |
98 |
|
99 |
/**
|
100 |
* Removes the selected provider
|
101 |
* @param prov
|
102 |
*/
|
103 |
public void removeProvider(int prov); |
104 |
|
105 |
/**
|
106 |
* Swap two providers in the list
|
107 |
* @param i
|
108 |
* @param j
|
109 |
*/
|
110 |
public void swapProvider(int i, int j); |
111 |
|
112 |
/**
|
113 |
* Set visible a selected provider
|
114 |
* @param i
|
115 |
* @param b
|
116 |
*/
|
117 |
public void setVisibleProvider(int i, boolean b); |
118 |
|
119 |
/**
|
120 |
* Gets the number of providers
|
121 |
* @return
|
122 |
*/
|
123 |
public int getProviderCount(); |
124 |
|
125 |
/**
|
126 |
* Gets the pixel size
|
127 |
* @return
|
128 |
*/
|
129 |
public double getPixelSize(); |
130 |
|
131 |
/**
|
132 |
* Sets the pixel size
|
133 |
*/
|
134 |
public void setPixelSize(double ps); |
135 |
|
136 |
/**
|
137 |
* Gets the NoData value
|
138 |
* @return
|
139 |
*/
|
140 |
public double getNoData(); |
141 |
|
142 |
/**
|
143 |
* Sets the NoData value
|
144 |
*/
|
145 |
public void setNoData(double nd); |
146 |
|
147 |
/**
|
148 |
* Returns true if the parameters has changed
|
149 |
* @return
|
150 |
*/
|
151 |
public boolean hasParamsChanged(); |
152 |
|
153 |
/**
|
154 |
* Sets the overlap method. The disposable methods are defined
|
155 |
* as a constant in this interface
|
156 |
* @return
|
157 |
*/
|
158 |
public void setOverlapMethod(int overlap); |
159 |
|
160 |
/**
|
161 |
* Gets the overlap method. The disposable methods are defined
|
162 |
* as a constant in this interface
|
163 |
* @return
|
164 |
*/
|
165 |
public int getOverlapMethod(); |
166 |
|
167 |
/**
|
168 |
* Sets the color correction method. The disposable methods are defined
|
169 |
* as a constant in this interface
|
170 |
* @return
|
171 |
*/
|
172 |
public void setColorCorrectionMethod(int colorCorrection); |
173 |
|
174 |
/**
|
175 |
* Gets the color correction method. The disposable methods are defined
|
176 |
* as a constant in this interface
|
177 |
* @return
|
178 |
*/
|
179 |
public int getColorCorrectionMethod(); |
180 |
|
181 |
/**
|
182 |
* Sets the selection of time. If this parameter is null all layers will
|
183 |
* be selected.
|
184 |
* @param
|
185 |
*/
|
186 |
public void setTimeSelection(Time timeSelection); |
187 |
|
188 |
/**
|
189 |
* Gets the selection of time. If this parameter is null all layers will
|
190 |
* be selected.
|
191 |
* @return
|
192 |
*/
|
193 |
public Time getTimeSelection(); |
194 |
} |