svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.library / org.gvsig.raster.tools / org.gvsig.raster.tools.lib / org.gvsig.raster.tools.lib.api / src / main / java / org / gvsig / raster / tools / lib / api / RasterClip.java @ 43876
History | View | Annotate | Download (3.51 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.api; |
24 |
|
25 |
import java.io.File; |
26 |
import java.util.List; |
27 |
|
28 |
import org.gvsig.fmap.geom.primitive.Envelope; |
29 |
import org.gvsig.fmap.mapcontext.raster.api.RasterLayer; |
30 |
import org.gvsig.raster.tools.lib.api.exceptions.ClipException; |
31 |
import org.gvsig.tools.task.SimpleTaskStatus; |
32 |
|
33 |
|
34 |
/**
|
35 |
* @author fdiaz
|
36 |
*
|
37 |
*/
|
38 |
public interface RasterClip { |
39 |
|
40 |
/**
|
41 |
* @param layer the layer to set
|
42 |
*/
|
43 |
public void setLayer(RasterLayer layer); |
44 |
|
45 |
/**
|
46 |
* @return the layer
|
47 |
*/
|
48 |
public RasterLayer getLayer();
|
49 |
|
50 |
/**
|
51 |
* @param taskStatus
|
52 |
* @throws ClipException
|
53 |
*/
|
54 |
public void execute(SimpleTaskStatus taskStatus) throws ClipException; |
55 |
|
56 |
/**
|
57 |
* @param envelope
|
58 |
*/
|
59 |
public void setEnvelope(Envelope envelope); |
60 |
|
61 |
/**
|
62 |
* @return envelope
|
63 |
*/
|
64 |
public Envelope getEnvelope();
|
65 |
|
66 |
/**
|
67 |
* @param pixelSizeX
|
68 |
*/
|
69 |
public void setPixelSizeX(double pixelSizeX); |
70 |
|
71 |
/**
|
72 |
* @param pixelSizeY
|
73 |
*/
|
74 |
public void setPixelSizeY(double pixelSizeY); |
75 |
|
76 |
/**
|
77 |
* @return pixelSizeX
|
78 |
*/
|
79 |
public double getPixelSizeX(); |
80 |
|
81 |
/**
|
82 |
* @return pixelSizeY
|
83 |
*/
|
84 |
public double getPixelSizeY(); |
85 |
|
86 |
/**
|
87 |
* @param interpolationMethod
|
88 |
*/
|
89 |
public void setInterpolationMethod(int interpolationMethod); |
90 |
|
91 |
/**
|
92 |
* @return
|
93 |
*/
|
94 |
public int getInterpolationMethod(); |
95 |
|
96 |
/**
|
97 |
* @param bands
|
98 |
*/
|
99 |
public void setBands(List<Integer> bands); |
100 |
|
101 |
/**
|
102 |
* @return
|
103 |
*/
|
104 |
public List<Integer> getBands(); |
105 |
|
106 |
/**
|
107 |
* @param layerNamePrefix
|
108 |
*/
|
109 |
public void setLayerNamePrefix(String layerNamePrefix); |
110 |
|
111 |
/**
|
112 |
* @return layer name prefix
|
113 |
*/
|
114 |
public String getLayerNamePrefix(); |
115 |
|
116 |
/**
|
117 |
* @param createOneLayerPerBand
|
118 |
*/
|
119 |
public void setCreateOneLayerPerBand(boolean createOneLayerPerBand); |
120 |
|
121 |
/**
|
122 |
* @return true if will create one layer per band
|
123 |
*/
|
124 |
public boolean isCreateOneLayerPerBand(); |
125 |
|
126 |
/**
|
127 |
* @param folder
|
128 |
*/
|
129 |
public void setFolder(File folder); |
130 |
|
131 |
/**
|
132 |
* @return The folder where will be created the new raster file
|
133 |
*/
|
134 |
public File getFolder(); |
135 |
|
136 |
/**
|
137 |
* @param saveToNewRasterFile
|
138 |
*/
|
139 |
public void setSaveToNewRasterFile(boolean saveToNewRasterFile); |
140 |
|
141 |
/**
|
142 |
* @return true if will creates a new raster file
|
143 |
*/
|
144 |
public boolean isSaveToNewRasterFile(); |
145 |
|
146 |
/**
|
147 |
* @return
|
148 |
*/
|
149 |
int getRows();
|
150 |
|
151 |
/**
|
152 |
* @param rows
|
153 |
*/
|
154 |
void setRows(int rows); |
155 |
|
156 |
/**
|
157 |
* @return
|
158 |
*/
|
159 |
int getColumns();
|
160 |
|
161 |
/**
|
162 |
* @param columns
|
163 |
*/
|
164 |
void setColumns(int columns); |
165 |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 |
|
171 |
} |