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