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