Statistics
| Revision:

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 @ 2438

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

    
32
import org.cresques.cts.IProjection;
33
import org.gvsig.fmap.dal.DataStoreParameters;
34
import org.gvsig.fmap.dal.coverage.store.RasterDataServerExplorer;
35

    
36
/**
37
 * All raster parameter should inherit from this interface. It provides
38
 * general methods for open a raster.
39
 * @author Nacho Brodin (nachobrodin@gmail.com)
40
 */
41
public interface RasterDataParameters extends DataStoreParameters {
42
        //Load options
43
        public static int             REPROJECT_DATA               = 1;
44
        public static int             REPROJECT_VIEW               = 2;
45
        public static int             DONT_CHANGE_PROJECTION       = 0;
46
        public static int             NEW_PROJETION_TO_THE_LAYER   = 6;
47
        public static int             NOT_LOAD                     = 4;
48
        public static int             ON_THE_FLY                   = 5;
49
        
50
        //General parameters
51
        public static final String    FIELD_URI                    = "uri";
52
        public static final String    FIELD_CRS                    = "CRS";
53
        public static final String    FIELD_RMF_FOLDER             = "rmf_folder";
54
        
55

    
56
        /**
57
         * Flag to know if this provider is visible or it isn't
58
         * @return
59
         */
60
        public boolean isVisible();
61
        
62
        /**
63
         * Assigns the flag to know if this provider is visible or it isn't
64
         * @return
65
         */
66
        public void setVisible(boolean visible);
67
        
68
        public boolean isValid();
69
        
70
        /**
71
         * When a layer is loaded will have several options when its projection is not the same that the view projection.
72
         * This options are defined as static variables in RasterDataParameters interface 
73
         * @param frame
74
         */
75
        public void setReprojectionOption(int option);
76
        
77
        /**
78
         * When a layer is loaded will have several options when its projection is not the same that the view projection.
79
         * This options are defined as static variables in RasterDataParameters interface  
80
         * @return
81
         */
82
        public int getReprojectionOption();
83
        
84
        /**
85
         * Gets the uniform resource identifier of a provider. This can be
86
         * a file name or a URL 
87
         * @return
88
         */
89
        public String getURI();
90
        
91
        /**
92
         * Sets the uniform resource identifier of a provider. This can be
93
         * a file name or a URL 
94
         * @param uri
95
         */
96
        public void setURI(String uri);
97

    
98
        public String getSRSID();
99

    
100
        public void setSRSID(String srsid);
101

    
102
        public void setSRS(IProjection srs);
103

    
104
        public IProjection getSRS();
105
        
106
        public boolean isOverridingHost();
107
        
108
        public void setOverrideHost(boolean over);
109
        
110
        /**
111
         * Sets the number of alpha band
112
         * @param alphaBand
113
         */
114
        public void setAlphaBand(int alphaBand);
115
        
116
        /**
117
         * Sets the frame width
118
         * @param frame
119
         */
120
        public void setFrame(int frame);
121
        
122
        /**
123
         * Gets the number of alpha band
124
         * @param alphaBand
125
         */
126
        public int getAlphaBand();
127
        
128
        /**
129
         * Gets the frame width
130
         * @param frame
131
         */
132
        public int getFrame();
133
        
134
        /**
135
         * Sets the folder to store RMF file. This folder may be different 
136
         * than the raster folder
137
         * @param rmfFolder
138
         */
139
        public void setRMFFolder(File rmfFolder);
140
        
141
        /**
142
         * Gets the folder to store RMF file
143
         * @return
144
         */
145
        public File getRMFFolder();
146
        
147
        /**
148
         * Return true if the store to open is going to be tiled
149
         */
150
        public boolean isSourceTiled();
151
        
152
        /**
153
         * Assigns field from a data parameters to other
154
         * @param par
155
         */
156
        public void assignFields(RasterDataParameters par, RasterDataServerExplorer explorer);
157
}