Revision 633
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/props/TimeSerials.java | ||
---|---|---|
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 |
package org.gvsig.fmap.dal.coverage.store.props; |
|
23 |
|
|
24 |
import java.text.ParseException; |
|
25 |
import org.gvsig.timesupport.Time; |
|
26 |
|
|
27 |
/** |
|
28 |
* This interfaz represents a list of serials of raster data |
|
29 |
* |
|
30 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
31 |
*/ |
|
32 |
public interface TimeSerials { |
|
33 |
|
|
34 |
/** |
|
35 |
* Selects the serial |
|
36 |
* @param name |
|
37 |
*/ |
|
38 |
public void selectSerial(String name); |
|
39 |
|
|
40 |
/** |
|
41 |
* Selects the serial |
|
42 |
* @param pos |
|
43 |
*/ |
|
44 |
public void selectSerial(int pos); |
|
45 |
|
|
46 |
/** |
|
47 |
* Sets the description |
|
48 |
* @return |
|
49 |
*/ |
|
50 |
public void setDescription(String description); |
|
51 |
|
|
52 |
/** |
|
53 |
* Gets the serial name |
|
54 |
* @return |
|
55 |
*/ |
|
56 |
public String getName(); |
|
57 |
|
|
58 |
/** |
|
59 |
* Sets the serial name |
|
60 |
* @return |
|
61 |
*/ |
|
62 |
public void setName(String name); |
|
63 |
|
|
64 |
/** |
|
65 |
* Gets the description |
|
66 |
* @return |
|
67 |
*/ |
|
68 |
public String getDescription(); |
|
69 |
|
|
70 |
/** |
|
71 |
* Creates the serial time using a Time object from org.gvsig.timesupport |
|
72 |
* @param time |
|
73 |
* @throws ParseException |
|
74 |
*/ |
|
75 |
public void createNewTime(Time time) throws ParseException; |
|
76 |
|
|
77 |
/** |
|
78 |
* Creates a new single value for the time |
|
79 |
* @param value |
|
80 |
* @throws ParseException |
|
81 |
*/ |
|
82 |
public void createNewTimeValue(String value) throws ParseException; |
|
83 |
|
|
84 |
/** |
|
85 |
* Creates a pair of values for the time. This will represent a interval |
|
86 |
* @param dateA |
|
87 |
* @param dateB |
|
88 |
* @throws ParseException |
|
89 |
*/ |
|
90 |
public void createNewTimeInterval(String dateA, String dateB) throws ParseException; |
|
91 |
|
|
92 |
/** |
|
93 |
* Creates a new single value for the time. This method forces the use of |
|
94 |
* the numeric type. |
|
95 |
* @param value |
|
96 |
* @throws ParseException |
|
97 |
*/ |
|
98 |
public void createNewTimeValue(double value) throws ParseException; |
|
99 |
|
|
100 |
/** |
|
101 |
* Creates a pair of values for the time. This will represent a interval. This method |
|
102 |
* forces the use of the numeric type. |
|
103 |
* @param dateA |
|
104 |
* @param dateB |
|
105 |
* @throws ParseException |
|
106 |
*/ |
|
107 |
public void createNewTimeInterval(double a, double b) throws ParseException; |
|
108 |
|
|
109 |
/** |
|
110 |
* Removes all date intervals |
|
111 |
*/ |
|
112 |
public void removeIntervals(); |
|
113 |
|
|
114 |
/** |
|
115 |
* Counts the number of serials |
|
116 |
* @return |
|
117 |
*/ |
|
118 |
public int getNumberOfSerials(); |
|
119 |
} |
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/props/TimeSeries.java | ||
---|---|---|
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 |
package org.gvsig.fmap.dal.coverage.store.props; |
|
23 |
|
|
24 |
import java.text.ParseException; |
|
25 |
import org.gvsig.timesupport.Time; |
|
26 |
|
|
27 |
/** |
|
28 |
* This interfaz represents a list of serials of raster data |
|
29 |
* |
|
30 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
31 |
*/ |
|
32 |
public interface TimeSeries { |
|
33 |
|
|
34 |
/** |
|
35 |
* Selects the serial |
|
36 |
* @param name |
|
37 |
*/ |
|
38 |
public void selectSerial(String name); |
|
39 |
|
|
40 |
/** |
|
41 |
* Selects the serial |
|
42 |
* @param pos |
|
43 |
*/ |
|
44 |
public void selectSerial(int pos); |
|
45 |
|
|
46 |
/** |
|
47 |
* Sets the description |
|
48 |
* @return |
|
49 |
*/ |
|
50 |
public void setDescription(String description); |
|
51 |
|
|
52 |
/** |
|
53 |
* Gets the serial name |
|
54 |
* @return |
|
55 |
*/ |
|
56 |
public String getName(); |
|
57 |
|
|
58 |
/** |
|
59 |
* Sets the serial name |
|
60 |
* @return |
|
61 |
*/ |
|
62 |
public void setName(String name); |
|
63 |
|
|
64 |
/** |
|
65 |
* Gets the description |
|
66 |
* @return |
|
67 |
*/ |
|
68 |
public String getDescription(); |
|
69 |
|
|
70 |
/** |
|
71 |
* Creates the serial time using a Time object from org.gvsig.timesupport |
|
72 |
* @param time |
|
73 |
* @throws ParseException |
|
74 |
*/ |
|
75 |
public void createNewTime(Time time) throws ParseException; |
|
76 |
|
|
77 |
/** |
|
78 |
* Creates a new single value for the time |
|
79 |
* @param value |
|
80 |
* @throws ParseException |
|
81 |
*/ |
|
82 |
public void createNewTimeValue(String value) throws ParseException; |
|
83 |
|
|
84 |
/** |
|
85 |
* Creates a pair of values for the time. This will represent a interval |
|
86 |
* @param dateA |
|
87 |
* @param dateB |
|
88 |
* @throws ParseException |
|
89 |
*/ |
|
90 |
public void createNewTimeInterval(String dateA, String dateB) throws ParseException; |
|
91 |
|
|
92 |
/** |
|
93 |
* Creates a new single value for the time. This method forces the use of |
|
94 |
* the numeric type. |
|
95 |
* @param value |
|
96 |
* @throws ParseException |
|
97 |
*/ |
|
98 |
public void createNewTimeValue(double value) throws ParseException; |
|
99 |
|
|
100 |
/** |
|
101 |
* Creates a pair of values for the time. This will represent a interval. This method |
|
102 |
* forces the use of the numeric type. |
|
103 |
* @param dateA |
|
104 |
* @param dateB |
|
105 |
* @throws ParseException |
|
106 |
*/ |
|
107 |
public void createNewTimeInterval(double a, double b) throws ParseException; |
|
108 |
|
|
109 |
/** |
|
110 |
* Removes all date intervals |
|
111 |
*/ |
|
112 |
public void removeIntervals(); |
|
113 |
|
|
114 |
/** |
|
115 |
* Counts the number of serials |
|
116 |
* @return |
|
117 |
*/ |
|
118 |
public int getNumberOfSerials(); |
|
119 |
} |
|
0 | 120 |
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/TRasterStore.java | ||
---|---|---|
24 | 24 |
import org.gvsig.fmap.dal.coverage.exception.OperationNotSupportedException; |
25 | 25 |
import org.gvsig.fmap.dal.coverage.exception.RmfSerializerException; |
26 | 26 |
import org.gvsig.fmap.dal.coverage.exception.TimeException; |
27 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSerials;
|
|
27 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSeries;
|
|
28 | 28 |
import org.gvsig.timesupport.Time; |
29 | 29 |
|
30 | 30 |
/** |
... | ... | |
67 | 67 |
* @return |
68 | 68 |
* @throws RmfSerializerException |
69 | 69 |
*/ |
70 |
public TimeSerials getTimeSerials() throws RmfSerializerException;
|
|
70 |
public TimeSeries getTimeSerials() throws RmfSerializerException;
|
|
71 | 71 |
|
72 | 72 |
/** |
73 | 73 |
* Sets the serial information |
74 | 74 |
* @throws RmfSerializerException |
75 | 75 |
*/ |
76 |
public void setTimeSerials(TimeSerials serialInfo) throws RmfSerializerException;
|
|
76 |
public void setTimeSerials(TimeSeries serialInfo) throws RmfSerializerException;
|
|
77 | 77 |
} |
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/provider/RasterProvider.java | ||
---|---|---|
39 | 39 |
import org.gvsig.fmap.dal.coverage.store.props.ColorInterpretation; |
40 | 40 |
import org.gvsig.fmap.dal.coverage.store.props.ColorTable; |
41 | 41 |
import org.gvsig.fmap.dal.coverage.store.props.Histogramable; |
42 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSerials;
|
|
42 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSeries;
|
|
43 | 43 |
import org.gvsig.fmap.dal.coverage.store.props.Transparency; |
44 | 44 |
import org.gvsig.fmap.dal.raster.spi.CoverageStoreProvider; |
45 | 45 |
import org.gvsig.raster.cache.tile.provider.TileServer; |
... | ... | |
471 | 471 |
* @return |
472 | 472 |
* @throws RmfSerializerException |
473 | 473 |
*/ |
474 |
public TimeSerials getTimeSerials() throws RmfSerializerException;
|
|
474 |
public TimeSeries getTimeSerials() throws RmfSerializerException;
|
|
475 | 475 |
|
476 | 476 |
/** |
477 | 477 |
* Sets the time serial information |
478 | 478 |
* @throws RmfSerializerException |
479 | 479 |
*/ |
480 |
public void setTimeSerials(TimeSerials serialInfo) throws RmfSerializerException;
|
|
480 |
public void setTimeSerials(TimeSeries serialInfo) throws RmfSerializerException;
|
|
481 | 481 |
|
482 | 482 |
} |
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/provider/DefaultRasterProvider.java | ||
---|---|---|
57 | 57 |
import org.gvsig.fmap.dal.coverage.store.props.ColorInterpretation; |
58 | 58 |
import org.gvsig.fmap.dal.coverage.store.props.ColorTable; |
59 | 59 |
import org.gvsig.fmap.dal.coverage.store.props.HistogramComputer; |
60 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSerials;
|
|
60 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSeries;
|
|
61 | 61 |
import org.gvsig.fmap.dal.coverage.store.props.Transparency; |
62 | 62 |
import org.gvsig.fmap.dal.coverage.util.FileUtils; |
63 | 63 |
import org.gvsig.fmap.dal.coverage.util.RasterUtils; |
... | ... | |
124 | 124 |
protected RmfBlocksManager rmfBlocksManager = null; |
125 | 125 |
protected ColorTable colorTable = null; |
126 | 126 |
protected DataStoreColorInterpretation colorInterpretation = null; |
127 |
protected TimeSerials serialInfo = null;
|
|
127 |
protected TimeSeries serialInfo = null;
|
|
128 | 128 |
|
129 | 129 |
/** |
130 | 130 |
* Indica si el valor NoData esta activo |
... | ... | |
628 | 628 |
* Dice si el fichero tiene georreferenciaci?n o no. |
629 | 629 |
* @return true si tiene georreferenciaci?n y false si no la tiene |
630 | 630 |
*/ |
631 |
public boolean isGeoreferenced(){ |
|
631 |
public boolean isGeoreferenced() {
|
|
632 | 632 |
return true; |
633 | 633 |
} |
634 | 634 |
|
... | ... | |
1242 | 1242 |
* (non-Javadoc) |
1243 | 1243 |
* @see org.gvsig.raster.impl.provider.RasterProvider#getTimeSerials() |
1244 | 1244 |
*/ |
1245 |
public TimeSerials getTimeSerials() throws RmfSerializerException {
|
|
1245 |
public TimeSeries getTimeSerials() throws RmfSerializerException {
|
|
1246 | 1246 |
if(serialInfo == null) { |
1247 | 1247 |
serialInfo = new DefaultTimeSerials(); |
1248 |
loadObjectFromRmf(TimeSerials.class, serialInfo);
|
|
1248 |
loadObjectFromRmf(TimeSeries.class, serialInfo);
|
|
1249 | 1249 |
//Seleccionamos la primera serie por defecto. El usuario seleccionar? otra si la necesita |
1250 | 1250 |
serialInfo.selectSerial(0); |
1251 | 1251 |
} |
... | ... | |
1256 | 1256 |
* (non-Javadoc) |
1257 | 1257 |
* @see org.gvsig.raster.impl.provider.RasterProvider#setTimeSerials(org.gvsig.fmap.dal.coverage.store.props.TimeSerials) |
1258 | 1258 |
*/ |
1259 |
public void setTimeSerials(TimeSerials serialInfo) throws RmfSerializerException {
|
|
1259 |
public void setTimeSerials(TimeSeries serialInfo) throws RmfSerializerException {
|
|
1260 | 1260 |
this.serialInfo = serialInfo; |
1261 |
saveObjectToRmf(TimeSerials.class, serialInfo);
|
|
1261 |
saveObjectToRmf(TimeSeries.class, serialInfo);
|
|
1262 | 1262 |
} |
1263 | 1263 |
} |
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/store/DefaultTRasterStore.java | ||
---|---|---|
52 | 52 |
import org.gvsig.fmap.dal.coverage.store.props.HistogramComputer; |
53 | 53 |
import org.gvsig.fmap.dal.coverage.store.props.Metadata; |
54 | 54 |
import org.gvsig.fmap.dal.coverage.store.props.Statistics; |
55 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSerials;
|
|
55 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSeries;
|
|
56 | 56 |
import org.gvsig.fmap.dal.coverage.store.props.Transparency; |
57 | 57 |
import org.gvsig.fmap.dal.exception.CloseException; |
58 | 58 |
import org.gvsig.fmap.dal.raster.spi.CoverageStoreProvider; |
... | ... | |
272 | 272 |
* (non-Javadoc) |
273 | 273 |
* @see org.gvsig.fmap.dal.coverage.store.RasterDataStore#saveSerialInfoToRmf(org.gvsig.fmap.dal.coverage.store.props.SerialInfo) |
274 | 274 |
*/ |
275 |
public void saveSerialInfoToRmf(TimeSerials serialInfo) throws RmfSerializerException {
|
|
275 |
public void saveSerialInfoToRmf(TimeSeries serialInfo) throws RmfSerializerException {
|
|
276 | 276 |
((AbstractRasterDataStore)list.get(selectedStore)).saveSerialInfoToRmf(serialInfo); |
277 | 277 |
} |
278 | 278 |
|
... | ... | |
288 | 288 |
* (non-Javadoc) |
289 | 289 |
* @see org.gvsig.fmap.dal.coverage.store.RasterDataStore#loadSerialInfoFromRmf(org.gvsig.fmap.dal.coverage.store.props.SerialInfo) |
290 | 290 |
*/ |
291 |
public boolean loadSerialInfoFromRmf(TimeSerials serialInfo) {
|
|
291 |
public boolean loadSerialInfoFromRmf(TimeSeries serialInfo) {
|
|
292 | 292 |
return ((AbstractRasterDataStore)list.get(selectedStore)).loadSerialInfoFromRmf(serialInfo); |
293 | 293 |
} |
294 | 294 |
|
... | ... | |
785 | 785 |
*/ |
786 | 786 |
public void selectSerial(String serialName) { |
787 | 787 |
for (int i = 0; i < list.size(); i++) { |
788 |
TimeSerials sInfo;
|
|
788 |
TimeSeries sInfo;
|
|
789 | 789 |
try { |
790 | 790 |
sInfo = list.get(i).getTimeSerials(); |
791 | 791 |
sInfo.selectSerial(serialName); |
... | ... | |
801 | 801 |
*/ |
802 | 802 |
public void setSerialDescription(String serialDescription) { |
803 | 803 |
for (int i = 0; i < list.size(); i++) { |
804 |
TimeSerials sInfo;
|
|
804 |
TimeSeries sInfo;
|
|
805 | 805 |
try { |
806 | 806 |
sInfo = list.get(i).getTimeSerials(); |
807 | 807 |
sInfo.setDescription(serialDescription); |
... | ... | |
817 | 817 |
*/ |
818 | 818 |
public void setSerialName(String serialName) { |
819 | 819 |
for (int i = 0; i < list.size(); i++) { |
820 |
TimeSerials sInfo;
|
|
820 |
TimeSeries sInfo;
|
|
821 | 821 |
try { |
822 | 822 |
sInfo = list.get(i).getTimeSerials(); |
823 | 823 |
sInfo.setName(serialName); |
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/store/serializer/SerialRmfSerializer.java | ||
---|---|---|
28 | 28 |
import java.util.ArrayList; |
29 | 29 |
|
30 | 30 |
import org.gvsig.fmap.dal.coverage.exception.ParsingException; |
31 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSerials;
|
|
31 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSeries;
|
|
32 | 32 |
import org.gvsig.raster.impl.datastruct.DefaultSerialInfo; |
33 | 33 |
import org.gvsig.raster.impl.provider.DefaultTimeSerials; |
34 | 34 |
import org.gvsig.raster.impl.store.rmf.ClassSerializer; |
... | ... | |
73 | 73 |
public static final String DATES = "Dates"; |
74 | 74 |
public static final String DATE = "Date"; |
75 | 75 |
public static final String NAME = "Name"; |
76 |
private TimeSerials serialInfo = null;
|
|
76 |
private TimeSeries serialInfo = null;
|
|
77 | 77 |
|
78 | 78 |
/** |
79 | 79 |
* Registra GeoPointRmfSerializer en los puntos de extension de Serializer |
... | ... | |
88 | 88 |
* Constructor. Asigna la lista de puntos a serializar. |
89 | 89 |
* @param ColorTable tabla a convertir en XML |
90 | 90 |
*/ |
91 |
public SerialRmfSerializer(TimeSerials serialInfo) {
|
|
91 |
public SerialRmfSerializer(TimeSeries serialInfo) {
|
|
92 | 92 |
this.serialInfo = serialInfo; |
93 | 93 |
} |
94 | 94 |
|
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/store/AbstractRasterDataStore.java | ||
---|---|---|
46 | 46 |
import org.gvsig.fmap.dal.coverage.store.parameter.RasterDataParameters; |
47 | 47 |
import org.gvsig.fmap.dal.coverage.store.parameter.RasterFileStoreParameters; |
48 | 48 |
import org.gvsig.fmap.dal.coverage.store.props.ColorTable; |
49 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSerials;
|
|
49 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSeries;
|
|
50 | 50 |
import org.gvsig.fmap.dal.coverage.util.RasterUtils; |
51 | 51 |
import org.gvsig.fmap.dal.exception.DataException; |
52 | 52 |
import org.gvsig.fmap.dal.exception.InitializeException; |
... | ... | |
495 | 495 |
* (non-Javadoc) |
496 | 496 |
* @see org.gvsig.fmap.dal.coverage.store.RasterDataStore#getSerialInfo() |
497 | 497 |
*/ |
498 |
public TimeSerials getTimeSerials() throws RmfSerializerException {
|
|
498 |
public TimeSeries getTimeSerials() throws RmfSerializerException {
|
|
499 | 499 |
return getProvider(0).getTimeSerials(); |
500 | 500 |
} |
501 | 501 |
|
... | ... | |
503 | 503 |
* (non-Javadoc) |
504 | 504 |
* @see org.gvsig.fmap.dal.coverage.store.RasterDataStore#setSerialInfo() |
505 | 505 |
*/ |
506 |
public void setTimeSerials(TimeSerials serialInfo) throws RmfSerializerException {
|
|
506 |
public void setTimeSerials(TimeSeries serialInfo) throws RmfSerializerException {
|
|
507 | 507 |
for (int i = 0; i < getProviders().size(); i++) { |
508 | 508 |
getProvider(i).setTimeSerials(serialInfo); |
509 | 509 |
} |
... | ... | |
521 | 521 |
* @param object to save |
522 | 522 |
* @throws RmfSerializerException |
523 | 523 |
*/ |
524 |
public abstract void saveSerialInfoToRmf(TimeSerials serialInfo) throws RmfSerializerException;
|
|
524 |
public abstract void saveSerialInfoToRmf(TimeSeries serialInfo) throws RmfSerializerException;
|
|
525 | 525 |
|
526 | 526 |
/** |
527 | 527 |
* Loads information about serials |
528 | 528 |
* @param object to load |
529 | 529 |
* @throws RmfSerializerException |
530 | 530 |
*/ |
531 |
public abstract boolean loadSerialInfoFromRmf(TimeSerials serialInfo);
|
|
531 |
public abstract boolean loadSerialInfoFromRmf(TimeSeries serialInfo);
|
|
532 | 532 |
|
533 | 533 |
/* |
534 | 534 |
* (non-Javadoc) |
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/store/DefaultMultiRasterStore.java | ||
---|---|---|
59 | 59 |
import org.gvsig.fmap.dal.coverage.store.props.HistogramComputer; |
60 | 60 |
import org.gvsig.fmap.dal.coverage.store.props.Metadata; |
61 | 61 |
import org.gvsig.fmap.dal.coverage.store.props.Statistics; |
62 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSerials;
|
|
62 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSeries;
|
|
63 | 63 |
import org.gvsig.fmap.dal.coverage.store.props.Transparency; |
64 | 64 |
import org.gvsig.fmap.dal.exception.InitializeException; |
65 | 65 |
import org.gvsig.fmap.dal.raster.spi.CoverageStoreProvider; |
... | ... | |
1438 | 1438 |
* (non-Javadoc) |
1439 | 1439 |
* @see org.gvsig.raster.impl.store.AbstractRasterDataStore#saveSerialInfoToRmf(org.gvsig.fmap.dal.coverage.store.props.SerialInfo) |
1440 | 1440 |
*/ |
1441 |
public void saveSerialInfoToRmf(TimeSerials serialInfo) throws RmfSerializerException {
|
|
1441 |
public void saveSerialInfoToRmf(TimeSeries serialInfo) throws RmfSerializerException {
|
|
1442 | 1442 |
for (int i = 0; i < providers.size(); i++) { |
1443 |
providers.get(i).saveObjectToRmf(TimeSerials.class, serialInfo);
|
|
1443 |
providers.get(i).saveObjectToRmf(TimeSeries.class, serialInfo);
|
|
1444 | 1444 |
} |
1445 | 1445 |
} |
1446 | 1446 |
|
... | ... | |
1458 | 1458 |
* (non-Javadoc) |
1459 | 1459 |
* @see org.gvsig.raster.impl.store.AbstractRasterDataStore#loadSerialInfoFromRmf(org.gvsig.fmap.dal.coverage.store.props.SerialInfo) |
1460 | 1460 |
*/ |
1461 |
public boolean loadSerialInfoFromRmf(TimeSerials serialInfo) {
|
|
1461 |
public boolean loadSerialInfoFromRmf(TimeSeries serialInfo) {
|
|
1462 | 1462 |
for (int i = 0; i < providers.size(); i++) { |
1463 | 1463 |
try { |
1464 |
providers.get(i).loadObjectFromRmf(TimeSerials.class, serialInfo);
|
|
1464 |
providers.get(i).loadObjectFromRmf(TimeSeries.class, serialInfo);
|
|
1465 | 1465 |
return true; |
1466 | 1466 |
} catch (RmfSerializerException e) { |
1467 | 1467 |
//Prueba hasta que alguno tiene la informaci?n |
org.gvsig.raster.gdal/trunk/org.gvsig.raster.gdal/org.gvsig.raster.gdal.app/src/main/java/org/gvsig/raster/gdal/app/GdalExtension.java | ||
---|---|---|
21 | 21 |
*/ |
22 | 22 |
package org.gvsig.raster.gdal.app; |
23 | 23 |
|
24 |
import java.awt.Component; |
|
25 |
import java.util.prefs.Preferences; |
|
26 |
|
|
27 |
import javax.swing.JOptionPane; |
|
28 |
|
|
29 |
import org.gvsig.andami.PluginServices; |
|
30 | 24 |
import org.gvsig.andami.plugins.Extension; |
31 | 25 |
|
26 |
/** |
|
27 |
* Extension to add Gdal library support |
|
28 |
* |
|
29 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
30 |
*/ |
|
32 | 31 |
public class GdalExtension extends Extension { |
33 | 32 |
|
34 | 33 |
public void execute(String actionCommand) { |
Also available in: Unified diff