Revision 5439
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/NoData.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
|
|
26 |
/** |
|
27 |
* @author fdiaz |
|
28 |
* |
|
29 |
*/ |
|
30 |
public interface NoData { |
|
31 |
|
|
32 |
/** |
|
33 |
* Gets a unique value for nodata. It doesn't take into account if the raster has |
|
34 |
* several bands. Returns the same value for all of them. |
|
35 |
* @return the noData |
|
36 |
*/ |
|
37 |
public Number getValue(); |
|
38 |
|
|
39 |
/** |
|
40 |
* Sets a unique value for nodata. It doesn't take into account if the raster has |
|
41 |
* several bands. Assigns the same value for all of them. |
|
42 |
* @param noData the noData to set |
|
43 |
*/ |
|
44 |
public void setValue(Number noData); |
|
45 |
|
|
46 |
/** |
|
47 |
* Returns true if getValue is defined and false if is null |
|
48 |
* @return true if getValue is defined and false if is null |
|
49 |
*/ |
|
50 |
public boolean isDefined(); |
|
51 |
|
|
52 |
/** |
|
53 |
* NoData value persistence. Saves the nodata value in the rmf. |
|
54 |
*/ |
|
55 |
public void save(); |
|
56 |
|
|
57 |
/** |
|
58 |
* Loads this class from the rmf. |
|
59 |
*/ |
|
60 |
public void load(); |
|
61 |
|
|
62 |
/** |
|
63 |
* Deletes the nodata value. |
|
64 |
*/ |
|
65 |
public void delete(); |
|
66 |
|
|
67 |
/** |
|
68 |
* Restores native value. The native is the original value |
|
69 |
* saved in the head of the file or its metadata. This value |
|
70 |
* has to be assign when NoData object is initialize. |
|
71 |
*/ |
|
72 |
public void restore(); |
|
73 |
|
|
74 |
/** |
|
75 |
* The native is the original value |
|
76 |
* saved in the head of the file or its metadata. This value |
|
77 |
* has to be assign when NoData object is initialize |
|
78 |
* @return the noData |
|
79 |
*/ |
|
80 |
public Number getNativeValue(); |
|
81 |
|
|
82 |
/** |
|
83 |
* The native is the original value |
|
84 |
* saved in the head of the file or its metadata. This value |
|
85 |
* has to be assign when NoData object is initialize. |
|
86 |
* @param nativeNoDataValue |
|
87 |
*/ |
|
88 |
public void setNativeValue(Number nativeNoDataValue); |
|
89 |
|
|
90 |
/** |
|
91 |
* Sets the file name |
|
92 |
* @param fileName |
|
93 |
* @param bandCount |
|
94 |
*/ |
|
95 |
public void setFileName(String fileName); |
|
96 |
|
|
97 |
/** |
|
98 |
* Flag to renderize nodata values as transparent |
|
99 |
* @return true if renderize nodata values as transparent |
|
100 |
*/ |
|
101 |
public boolean isNoDataTransparent(); |
|
102 |
|
|
103 |
/** |
|
104 |
* Flag to renderize nodata values as transparent |
|
105 |
* @param noDataAsTransparent |
|
106 |
*/ |
|
107 |
public void setNoDataTransparent(boolean noDataAsTransparent); |
|
108 |
|
|
109 |
/** |
|
110 |
* Gets the NoData data type |
|
111 |
* @return the data type |
|
112 |
*/ |
|
113 |
public int getDataType(); |
|
114 |
|
|
115 |
/** |
|
116 |
* Sets the datatype |
|
117 |
* @param datatype |
|
118 |
*/ |
|
119 |
public void setDataType(int datatype); |
|
120 |
|
|
121 |
//FIXME: ?Esto no ser?a sobreescribir el m?todo equals? |
|
122 |
// /** |
|
123 |
// * Compares two NoData objects an returns true if contains the same values |
|
124 |
// * @param noData |
|
125 |
// * @return |
|
126 |
// */ |
|
127 |
// public boolean compare(NoData noData); |
|
128 |
|
|
129 |
|
|
130 |
//FIXME: ?Es necesario? |
|
131 |
// /** |
|
132 |
// * Creates and returns a copy of this object. |
|
133 |
// * @return |
|
134 |
// */ |
|
135 |
// public Object clone(); |
|
136 |
|
|
137 |
|
|
138 |
//FIXME: De aqu? para abajo ?Deber?a ir fuera? |
|
139 |
|
|
140 |
// //*********************************************** |
|
141 |
// //Only for file with more than one band |
|
142 |
// |
|
143 |
// /** |
|
144 |
// * Gets the nodata value by band |
|
145 |
// * @param nBand |
|
146 |
// * @return |
|
147 |
// */ |
|
148 |
// public Number getValueByBand(int nBand); |
|
149 |
// |
|
150 |
// /** |
|
151 |
// * Gets the number of bands |
|
152 |
// * @return |
|
153 |
// */ |
|
154 |
// public int getBandCount(); |
|
155 |
// |
|
156 |
// /** |
|
157 |
// * Sets the number of bands |
|
158 |
// * @param bandCount |
|
159 |
// */ |
|
160 |
// public void setBandCount(int bandCount); |
|
161 |
// |
|
162 |
// /** |
|
163 |
// * Assigns one value in a band |
|
164 |
// * @param noDataValue |
|
165 |
// */ |
|
166 |
// public void setValueByBand(Number noDataValue, int nBand); |
|
167 |
|
|
168 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/Buffer.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
import org.cresques.cts.ICoordTrans; |
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
/** |
|
30 |
* @author fdiaz |
|
31 |
* |
|
32 |
*/ |
|
33 |
public interface Buffer extends HistogramCapable, StatisticsCapable { |
|
34 |
|
|
35 |
/** |
|
36 |
* Reprojects this buffer |
|
37 |
* |
|
38 |
* @param ct |
|
39 |
* @return A new reprojected buffer. |
|
40 |
*/ |
|
41 |
public Buffer convert(ICoordTrans ct); |
|
42 |
|
|
43 |
/** |
|
44 |
* Add a filter list to buffer |
|
45 |
* |
|
46 |
* @param filterList |
|
47 |
*/ |
|
48 |
public void filter(FilterList filterList); |
|
49 |
|
|
50 |
/** |
|
51 |
* @return the NoData value |
|
52 |
*/ |
|
53 |
public NoData getNoDataValue(); |
|
54 |
|
|
55 |
/** |
|
56 |
* Sets the NoData value to the buffer |
|
57 |
* |
|
58 |
* @param noDataValue |
|
59 |
*/ |
|
60 |
public void setNoData(NoData noDataValue); |
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/ROI.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
import java.awt.Color; |
|
26 |
|
|
27 |
import org.gvsig.fmap.geom.primitive.Envelope; |
|
28 |
|
|
29 |
|
|
30 |
/** |
|
31 |
* @author fdiaz |
|
32 |
* |
|
33 |
*/ |
|
34 |
public interface ROI { |
|
35 |
|
|
36 |
// public RasterDataStore getStore(); |
|
37 |
|
|
38 |
/** |
|
39 |
* Checks if the rectangle defined in the parameters is inside in the ROI or outside |
|
40 |
* @param x |
|
41 |
* @param y |
|
42 |
* @param w |
|
43 |
* @param h |
|
44 |
* @return true if the rectangle defined in the parameters is inside in the ROI |
|
45 |
*/ |
|
46 |
public boolean isInside(double x, double y, double w, double h); |
|
47 |
|
|
48 |
/** |
|
49 |
* Checks if a point in pixel coordinates is inside of this region of interest |
|
50 |
* @param x |
|
51 |
* @param y |
|
52 |
* @return true whether the point is inside |
|
53 |
*/ |
|
54 |
public boolean isInsideOfPolygon(int x, int y); |
|
55 |
|
|
56 |
/** |
|
57 |
* Gets the bounding box of this ROI |
|
58 |
* |
|
59 |
* @return the envelope |
|
60 |
*/ |
|
61 |
public Envelope getROIExtent(); //FIXME: Antes pon?a Extent |
|
62 |
|
|
63 |
/** |
|
64 |
* @return the color |
|
65 |
*/ |
|
66 |
public Color getColor(); |
|
67 |
|
|
68 |
/** |
|
69 |
* @param color |
|
70 |
*/ |
|
71 |
public void setColor(Color color); |
|
72 |
|
|
73 |
/** |
|
74 |
* @return the name |
|
75 |
*/ |
|
76 |
public String getName(); |
|
77 |
|
|
78 |
/** |
|
79 |
* @param name |
|
80 |
*/ |
|
81 |
public void setName(String name); |
|
82 |
|
|
83 |
/** |
|
84 |
* @return the indentifier |
|
85 |
*/ |
|
86 |
public long getID(); |
|
87 |
|
|
88 |
/** |
|
89 |
* @param id |
|
90 |
*/ |
|
91 |
public void setID(long id); |
|
92 |
|
|
93 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/Statistics.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
import org.gvsig.tools.task.SimpleTaskStatus; |
|
26 |
|
|
27 |
|
|
28 |
/** |
|
29 |
* @author fdiaz |
|
30 |
* |
|
31 |
*/ |
|
32 |
public interface Statistics { |
|
33 |
|
|
34 |
/** |
|
35 |
* Gets the number of values by band |
|
36 |
* |
|
37 |
* @return the number of values by band |
|
38 |
*/ |
|
39 |
public long[] getNumberOfValues(); |
|
40 |
|
|
41 |
/** |
|
42 |
* Devuelve una lista con los m?ximos de todas las bandas |
|
43 |
* |
|
44 |
* @return Valor m?ximo |
|
45 |
*/ |
|
46 |
public double[] getMax(); |
|
47 |
|
|
48 |
/** |
|
49 |
* Obtiene el valor del segundo m?ximo |
|
50 |
* |
|
51 |
* @return Valor del segundo m?ximo |
|
52 |
*/ |
|
53 |
public double[] getSecondMax(); |
|
54 |
|
|
55 |
/** |
|
56 |
* Obtiene el valor del segundo m?nimo |
|
57 |
* |
|
58 |
* @return Valor del segundo m?nimo |
|
59 |
*/ |
|
60 |
public double[] getSecondMin(); |
|
61 |
|
|
62 |
/** |
|
63 |
* Devuelve el m?ximo valor de todos los m?ximos de las bandas |
|
64 |
* |
|
65 |
* @return M?ximo |
|
66 |
*/ |
|
67 |
public double getMaximun(); |
|
68 |
|
|
69 |
/** |
|
70 |
* Devuelve el m?nimo valor de todos los m?nimos de las bandas |
|
71 |
* |
|
72 |
* @return M?ximo |
|
73 |
*/ |
|
74 |
public double getMinimun(); |
|
75 |
|
|
76 |
/** |
|
77 |
* Devuelve el m?ximo valor RGB de todos los m?ximos de las bandas |
|
78 |
* |
|
79 |
* @return M?ximo |
|
80 |
*/ |
|
81 |
public double getMaximunByteUnsigned(); |
|
82 |
|
|
83 |
/** |
|
84 |
* Devuelve el m?nimo valor RGB de todos los m?nimos de las bandas |
|
85 |
* @return M?ximo |
|
86 |
*/ |
|
87 |
public double getMinimunByteUnsigned(); |
|
88 |
|
|
89 |
/** |
|
90 |
* Obtiene el valor m?dio |
|
91 |
* |
|
92 |
* @return Valor medio |
|
93 |
*/ |
|
94 |
public double[] getMean(); |
|
95 |
|
|
96 |
/** |
|
97 |
* Devuelve una lista con los m?nimos de todas las bandas |
|
98 |
* |
|
99 |
* @return Valor m?nimo |
|
100 |
*/ |
|
101 |
public double[] getMin(); |
|
102 |
|
|
103 |
/** |
|
104 |
* Obtiene el m?nimo cuando el raster es de typo byte RGB |
|
105 |
* |
|
106 |
* @return el m?nimo cuando el raster es de typo byte RGB |
|
107 |
*/ |
|
108 |
public double[] getMinByteUnsigned(); |
|
109 |
|
|
110 |
/** |
|
111 |
* Obtiene el m?ximo cuando el raster es de typo byte RGB |
|
112 |
* |
|
113 |
* @return el m?ximo cuando el raster es de typo byte RGB |
|
114 |
*/ |
|
115 |
public double[] getMaxByteUnsigned(); |
|
116 |
|
|
117 |
/** |
|
118 |
* Obtiene el segundo m?ximo cuando el raster es de typo byte RGB |
|
119 |
* |
|
120 |
* @return el segundo m?ximo cuando el raster es de typo byte RGB |
|
121 |
*/ |
|
122 |
public double[] getSecondMaxByteUnsigned(); |
|
123 |
|
|
124 |
/** |
|
125 |
* Obtiene el segundo m?nimo cuando el raster es de typo byte RGB |
|
126 |
* |
|
127 |
* @return el segundo m?nimo cuando el raster es de typo byte RGB |
|
128 |
*/ |
|
129 |
public double[] getSecondMinByteUnsigned(); |
|
130 |
|
|
131 |
/** |
|
132 |
* Obtiene la varianza |
|
133 |
* |
|
134 |
* @return Varianza |
|
135 |
*/ |
|
136 |
public double[] getVariance(); |
|
137 |
|
|
138 |
/** |
|
139 |
* Gets the number of bands |
|
140 |
* |
|
141 |
* @return the number of bands |
|
142 |
*/ |
|
143 |
public int getBandCount(); |
|
144 |
|
|
145 |
/** |
|
146 |
* Obtiene un valor de recorte de colas para un porcentaje dado. El valor ser? un array |
|
147 |
* bidimensional ([N?mero de bandas][2]) donde para cada banda se almacena el valor en |
|
148 |
* esa posici?n del recorte de colas. Este recorte consiste en ordenar los elementos del |
|
149 |
* raster (o una muestra de ellos) y devolver el valor que corresponde al porcentaje comenzando |
|
150 |
* desde el principio del array ordenado y desde el final de ?l (m?nimo y m?ximo). |
|
151 |
* |
|
152 |
* @param percent Porcentaje de recorte |
|
153 |
* @param valueByBand array bidimensional de enteros o doubles. Depende del tipo de dato del raster. |
|
154 |
* @return El valor de recorte de colas para el porcentaje dado |
|
155 |
*/ |
|
156 |
public Object getTailTrimValue(double percent); |
|
157 |
|
|
158 |
/** |
|
159 |
* Obtiene un valor de recorte de colas para una posici?n dada. El valor ser? un array |
|
160 |
* bidimensional ([N?mero de bandas][2]) donde para cada banda se almacena el valor en |
|
161 |
* esa posici?n del recorte de colas. Este recorte consiste en ordenar los elementos del |
|
162 |
* raster (o una muestra de ellos) y devolver el valor que corresponde al porcentaje comenzando |
|
163 |
* desde el principio del array ordenado y desde el final de ?l (m?nimo y m?ximo). |
|
164 |
* @param pos posici?n de recorte |
|
165 |
* @param valueByBand array bidimensional de enteros o doubles. Depende del tipo de dato del raster. |
|
166 |
* @return el valor de recorte de colas para la posici?n dada |
|
167 |
*/ |
|
168 |
public Object[] getTailTrimValue(int pos); |
|
169 |
|
|
170 |
/** |
|
171 |
* Devuelve el n?mero de valores de recorte de colas calculados. |
|
172 |
* @return N?mero de valores de recorte de colas calculados. |
|
173 |
*/ |
|
174 |
public int getTailTrimCount(); |
|
175 |
|
|
176 |
/** |
|
177 |
* Obtiene el flag que informa de si las estad?sticas est?n calculadas o no. |
|
178 |
* @return true indica que est?n calculadas y false que no lo est?n |
|
179 |
*/ |
|
180 |
public boolean isCalculated(); |
|
181 |
|
|
182 |
/** |
|
183 |
* Throws the thread which figure out statistics |
|
184 |
* @param scale |
|
185 |
* @param status |
|
186 |
* @throws FileNotOpenException |
|
187 |
* @throws RasterDriverException |
|
188 |
* @throws ProcessInterruptedException |
|
189 |
*/ |
|
190 |
public void calculate(double scale, SimpleTaskStatus status); |
|
191 |
|
|
192 |
/** |
|
193 |
* Gets the number of pixels by band |
|
194 |
* |
|
195 |
* @return the number of pixels by band |
|
196 |
*/ |
|
197 |
public long[] getNumberOfCells(); |
|
198 |
|
|
199 |
/** |
|
200 |
* Devuelve la matriz de varianza-covarianza, si no se encuentra calculada se calcula |
|
201 |
* |
|
202 |
* @return Matriz de varianza-covarianza |
|
203 |
*/ |
|
204 |
public double[][] getVarianceCovarianceMatrix(); |
|
205 |
|
|
206 |
/** |
|
207 |
* Clones this object |
|
208 |
* |
|
209 |
* @return this cloned object |
|
210 |
*/ |
|
211 |
public Statistics clone(); |
|
212 |
|
|
213 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/BufferParams.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
|
|
26 |
/** |
|
27 |
* @author fdiaz |
|
28 |
* |
|
29 |
*/ |
|
30 |
public interface BufferParams { |
|
31 |
|
|
32 |
public static int UNDEFINED = -1; |
|
33 |
public static int CACHED = 0; |
|
34 |
public static int READ_ONLY = 1; |
|
35 |
public static int MEMORY = 2; |
|
36 |
|
|
37 |
/** |
|
38 |
* Returns the width in pixels |
|
39 |
* @return Width in pixels of this buffer |
|
40 |
*/ |
|
41 |
public int getWidth(); |
|
42 |
|
|
43 |
/** |
|
44 |
* Sets the width in pixels |
|
45 |
* @param width in pixels of this buffer |
|
46 |
*/ |
|
47 |
public void setWidth(int width); |
|
48 |
|
|
49 |
/** |
|
50 |
* Returns the height in pixels |
|
51 |
* @return Height in pixels of this buffer |
|
52 |
*/ |
|
53 |
public int getHeight(); |
|
54 |
|
|
55 |
/** |
|
56 |
* Sets the height in pixels |
|
57 |
* @param height |
|
58 |
* Height in pixels of this buffer |
|
59 |
*/ |
|
60 |
public void setHeight(int height); |
|
61 |
|
|
62 |
/** |
|
63 |
* Returns the x upper left coordinate |
|
64 |
* @return x upper left coordinate in pixels |
|
65 |
*/ |
|
66 |
public int getX(); |
|
67 |
|
|
68 |
/** |
|
69 |
* Sets the x upper left coordinate |
|
70 |
* @params x upper left coordinate in pixels |
|
71 |
*/ |
|
72 |
public void setX(int x); |
|
73 |
|
|
74 |
/** |
|
75 |
* Returns the y upper left coordinate |
|
76 |
* @return y upper left coordinate in pixels |
|
77 |
*/ |
|
78 |
public int getY(); |
|
79 |
|
|
80 |
/** |
|
81 |
* Sets the Y upper left coordinate |
|
82 |
* @param y upper left coordinate in pixels |
|
83 |
*/ |
|
84 |
public void setY(int y); |
|
85 |
|
|
86 |
/** |
|
87 |
* Gets the data type |
|
88 |
* @return the data type |
|
89 |
*/ |
|
90 |
public int getDataType(); |
|
91 |
|
|
92 |
/** |
|
93 |
* Sets the data type |
|
94 |
* @param dataType |
|
95 |
*/ |
|
96 |
public void setDataType(int dataType); |
|
97 |
|
|
98 |
/** |
|
99 |
* Gets number of bands |
|
100 |
* @return the number of bands |
|
101 |
*/ |
|
102 |
public int getBandCount(); |
|
103 |
|
|
104 |
/** |
|
105 |
* Sets number of bands |
|
106 |
* @param bandCount |
|
107 |
*/ |
|
108 |
public void setBandCount(int bandCount); |
|
109 |
|
|
110 |
/** |
|
111 |
* Sets the type of access defined as constant in Buffer interface |
|
112 |
* @param accessType |
|
113 |
*/ |
|
114 |
public void setAccessType(int accessType); |
|
115 |
|
|
116 |
/** |
|
117 |
* Gets the type of access defined as constant in Buffer interface |
|
118 |
* @return the access type |
|
119 |
*/ |
|
120 |
public int getAccessType(); |
|
121 |
|
|
122 |
|
|
123 |
//FIXME: ???? |
|
124 |
// /** |
|
125 |
// * Sets the band list |
|
126 |
// * @param file |
|
127 |
// */ |
|
128 |
// public void setBandList(BandList bands); |
|
129 |
// |
|
130 |
// /** |
|
131 |
// * Gets the band list |
|
132 |
// * @return |
|
133 |
// */ |
|
134 |
// public BandList getBandList(); |
|
135 |
// |
|
136 |
// public void setDataStore(RasterDataStore roDataSource); |
|
137 |
// |
|
138 |
// public RasterDataStore getDataStore(); |
|
139 |
|
|
140 |
// public void setMalloc(boolean malloc); |
|
141 |
// |
|
142 |
// public boolean isMalloc(); |
|
143 |
// |
|
144 |
// public void setRoWindow(int[] roWindow); |
|
145 |
// |
|
146 |
// public int[] getRoWindow(); |
|
147 |
// |
|
148 |
// public void setRoWindowExtent(Extent roWindow); |
|
149 |
// |
|
150 |
// public Extent getRoWindowExtent(); |
|
151 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/Histogram.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
import org.gvsig.tools.task.SimpleTaskStatus; |
|
26 |
|
|
27 |
|
|
28 |
/** |
|
29 |
* @author fdiaz |
|
30 |
* |
|
31 |
*/ |
|
32 |
public interface Histogram { |
|
33 |
|
|
34 |
/** |
|
35 |
* Obtiene el n?mero de bandas del histograma |
|
36 |
* @return entero que representa el n?mero de bandas |
|
37 |
*/ |
|
38 |
public int getNumBands(); |
|
39 |
|
|
40 |
/** |
|
41 |
* Obtiene la longitud (n?mero de valores) de una banda determinada |
|
42 |
* @param band Banda o obtener la longitud |
|
43 |
* @return entero con la longitud de la banda |
|
44 |
* rangos de valores y DataclassList. |
|
45 |
*/ |
|
46 |
public int getBandLenght(int band); |
|
47 |
|
|
48 |
/** |
|
49 |
* Obtiene el tipo de datos del histograma original |
|
50 |
* |
|
51 |
* @return el tipo de datos del histograma original |
|
52 |
*/ |
|
53 |
public int getDataType(); |
|
54 |
|
|
55 |
/** |
|
56 |
* Obtiene un valor del histograma segun la posicion dentro de las clases |
|
57 |
* @param band N?mero de banda del valor a recuperar |
|
58 |
* @param pos Pixel o valor de la clase del valor a recuperar |
|
59 |
* |
|
60 |
* @return valor |
|
61 |
*/ |
|
62 |
public double getHistogramValueByPos(int band, int pos); |
|
63 |
|
|
64 |
/** |
|
65 |
* Obtiene un valor del histograma |
|
66 |
* @param band N?mero de banda del valor a recuperar |
|
67 |
* @param px Pixel o valor de la clase del valor a recuperar |
|
68 |
* @return valor |
|
69 |
*/ |
|
70 |
public double getHistogramValue(int band, double px); |
|
71 |
|
|
72 |
/** |
|
73 |
* Realiza la uni?n entre el histograma actual y el pasado |
|
74 |
* por par?metro. |
|
75 |
* @param hist |
|
76 |
* @return true if the union has been possible |
|
77 |
*/ |
|
78 |
public boolean union(Histogram hist); |
|
79 |
|
|
80 |
/** |
|
81 |
* Obtiene la tabla de valores |
|
82 |
* |
|
83 |
* @return la tabla de valores |
|
84 |
*/ |
|
85 |
public long[][] getTable(); |
|
86 |
|
|
87 |
|
|
88 |
/** |
|
89 |
* Obtiene el histograma de la imagen negativa. |
|
90 |
* |
|
91 |
* @return el histograma de la imagen negativa. |
|
92 |
*/ |
|
93 |
public long[][] getNegativeTable(); |
|
94 |
|
|
95 |
/** |
|
96 |
* Devuelve el minimo valor del histograma |
|
97 |
* |
|
98 |
* @return el minimo valor del histograma |
|
99 |
*/ |
|
100 |
public double getMinimum(); |
|
101 |
|
|
102 |
/** |
|
103 |
* Devuelve el maximo valor del histograma |
|
104 |
* |
|
105 |
* @return el maximo valor del histograma |
|
106 |
*/ |
|
107 |
public double getMaximum(); |
|
108 |
|
|
109 |
/** |
|
110 |
* Obtiene el n?mero de valores o clases del histograma |
|
111 |
* @return entero que representa el n?mero de valores o clases del histograma |
|
112 |
*/ |
|
113 |
public int getNumValues(); |
|
114 |
|
|
115 |
/** |
|
116 |
* Devuelve si un histograma esta en un rango RGB aceptable |
|
117 |
* |
|
118 |
* @return si un histograma esta en un rango RGB aceptable |
|
119 |
*/ |
|
120 |
public boolean isInRangeRGB(); |
|
121 |
|
|
122 |
/** |
|
123 |
* Calculo de estad?sticas a partir de un histograma. El resultado de la funci?n es un array |
|
124 |
* bidimensional donde el primer ?ndice inndica la estadistica y el segundo el n?mero de banda. |
|
125 |
* |
|
126 |
* <UL> |
|
127 |
* <LI>m?nimo</LI> |
|
128 |
* <LI>m?ximo</LI> |
|
129 |
* <LI>media</LI> |
|
130 |
* <LI>mediana</LI> |
|
131 |
* <LI>N?mero de pixels</LI> |
|
132 |
* </UL> |
|
133 |
* @param histogram |
|
134 |
* @param beginPos Posici?n de inicio del histograma para contabilizar estadisticas |
|
135 |
* @param endPos Posici?n de fin del histograma para contabilizar estadisticas |
|
136 |
* @param bands bandas solicitadas. Cada elemento del vector representa una banda. Si est? a true se calcula la |
|
137 |
* estadistica para esa banda y si est? a false no se calcular?. |
|
138 |
* |
|
139 |
* @return las estad?sticas a partir del histograma. |
|
140 |
*/ |
|
141 |
public double[][] getBasicStats(double beginPos, double endPos, boolean[] bands); |
|
142 |
|
|
143 |
/** |
|
144 |
* Calculo de estad?sticas a partir de un histograma. El resultado de la funci?n es un array |
|
145 |
* bidimensional donde el primer ?ndice inndica la estadistica y el segundo el n?mero de banda. |
|
146 |
* |
|
147 |
* <UL> |
|
148 |
* <LI>m?nimo</LI> |
|
149 |
* <LI>m?ximo</LI> |
|
150 |
* <LI>media</LI> |
|
151 |
* <LI>mediana</LI> |
|
152 |
* <LI>N?mero de pixels</LI> |
|
153 |
* </UL> |
|
154 |
* @param histogram |
|
155 |
* @param bands bandas solicitadas. Cada elemento del vector representa una banda. Si est? a true se calcula la |
|
156 |
* estadistica para esa banda y si est? a false no se calcular?. |
|
157 |
* |
|
158 |
* @return las estad?sticas a partir del histograma. |
|
159 |
*/ |
|
160 |
public double[][] getBasicStats(boolean[] bands); |
|
161 |
|
|
162 |
/** |
|
163 |
* Calcula las estad?sticas. |
|
164 |
* |
|
165 |
* @param status |
|
166 |
*/ |
|
167 |
public void calculate(SimpleTaskStatus status); |
|
168 |
|
|
169 |
/** |
|
170 |
* @return true if the histogram has been calculated |
|
171 |
*/ |
|
172 |
public boolean isCalculated(); |
|
173 |
|
|
174 |
/** |
|
175 |
* Devuelve los valores m?nimos de todas las bandas |
|
176 |
* |
|
177 |
* @return los valores m?nimos de todas las bandas |
|
178 |
*/ |
|
179 |
public double[] getMin(); |
|
180 |
|
|
181 |
/** |
|
182 |
* Devuelve los valores m?nimos de todas las bandas |
|
183 |
* |
|
184 |
* @return los valores m?nimos de todas las bandas |
|
185 |
*/ |
|
186 |
public double[] getMax(); |
|
187 |
|
|
188 |
/** |
|
189 |
* Devuelve el n?mero de valores de un intervalo |
|
190 |
* |
|
191 |
* @param band |
|
192 |
* @param interval |
|
193 |
* @return el n?mero de valores del intervalo |
|
194 |
*/ |
|
195 |
public int getValueCount(int band, int interval); |
|
196 |
|
|
197 |
/** |
|
198 |
* Devuelve el valor m?nimo de un intervalo |
|
199 |
* |
|
200 |
* @param band |
|
201 |
* @param interval |
|
202 |
* @return el valor m?nimo del intervalo |
|
203 |
*/ |
|
204 |
public int getIntervalMin(int band, int interval); |
|
205 |
|
|
206 |
/** |
|
207 |
* Devuelve el valor m?ximo de un intervalo |
|
208 |
* |
|
209 |
* @param band |
|
210 |
* @param interval |
|
211 |
* @return el valor m?ximo del intervalo |
|
212 |
*/ |
|
213 |
public int getIntervalMax(int band, int interval); |
|
214 |
|
|
215 |
|
|
216 |
|
|
217 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/FilterList.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
|
|
26 |
/** |
|
27 |
* @author fdiaz |
|
28 |
* |
|
29 |
*/ |
|
30 |
public interface FilterList { |
|
31 |
|
|
32 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/StatisticsCapable.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
import org.gvsig.tools.task.SimpleTaskStatus; |
|
26 |
|
|
27 |
|
|
28 |
/** |
|
29 |
* This interface must be implemented by those classes which can provide statistics. |
|
30 |
* @author fdiaz |
|
31 |
* |
|
32 |
*/ |
|
33 |
public interface StatisticsCapable { |
|
34 |
|
|
35 |
/** |
|
36 |
* Gets the statistics of the object than implements this interface |
|
37 |
* |
|
38 |
* @param status |
|
39 |
* @return the statistics |
|
40 |
*/ |
|
41 |
Statistics getStatistics(SimpleTaskStatus status); |
|
42 |
|
|
43 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/VectorialROI.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
import java.util.List; |
|
26 |
|
|
27 |
import org.gvsig.fmap.geom.Geometry; |
|
28 |
|
|
29 |
|
|
30 |
/** |
|
31 |
* @author fdiaz |
|
32 |
* |
|
33 |
*/ |
|
34 |
public interface VectorialROI extends ROI { |
|
35 |
|
|
36 |
|
|
37 |
/** |
|
38 |
* Adds a geometry |
|
39 |
* |
|
40 |
* @param geometry |
|
41 |
*/ |
|
42 |
public void addGeometry(Geometry geometry); |
|
43 |
|
|
44 |
/** |
|
45 |
* Deletes a geometry with the <code>index</code> selected |
|
46 |
* |
|
47 |
* @param index |
|
48 |
*/ |
|
49 |
public void deleteGeometry(int index); |
|
50 |
|
|
51 |
|
|
52 |
/** |
|
53 |
* Gets the list of geometries of this ROI |
|
54 |
* |
|
55 |
* @return |
|
56 |
*/ |
|
57 |
public List<Geometry> getGeometries(); |
|
58 |
|
|
59 |
|
|
60 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/Band.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
|
|
26 |
/** |
|
27 |
* @author fdiaz |
|
28 |
* |
|
29 |
*/ |
|
30 |
public interface Band { |
|
31 |
|
|
32 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/BufferManager.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
|
|
26 |
/** |
|
27 |
* @author fdiaz |
|
28 |
* |
|
29 |
*/ |
|
30 |
public interface BufferManager { |
|
31 |
|
|
32 |
/** |
|
33 |
* Creates a Buffer from parameters |
|
34 |
* |
|
35 |
* @param bufferParams |
|
36 |
* @return |
|
37 |
*/ |
|
38 |
public Buffer createBuffer(BufferParams bufferParams); |
|
39 |
|
|
40 |
/** |
|
41 |
* Creates a NoData object. |
|
42 |
* |
|
43 |
* @param noData |
|
44 |
* @param noDataNative |
|
45 |
* @param filename |
|
46 |
* @param bandCount |
|
47 |
* @return |
|
48 |
*/ |
|
49 |
public NoData createNoData(Number noData, Number noDataNative, String filename, int bandCount); |
|
50 |
|
|
51 |
|
|
52 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/Filter.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
|
|
26 |
/** |
|
27 |
* @author fdiaz |
|
28 |
* |
|
29 |
*/ |
|
30 |
public interface Filter { |
|
31 |
|
|
32 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/HistogramCapable.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.api; |
|
24 |
|
|
25 |
import org.gvsig.tools.task.SimpleTaskStatus; |
|
26 |
|
|
27 |
|
|
28 |
/** |
|
29 |
* This interface must be implemented by those classes which can provide an histogram. |
|
30 |
* |
|
31 |
* @author fdiaz |
|
32 |
* |
|
33 |
*/ |
|
34 |
public interface HistogramCapable { |
|
35 |
|
|
36 |
/** |
|
37 |
* Gets the histogram of the object than implements this interface |
|
38 |
* |
|
39 |
* @param status |
|
40 |
* @return the statistics |
|
41 |
*/ |
|
42 |
Histogram getHistogram(SimpleTaskStatus status); |
|
43 |
|
|
44 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/pom.xml | ||
---|---|---|
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.raster.lib.buffer</artifactId> |
|
6 |
<version>2.4.1-SNAPSHOT</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.raster.lib.buffer.api</artifactId> |
|
9 |
<name>org.gvsig.raster.lib.buffer.api</name> |
|
10 |
<dependencies> |
|
11 |
<dependency> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
14 |
</dependency> |
|
15 |
<dependency> |
|
16 |
<groupId>org.gvsig</groupId> |
|
17 |
<artifactId>org.gvsig.proj.lib.api</artifactId> |
|
18 |
</dependency> |
|
19 |
<dependency> |
|
20 |
<groupId>org.gvsig</groupId> |
|
21 |
<artifactId>org.gvsig.fmap.geometry.api</artifactId> |
|
22 |
</dependency> |
|
23 |
</dependencies> |
|
24 |
</project> |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/pom.xml | ||
---|---|---|
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.raster.lib</artifactId> |
|
6 |
<version>2.4.1-SNAPSHOT</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.raster.lib.buffer</artifactId> |
|
9 |
<packaging>pom</packaging> |
|
10 |
<name>org.gvsig.raster.lib.buffer</name> |
|
11 |
<modules> |
|
12 |
<module>org.gvsig.raster.lib.buffer.api</module> |
|
13 |
<module>org.gvsig.raster.lib.buffer.spi</module> |
|
14 |
<module>org.gvsig.raster.lib.buffer.impl</module> |
|
15 |
</modules> |
|
16 |
</project> |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.spi/pom.xml | ||
---|---|---|
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.raster.lib.buffer</artifactId> |
|
6 |
<version>2.4.1-SNAPSHOT</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.raster.lib.buffer.spi</artifactId> |
|
9 |
<name>org.gvsig.raster.lib.buffer.spi</name> |
|
10 |
<dependencies> |
|
11 |
<dependency> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.raster.lib.buffer.api</artifactId> |
|
14 |
</dependency> |
|
15 |
</dependencies> |
|
16 |
</project> |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.spi/src/main/java/org/gvsig/raster/lib/buffer/spi/AbstractBuffer.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.spi; |
|
24 |
|
|
25 |
import org.gvsig.raster.lib.buffer.api.Buffer; |
|
26 |
|
|
27 |
|
|
28 |
/** |
|
29 |
* @author fdiaz |
|
30 |
* |
|
31 |
*/ |
|
32 |
public abstract class AbstractBuffer implements Buffer{ |
|
33 |
|
|
34 |
/** |
|
35 |
* |
|
36 |
*/ |
|
37 |
public AbstractBuffer() { |
|
38 |
// TODO Auto-generated constructor stub |
|
39 |
} |
|
40 |
|
|
41 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.spi/src/main/java/org/gvsig/raster/lib/buffer/spi/AbstractROI.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 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.lib.buffer.spi; |
|
24 |
|
|
25 |
import java.awt.Color; |
|
26 |
|
|
27 |
import org.gvsig.raster.lib.buffer.api.ROI; |
|
28 |
|
|
29 |
|
|
30 |
/** |
|
31 |
* @author fdiaz |
|
32 |
* |
|
33 |
*/ |
|
34 |
public abstract class AbstractROI implements ROI { |
|
35 |
|
|
36 |
/** |
|
37 |
* |
|
38 |
*/ |
|
39 |
public AbstractROI() { |
|
40 |
// TODO Auto-generated constructor stub |
|
41 |
} |
|
42 |
|
|
43 |
/* (non-Javadoc) |
|
44 |
* @see org.gvsig.raster.lib.buffer.api.ROI#getColor() |
|
45 |
*/ |
|
46 |
@Override |
|
47 |
public Color getColor() { |
|
48 |
// TODO Auto-generated method stub |
|
49 |
return null; |
|
50 |
} |
|
51 |
|
|
52 |
/* (non-Javadoc) |
|
53 |
* @see org.gvsig.raster.lib.buffer.api.ROI#getID() |
|
54 |
*/ |
|
55 |
@Override |
|
56 |
public long getID() { |
|
57 |
// TODO Auto-generated method stub |
|
58 |
return 0; |
|
59 |
} |
|
60 |
|
|
61 |
/* (non-Javadoc) |
|
62 |
* @see org.gvsig.raster.lib.buffer.api.ROI#getName() |
|
63 |
*/ |
|
64 |
@Override |
|
65 |
public String getName() { |
|
66 |
// TODO Auto-generated method stub |
|
67 |
return null; |
|
68 |
} |
|
69 |
|
|
70 |
/* (non-Javadoc) |
|
71 |
* @see org.gvsig.raster.lib.buffer.api.ROI#isInside(double, double, double, double) |
|
72 |
*/ |
|
73 |
@Override |
|
74 |
public boolean isInside(double arg0, double arg1, double arg2, double arg3) { |
|
75 |
// TODO Auto-generated method stub |
|
76 |
return false; |
|
77 |
} |
|
78 |
|
|
79 |
/* (non-Javadoc) |
|
80 |
* @see org.gvsig.raster.lib.buffer.api.ROI#isInsideOfPolygon(int, int) |
|
81 |
*/ |
|
82 |
@Override |
|
83 |
public boolean isInsideOfPolygon(int arg0, int arg1) { |
|
84 |
// TODO Auto-generated method stub |
|
85 |
return false; |
|
86 |
} |
|
87 |
|
|
88 |
/* (non-Javadoc) |
|
89 |
* @see org.gvsig.raster.lib.buffer.api.ROI#setColor(java.awt.Color) |
|
90 |
*/ |
|
91 |
@Override |
|
92 |
public void setColor(Color arg0) { |
|
93 |
// TODO Auto-generated method stub |
|
94 |
|
|
95 |
} |
|
96 |
|
|
97 |
/* (non-Javadoc) |
|
98 |
* @see org.gvsig.raster.lib.buffer.api.ROI#setID(long) |
|
99 |
*/ |
|
100 |
@Override |
|
101 |
public void setID(long arg0) { |
|
102 |
// TODO Auto-generated method stub |
|
103 |
|
|
104 |
} |
Also available in: Unified diff