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 |
/* 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 |
import java.net.URI; |
32 |
|
33 |
import org.cresques.cts.IProjection; |
34 |
|
35 |
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 |
|
52 |
//General parameters
|
53 |
public static final String FIELD_URI = "uri"; |
54 |
public static final String FIELD_CRS = "crs"; |
55 |
public static final String FIELD_RMF_FOLDER = "rmf_folder"; |
56 |
|
57 |
|
58 |
/**
|
59 |
* Flag to know if this provider is visible or it isn't
|
60 |
* @return
|
61 |
*/
|
62 |
public boolean isVisible(); |
63 |
|
64 |
/**
|
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 |
|
70 |
public boolean isValid(); |
71 |
|
72 |
/**
|
73 |
* When a layer is loaded will have several options when its projection is not the same that the view projection.
|
74 |
* This options are defined as static variables in RasterDataParameters interface
|
75 |
* @param frame
|
76 |
*/
|
77 |
public void setReprojectionOption(int option); |
78 |
|
79 |
/**
|
80 |
* When a layer is loaded will have several options when its projection is not the same that the view projection.
|
81 |
* This options are defined as static variables in RasterDataParameters interface
|
82 |
* @return
|
83 |
*/
|
84 |
public int getReprojectionOption(); |
85 |
|
86 |
/**
|
87 |
* Gets the uniform resource identifier of a provider. This can be
|
88 |
* a file name or a URL
|
89 |
* @return
|
90 |
*/
|
91 |
public URI getURI(); |
92 |
|
93 |
/**
|
94 |
* Sets the uniform resource identifier of a provider. This can be
|
95 |
* a file name or a URL
|
96 |
* @param uri
|
97 |
*/
|
98 |
public void setURI(URI uri); |
99 |
|
100 |
public String getSRSID(); |
101 |
|
102 |
public void setSRSID(String srsid); |
103 |
|
104 |
public void setSRS(IProjection srs); |
105 |
|
106 |
public IProjection getSRS();
|
107 |
|
108 |
public boolean isOverridingHost(); |
109 |
|
110 |
public void setOverrideHost(boolean over); |
111 |
|
112 |
/**
|
113 |
* Sets the number of alpha band
|
114 |
* @param alphaBand
|
115 |
*/
|
116 |
public void setAlphaBand(int alphaBand); |
117 |
|
118 |
/**
|
119 |
* Sets the frame width
|
120 |
* @param frame
|
121 |
*/
|
122 |
public void setFrame(int frame); |
123 |
|
124 |
/**
|
125 |
* Gets the number of alpha band
|
126 |
* @param alphaBand
|
127 |
*/
|
128 |
public int getAlphaBand(); |
129 |
|
130 |
/**
|
131 |
* Gets the frame width
|
132 |
* @param frame
|
133 |
*/
|
134 |
public int getFrame(); |
135 |
|
136 |
/**
|
137 |
* Sets the folder to store RMF file. This folder may be different
|
138 |
* than the raster folder
|
139 |
* @param rmfFolder
|
140 |
*/
|
141 |
public void setRMFFolder(File rmfFolder); |
142 |
|
143 |
/**
|
144 |
* Gets the folder to store RMF file
|
145 |
* @return
|
146 |
*/
|
147 |
public File getRMFFolder(); |
148 |
|
149 |
/**
|
150 |
* Return true if the store to open is going to be tiled
|
151 |
*/
|
152 |
public boolean isSourceTiled(); |
153 |
|
154 |
/**
|
155 |
* Assigns field from a data parameters to other
|
156 |
* @param par
|
157 |
*/
|
158 |
public void assignFields(RasterDataParameters par, RasterDataServerExplorer explorer); |
159 |
} |