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 / RasterDataParameters.java @ 1859
History | View | Annotate | Download (3.91 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.fmap.dal.coverage.store.parameter; |
29 |
|
30 |
import java.io.File; |
31 |
|
32 |
import org.cresques.cts.IProjection; |
33 |
import org.gvsig.fmap.dal.DataStoreParameters; |
34 |
|
35 |
/**
|
36 |
* All raster parameter should inherit from this interface. It provides
|
37 |
* general methods for open a raster.
|
38 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
39 |
*/
|
40 |
public interface RasterDataParameters extends DataStoreParameters { |
41 |
//Load options
|
42 |
public static int REPROJECT_DATA = 1; |
43 |
public static int REPROJECT_VIEW = 2; |
44 |
public static int DONT_CHANGE_PROJECTION = 0; |
45 |
public static int NEW_PROJETION_TO_THE_LAYER = 6; |
46 |
public static int NOT_LOAD = 4; |
47 |
public static int ON_THE_FLY = 5; |
48 |
|
49 |
//General parameters
|
50 |
public static final String FIELD_URI = "uri"; |
51 |
public static final String FIELD_CRS = "CRS"; |
52 |
public static final String FIELD_RMF_FOLDER = "rmf_folder"; |
53 |
|
54 |
|
55 |
/**
|
56 |
* Flag to know if this provider is visible or it isn't
|
57 |
* @return
|
58 |
*/
|
59 |
public boolean isVisible(); |
60 |
|
61 |
/**
|
62 |
* Assigns the flag to know if this provider is visible or it isn't
|
63 |
* @return
|
64 |
*/
|
65 |
public void setVisible(boolean visible); |
66 |
|
67 |
public boolean isValid(); |
68 |
|
69 |
/**
|
70 |
* When a layer is loaded will have several options when its projection is not the same that the view projection.
|
71 |
* This options are defined as static variables in RasterDataParameters interface
|
72 |
* @param frame
|
73 |
*/
|
74 |
public void setReprojectionOption(int option); |
75 |
|
76 |
/**
|
77 |
* When a layer is loaded will have several options when its projection is not the same that the view projection.
|
78 |
* This options are defined as static variables in RasterDataParameters interface
|
79 |
* @return
|
80 |
*/
|
81 |
public int getReprojectionOption(); |
82 |
|
83 |
/**
|
84 |
* Gets the uniform resource identifier of a provider. This can be
|
85 |
* a file name or a URL
|
86 |
* @return
|
87 |
*/
|
88 |
public String getURI(); |
89 |
|
90 |
/**
|
91 |
* Sets the uniform resource identifier of a provider. This can be
|
92 |
* a file name or a URL
|
93 |
* @param uri
|
94 |
*/
|
95 |
public void setURI(String uri); |
96 |
|
97 |
public String getSRSID(); |
98 |
|
99 |
public void setSRSID(String srsid); |
100 |
|
101 |
public void setSRS(IProjection srs); |
102 |
|
103 |
public IProjection getSRS();
|
104 |
|
105 |
public boolean isOverridingHost(); |
106 |
|
107 |
public void setOverrideHost(boolean over); |
108 |
|
109 |
/**
|
110 |
* Sets the number of alpha band
|
111 |
* @param alphaBand
|
112 |
*/
|
113 |
public void setAlphaBand(int alphaBand); |
114 |
|
115 |
/**
|
116 |
* Sets the frame width
|
117 |
* @param frame
|
118 |
*/
|
119 |
public void setFrame(int frame); |
120 |
|
121 |
/**
|
122 |
* Gets the number of alpha band
|
123 |
* @param alphaBand
|
124 |
*/
|
125 |
public int getAlphaBand(); |
126 |
|
127 |
/**
|
128 |
* Gets the frame width
|
129 |
* @param frame
|
130 |
*/
|
131 |
public int getFrame(); |
132 |
|
133 |
/**
|
134 |
* Sets the folder to store RMF file
|
135 |
* @param rmfFolder
|
136 |
*/
|
137 |
public void setRMFFolder(File rmfFolder); |
138 |
|
139 |
/**
|
140 |
* Gets the folder to store RMF file
|
141 |
* @return
|
142 |
*/
|
143 |
public File getRMFFolder(); |
144 |
|
145 |
/**
|
146 |
* Return true if the store to open is going to be tiled
|
147 |
*/
|
148 |
public boolean isSourceTiled(); |
149 |
} |