svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.spi / src / main / java / org / gvsig / fmap / dal / raster / spi / RasterStoreProvider.java @ 43876
History | View | Annotate | Download (3.05 KB)
1 | 43803 | fdiaz | /* gvSIG. Desktop Geographic Information System.
|
---|---|---|---|
2 | *
|
||
3 | * Copyright ? 2007-2016 gvSIG Association
|
||
4 | *
|
||
5 | * This program is free software; you can redistribute it and/or
|
||
6 | * modify it under the terms of the GNU General Public License
|
||
7 | * as published by the Free Software Foundation; either version 2
|
||
8 | * of the License, or (at your option) any later version.
|
||
9 | *
|
||
10 | * This program is distributed in the hope that it will be useful,
|
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | * GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License
|
||
16 | * along with this program; if not, write to the Free Software
|
||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
18 | * MA 02110-1301, USA.
|
||
19 | *
|
||
20 | * For any additional information, do not hesitate to contact us
|
||
21 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
22 | */
|
||
23 | package org.gvsig.fmap.dal.raster.spi; |
||
24 | |||
25 | import java.awt.Image; |
||
26 | |||
27 | import org.gvsig.fmap.dal.DataStoreParameters; |
||
28 | import org.gvsig.fmap.dal.exception.InitializeException; |
||
29 | 43876 | jjdelcerro | import org.gvsig.fmap.dal.raster.BandAttributeDescriptor; |
30 | import org.gvsig.fmap.dal.raster.BandDescriptor; |
||
31 | import org.gvsig.fmap.dal.raster.RasterQuery; |
||
32 | 43803 | fdiaz | import org.gvsig.fmap.dal.spi.DataStoreProvider; |
33 | import org.gvsig.raster.lib.buffer.api.BandInfo; |
||
34 | import org.gvsig.raster.lib.buffer.api.Buffer; |
||
35 | import org.gvsig.raster.lib.buffer.api.BufferDimensions; |
||
36 | import org.gvsig.raster.lib.buffer.api.TileStruct; |
||
37 | import org.gvsig.raster.lib.buffer.api.exceptions.BufferException; |
||
38 | |||
39 | /**
|
||
40 | * Interface for all raster based data providers.
|
||
41 | * @author dmartinezizquierdo
|
||
42 | *
|
||
43 | */
|
||
44 | public interface RasterStoreProvider extends DataStoreProvider{ |
||
45 | //extends CoverageStoreProvider{
|
||
46 | |||
47 | /**
|
||
48 | * @param rasterQuery
|
||
49 | * @return Buffer
|
||
50 | * @throws BufferException
|
||
51 | */
|
||
52 | Buffer createBuffer(RasterQuery rasterQuery) throws BufferException; |
||
53 | |||
54 | /**
|
||
55 | * Gets {@link BandDescriptor} of band received as parameter. If band does
|
||
56 | * not have {@link BandAttributeDescriptor}, this method will return an
|
||
57 | * empty {@link BandDescriptor}.
|
||
58 | *
|
||
59 | * @param band
|
||
60 | * Band to get its {@link BandDescriptor}
|
||
61 | * @return BandDescriptor
|
||
62 | */
|
||
63 | public BandDescriptor getBandDescriptor(int band); |
||
64 | |||
65 | /**
|
||
66 | * Gets bands of raster provider source
|
||
67 | *
|
||
68 | * @return Number of available bands from source
|
||
69 | */
|
||
70 | public int getBands(); |
||
71 | |||
72 | /**
|
||
73 | * Return the appropriate TileStruct for a tiled access to this provider, if can.
|
||
74 | *
|
||
75 | * @return
|
||
76 | */
|
||
77 | public TileStruct getTileStruct();
|
||
78 | |||
79 | /**
|
||
80 | * @return the image legend or null
|
||
81 | */
|
||
82 | public Image getImageLegend(); |
||
83 | |||
84 | /**
|
||
85 | * Return the parameters of this provider
|
||
86 | *
|
||
87 | * @return
|
||
88 | */
|
||
89 | public DataStoreParameters getParameters();
|
||
90 | |||
91 | /**
|
||
92 | * Return the buffer dimensions of the complete store.
|
||
93 | * @return
|
||
94 | * @throws InitializeException
|
||
95 | */
|
||
96 | public BufferDimensions getDimensions() throws InitializeException; |
||
97 | |||
98 | /**
|
||
99 | * @return
|
||
100 | */
|
||
101 | public boolean isTiled(); |
||
102 | } |