gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.api / src / main / java / org / gvsig / fmap / dal / coverage / store / parameter / NewRasterStoreParameters.java @ 1081
History | View | Annotate | Download (4.46 KB)
1 |
package org.gvsig.fmap.dal.coverage.store.parameter; |
---|---|
2 |
|
3 |
import java.awt.geom.AffineTransform; |
4 |
|
5 |
import org.cresques.cts.IProjection; |
6 |
import org.gvsig.fmap.dal.NewDataStoreParameters; |
7 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
8 |
import org.gvsig.fmap.dal.coverage.datastruct.Params; |
9 |
import org.gvsig.fmap.dal.coverage.store.DataServerWriter; |
10 |
import org.gvsig.fmap.dal.coverage.store.props.ColorInterpretation; |
11 |
|
12 |
/**
|
13 |
* This class represents parameters that we need to create a new
|
14 |
* raster source.
|
15 |
*
|
16 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
17 |
*/
|
18 |
public interface NewRasterStoreParameters extends NewDataStoreParameters { |
19 |
public static String FIELD_BUFFER = "buffer"; |
20 |
public static String FIELD_COLORINTERPRETATION = "colorInterpretation"; |
21 |
public static String FIELD_SRS = "srs"; |
22 |
public static String FIELD_PARAMS = "driverparams"; |
23 |
public static String FIELD_BAND = "band"; |
24 |
public static String FIELD_WKT = "wktproj"; |
25 |
public static String FIELD_AFFINETRANSFORM = "affineTransform"; |
26 |
public static String FIELD_DATA_SERVER = "dataserver"; |
27 |
|
28 |
/**
|
29 |
* Sets the data server
|
30 |
* @param dataServer
|
31 |
*/
|
32 |
public void setDataServer(DataServerWriter dataServer); |
33 |
|
34 |
/**
|
35 |
* Sets the name of the file to save
|
36 |
* @param fileName
|
37 |
*/
|
38 |
public void setDestination(String path, String fileName); |
39 |
|
40 |
/**
|
41 |
* Sets the buffer with data loaded
|
42 |
* @param buffer
|
43 |
*/
|
44 |
public void setBuffer(Buffer buffer); |
45 |
|
46 |
/**
|
47 |
* Sets the color interpretation. Constants with color interpretation are
|
48 |
* declared int {@link ColorInterpretation} class.
|
49 |
* @param colorInterpretation
|
50 |
*/
|
51 |
public void setColorInterpretation(String[] colorInterpretation); |
52 |
|
53 |
/**
|
54 |
* Sets the projection
|
55 |
* @param projection
|
56 |
*/
|
57 |
public void setProjection(IProjection projection); |
58 |
|
59 |
/**
|
60 |
* Sets the driver parameters. This method is useful when the parameters are loaded
|
61 |
* using the driver GUI. If this parameters does not exists then it will use generic
|
62 |
* configuration.
|
63 |
* @param params
|
64 |
*/
|
65 |
public void setDriverParams(Params params); |
66 |
|
67 |
/**
|
68 |
* Sets the projection using Wkt notation
|
69 |
* @param wkt
|
70 |
*/
|
71 |
public void setWktProjection(String wkt); |
72 |
|
73 |
/**
|
74 |
* Sets the number of band in the buffer that will be saved. If this value is greater
|
75 |
* than zero only one band (n) will be written. If this value is lower than zero
|
76 |
* then all bands will be written. This is the value by default.
|
77 |
* @param n
|
78 |
*/
|
79 |
public void setBand(int n); |
80 |
|
81 |
/**
|
82 |
* This method is maintained to keep compatibility with the old system. It is recommended
|
83 |
* not to use. If the buffer don't have bounding box the affine transform will be the
|
84 |
* identity and if not the affine transform will be calculated using the geographic information.
|
85 |
*
|
86 |
* @param at
|
87 |
* @deprecated
|
88 |
*/
|
89 |
public void setAffineTransform(AffineTransform at); |
90 |
|
91 |
/**
|
92 |
* This method is maintained to keep compatibility with the old system. It is recommended
|
93 |
* not to use. If the buffer don't have bounding box the affine transform will be the
|
94 |
* identity and if not the affine transform will be calculated using the geographic information.
|
95 |
*
|
96 |
* @return AffineTransform
|
97 |
*/
|
98 |
public AffineTransform getAffineTransform(); |
99 |
|
100 |
/**
|
101 |
* Gets the number of band in the buffer that will be saved. If this value is greater
|
102 |
* than zero only one band (n) will be written. If this value is lower than zero
|
103 |
* then all bands will be written. This is the value by default.
|
104 |
* @return
|
105 |
*/
|
106 |
public int getBand(); |
107 |
|
108 |
/**
|
109 |
* Gets the projection using Wkt notation
|
110 |
* @return
|
111 |
*/
|
112 |
public String getWktProjection(); |
113 |
|
114 |
/**
|
115 |
* Gets the driver parameters. This method is useful when the parameters are loaded
|
116 |
* using the driver GUI. If this parameters does not exists then it will use generic
|
117 |
* configuration.
|
118 |
* @return
|
119 |
*/
|
120 |
public Params getDriverParams();
|
121 |
|
122 |
/**
|
123 |
* Gets the name of the file to save
|
124 |
* @return
|
125 |
*/
|
126 |
public String getFileName(); |
127 |
|
128 |
public String getPath(); |
129 |
|
130 |
/**
|
131 |
* Gets the buffer with data loaded
|
132 |
* @return
|
133 |
*/
|
134 |
public Buffer getBuffer(); |
135 |
|
136 |
/**
|
137 |
* Gets the color interpretation. Constants with color interpretation are
|
138 |
* declared int {@link ColorInterpretation} class.
|
139 |
* @return
|
140 |
*/
|
141 |
public String[] getColorInterpretation(); |
142 |
|
143 |
/**
|
144 |
* Gets the projection
|
145 |
* @return
|
146 |
*/
|
147 |
public IProjection getProjection();
|
148 |
|
149 |
/**
|
150 |
* Gets the data server
|
151 |
* @return
|
152 |
*/
|
153 |
public DataServerWriter getDataServer();
|
154 |
} |
155 |
|