Statistics
| Revision:

gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster / org.gvsig.fmap.mapcontext.raster / org.gvsig.fmap.mapcontext.raster.api / src / main / java / org / gvsig / fmap / mapcontext / raster / api / RasterLayer.java @ 6900

History | View | Annotate | Download (2.51 KB)

1
/* 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.mapcontext.raster.api;
24

    
25
import org.gvsig.fmap.dal.raster.api.RasterQuery;
26
import org.gvsig.fmap.dal.raster.api.RasterStore;
27
import org.gvsig.fmap.mapcontext.exceptions.LegendLayerException;
28
import org.gvsig.fmap.mapcontext.layers.operations.InfoByPoint;
29
import org.gvsig.fmap.mapcontext.layers.operations.SingleLayer;
30
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
31
import org.gvsig.raster.lib.buffer.api.statistics.Statistics;
32
import org.gvsig.raster.lib.legend.api.RasterLegend;
33
import org.gvsig.tools.task.SimpleTaskStatus;
34

    
35

    
36
/**
37
 * Interface for all raster layers
38
 * @author dmartinezizquierdo
39
 *
40
 */
41
public interface RasterLayer extends SingleLayer, InfoByPoint {
42

    
43
    //TODO ILabelable,ClassifiableRaster,InfoByPoint??
44

    
45
    /**
46
     * Returns RasterStore of this layer
47
     * @return RasterStore
48
     */
49
    public RasterStore getRasterStore();
50

    
51
    /**
52
     * Sets a BaseQuery to be applied to the data in the store
53
     * @param baseQuery
54
     */
55
    public void setBaseQuery(RasterQuery baseQuery);
56

    
57
    /**
58
     * Returns the BaseQuery
59
     * @return RasterQuery
60
     */
61
    public RasterQuery getBaseQuery();
62

    
63
    /**
64
     * Creates a new RasterQuery from the store
65
     * @return RasterQuery
66
     */
67
    public RasterQuery createRasterQuery();
68

    
69
    public void setLegend(ILegend legend);
70

    
71
    /**
72
     * @return
73
     */
74
    public String getStatisticsString();
75

    
76
    /**
77
     * @return
78
     */
79
    public Statistics getStatistics(SimpleTaskStatus status);
80

    
81
    public void recalculateStatistics();
82

    
83
    /**
84
     * @return
85
     */
86
    public RasterLegend getLegend();
87

    
88
}