Revision 11588
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/main/resources/README.txt | ||
---|---|---|
1 |
Put into this folder the resources needed by your classes. |
|
2 |
|
|
3 |
This folder is added to the classpath, so you can load any resources |
|
4 |
through the ClassLoader. |
|
5 |
|
|
6 |
By default, in this folder you can find an example of log4j configuration, |
|
7 |
prepared to log messages through the console, so logging works when you |
|
8 |
run your classes. |
|
0 | 9 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/main/resources/log4j.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1" ?> |
|
2 |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> |
|
3 |
|
|
4 |
<!-- |
|
5 |
Log4J configuration file for unit tests execution. |
|
6 |
--> |
|
7 |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> |
|
8 |
|
|
9 |
<!-- Appender configuration to show logging messages through the console --> |
|
10 |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> |
|
11 |
<layout class="org.apache.log4j.PatternLayout"> |
|
12 |
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n %m%n" /> |
|
13 |
</layout> |
|
14 |
</appender> |
|
15 |
|
|
16 |
<!-- |
|
17 |
Activate logging messages of DEBUG level of higher only for the |
|
18 |
org.gvsig.tools packages. |
|
19 |
You can put full classes names or packages instead, to configure |
|
20 |
logging for all the classes and subpackages of the package. |
|
21 |
--> |
|
22 |
<category name="org.gvsig.tools"> |
|
23 |
<priority value="DEBUG" /> |
|
24 |
</category> |
|
25 |
<category name="org.gvsig.raster"> |
|
26 |
<priority value="DEBUG" /> |
|
27 |
</category> |
|
28 |
|
|
29 |
<!-- |
|
30 |
By default, show only logging messages of INFO level or higher, |
|
31 |
through the previously configured CONSOLE appender. |
|
32 |
--> |
|
33 |
<root> |
|
34 |
<priority value="INFO" /> |
|
35 |
<appender-ref ref="CONSOLE" /> |
|
36 |
</root> |
|
37 |
</log4j:configuration> |
|
0 | 38 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/main/java/org/gvsig/raster/main/Main.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.raster.main; |
|
23 |
|
|
24 |
import java.awt.BorderLayout; |
|
25 |
import java.awt.Dimension; |
|
26 |
import java.awt.event.ActionEvent; |
|
27 |
|
|
28 |
import javax.swing.AbstractAction; |
|
29 |
import javax.swing.Action; |
|
30 |
import javax.swing.JButton; |
|
31 |
import javax.swing.JFrame; |
|
32 |
import javax.swing.JMenu; |
|
33 |
import javax.swing.JMenuBar; |
|
34 |
import javax.swing.JMenuItem; |
|
35 |
import javax.swing.JToolBar; |
|
36 |
import javax.swing.WindowConstants; |
|
37 |
|
|
38 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
39 |
|
|
40 |
/** |
|
41 |
* Main executable class for testing the Raster library. |
|
42 |
* |
|
43 |
* @author gvSIG Team |
|
44 |
* @version $Id$ |
|
45 |
*/ |
|
46 |
public class Main { |
|
47 |
|
|
48 |
//private static final Logger LOG = LoggerFactory.getLogger(Main.class); |
|
49 |
|
|
50 |
//private RasterManager manager; |
|
51 |
|
|
52 |
|
|
53 |
public static void main(String args[]) { |
|
54 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
55 |
Main main = new Main(); |
|
56 |
main.show(); |
|
57 |
} |
|
58 |
|
|
59 |
@SuppressWarnings("serial") |
|
60 |
public void show() { |
|
61 |
//manager = RasterLocator.getManager(); |
|
62 |
|
|
63 |
Action showCookie = new AbstractAction("Get a Raster") { |
|
64 |
|
|
65 |
public void actionPerformed(ActionEvent e) { |
|
66 |
|
|
67 |
} |
|
68 |
}; |
|
69 |
|
|
70 |
Action exit = new AbstractAction("Exit") { |
|
71 |
|
|
72 |
public void actionPerformed(ActionEvent e) { |
|
73 |
System.exit(0); |
|
74 |
} |
|
75 |
}; |
|
76 |
|
|
77 |
JFrame frame = new JFrame("Raster example app"); |
|
78 |
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); |
|
79 |
|
|
80 |
// Create the menu bar. |
|
81 |
JMenuBar menuBar = new JMenuBar(); |
|
82 |
|
|
83 |
// Build the menu. |
|
84 |
JMenu menuFile = new JMenu("File"); |
|
85 |
menuFile.add(new JMenuItem(showCookie)); |
|
86 |
menuFile.add(new JMenuItem(exit)); |
|
87 |
|
|
88 |
menuBar.add(menuFile); |
|
89 |
|
|
90 |
JToolBar toolBar = new JToolBar(); |
|
91 |
toolBar.add(new JButton(showCookie)); |
|
92 |
toolBar.add(new JButton(exit)); |
|
93 |
|
|
94 |
frame.setPreferredSize(new Dimension(200, 100)); |
|
95 |
frame.setJMenuBar(menuBar); |
|
96 |
frame.add(toolBar, BorderLayout.PAGE_START); |
|
97 |
|
|
98 |
// Display the window. |
|
99 |
frame.pack(); |
|
100 |
frame.setVisible(true); |
|
101 |
} |
|
102 |
|
|
103 |
} |
|
0 | 104 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/main/java/org/gvsig/raster/main/package.html | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
4 |
<head> |
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
6 |
<title>org.gvsig.raster package documentation</title> |
|
7 |
</head> |
|
8 |
<body> |
|
9 |
|
|
10 |
<p>Raster library testing and demo application.</p> |
|
11 |
|
|
12 |
</body> |
|
13 |
</html> |
|
0 | 14 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/miniRaster28x25F32.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<Statistics> |
|
4 |
<BandCount>1</BandCount> |
|
5 |
<Band> |
|
6 |
<Max>1273.8699951171875</Max> |
|
7 |
<Min>1141.550048828125</Min> |
|
8 |
<SecondMax>1273.8499755859375</SecondMax> |
|
9 |
<SecondMin>1145.510009765625</SecondMin> |
|
10 |
<MaxRGB>0.0</MaxRGB> |
|
11 |
<MinRGB>0.0</MinRGB> |
|
12 |
<SecondMaxRGB>0.0</SecondMaxRGB> |
|
13 |
<SecondMinRGB>255.0</SecondMinRGB> |
|
14 |
<Mean>1218.573829171317</Mean> |
|
15 |
<Variance>774.3655060315505</Variance> |
|
16 |
</Band> |
|
17 |
</Statistics> |
|
18 |
<NoData> |
|
19 |
<Data value="-99999.0" type="2"/> |
|
20 |
</NoData> |
|
21 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/testGdalWriter.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<FLyrGeoRaster> |
|
4 |
<Extent> |
|
5 |
<X>644848.8</X> |
|
6 |
<Y>4925251.2</Y> |
|
7 |
<RotationX>0.0</RotationX> |
|
8 |
<RotationY>0.0</RotationY> |
|
9 |
<PixelSizeX>2.4</PixelSizeX> |
|
10 |
<PixelSizeY>-2.4</PixelSizeY> |
|
11 |
<Width>0.0</Width> |
|
12 |
<Height>0.0</Height> |
|
13 |
</Extent> |
|
14 |
<Dimension> |
|
15 |
<ImagePxWidth>870.0</ImagePxWidth> |
|
16 |
<ImagePxHeight>870.0</ImagePxHeight> |
|
17 |
</Dimension> |
|
18 |
</FLyrGeoRaster> |
|
19 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/rot.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<FLyrGeoRaster> |
|
4 |
<Projection>EPSG:23030</Projection> |
|
5 |
<Extent> |
|
6 |
<X>645519.8062266004</X> |
|
7 |
<Y>4925635.747389836</Y> |
|
8 |
<RotationX>-1.2132800188916328</RotationX> |
|
9 |
<RotationY>-1.2132800188916328</RotationY> |
|
10 |
<PixelSizeX>2.0707369692354263</PixelSizeX> |
|
11 |
<PixelSizeY>-2.0707369692354263</PixelSizeY> |
|
12 |
<Width>2857.0947796705877</Width> |
|
13 |
<Height>2857.0947796702385</Height> |
|
14 |
</Extent> |
|
15 |
<Dimension> |
|
16 |
<ImagePxWidth>870.0</ImagePxWidth> |
|
17 |
<ImagePxHeight>870.0</ImagePxHeight> |
|
18 |
</Dimension> |
|
19 |
</FLyrGeoRaster> |
|
20 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/wcs16bits.wld | ||
---|---|---|
1 |
3.8618319375554164 |
|
2 |
0.0 |
|
3 |
0.0 |
|
4 |
3.861681556251123 |
|
5 |
748722.1285067874 |
|
6 |
4268622.4 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/serie1.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<Serials> |
|
4 |
<Serial> |
|
5 |
<Name>Katrina</Name> |
|
6 |
<Description>Evolución del katrina</Description> |
|
7 |
<TimeType>1</TimeType> |
|
8 |
<DataType>1</DataType> |
|
9 |
<Dates> |
|
10 |
<Date>25/08/2005-12:05:00</Date> |
|
11 |
<Date>27/08/2005-02:36:00</Date> |
|
12 |
</Dates> |
|
13 |
</Serial> |
|
14 |
<Serial> |
|
15 |
<Name>Katrina2</Name> |
|
16 |
<Description>Evolución del katrina en otra serie</Description> |
|
17 |
<TimeType>1</TimeType> |
|
18 |
<DataType>0</DataType> |
|
19 |
<Dates> |
|
20 |
<Date>152322.0</Date> |
|
21 |
<Date>152400.0</Date> |
|
22 |
</Dates> |
|
23 |
</Serial> |
|
24 |
</Serials> |
|
25 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/serie2.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<Serials> |
|
4 |
<Serial> |
|
5 |
<Name>Katrina</Name> |
|
6 |
<Description>Evolución del katrina</Description> |
|
7 |
<TimeType>0</TimeType> |
|
8 |
<DataType>1</DataType> |
|
9 |
<Dates> |
|
10 |
<Date>28/08/2005-12:05:00</Date> |
|
11 |
</Dates> |
|
12 |
</Serial> |
|
13 |
<Serial> |
|
14 |
<Name>Katrina2</Name> |
|
15 |
<Description>Evolución del katrina en otra serie</Description> |
|
16 |
<TimeType>0</TimeType> |
|
17 |
<DataType>0</DataType> |
|
18 |
<Dates> |
|
19 |
<Date>152438.0</Date> |
|
20 |
</Dates> |
|
21 |
</Serial> |
|
22 |
</Serials> |
|
23 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/serie3.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<Serials> |
|
4 |
<Serial> |
|
5 |
<Name>Katrina</Name> |
|
6 |
<Description>Evolución del katrina</Description> |
|
7 |
<TimeType>0</TimeType> |
|
8 |
<DataType>1</DataType> |
|
9 |
<Dates> |
|
10 |
<Date>29/08/2005-12:00:00</Date> |
|
11 |
</Dates> |
|
12 |
</Serial> |
|
13 |
<Serial> |
|
14 |
<Name>Katrina2</Name> |
|
15 |
<Description>Evolución del katrina en otra serie</Description> |
|
16 |
<TimeType>0</TimeType> |
|
17 |
<DataType>0</DataType> |
|
18 |
<Dates> |
|
19 |
<Date>152550.0</Date> |
|
20 |
</Dates> |
|
21 |
</Serial> |
|
22 |
</Serials> |
|
23 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/writetest.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<Histogram> |
|
4 |
<BandCount>3</BandCount> |
|
5 |
<DataType>0</DataType> |
|
6 |
<Band> |
|
7 |
<Min>-128.0</Min> |
|
8 |
<Max>127.0</Max> |
|
9 |
<Values>2 5 2 0 0 0 2 4 0 0 4 0 1 2 4 0 0 1 4 0 0 4 2 0 4 2 2 0 0 4 2 0 4 0 2 0 6 0 4 0 0 2 0 1 4 2 0 2 0 0 8 2 4 0 0 3 0 0 0 0 0 0 0 0 0 0 4 0 0 0 4 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 6 0 0 8 0 0 0 0 0 0 0 0 2 6 0 4 0 0 0 0 1 0 0 0 2 0 2 0 2 0 0 0 0 0 16 4 0 0 4 0 0 0 0 4 0 4 0 0 2 0 2 2 0 2 0 2 2 6 2 0 0 0 0 0 4 2 0 4 1 0 0 4 4 0 0 0 4 0 0 0 0 0 4 4 0 4 0 6 13 2 7 2 16 4 4 7 6 4 4 16 12 0 7 8 14 14 0 2 6 6 4 6 4 6 12 10 13 4 2 2 6 4 7 0 8 8 2 6 8 4 4 17 0 0 0 0 4 2 0 0 4 4 0 6 8 4 2 2 4 5 5 4 2 6 4 0 2 1 4 4 0 0</Values> |
|
10 |
</Band> |
|
11 |
<Band> |
|
12 |
<Min>-128.0</Min> |
|
13 |
<Max>127.0</Max> |
|
14 |
<Values>2 8 8 2 2 8 1 4 4 4 0 0 3 0 0 4 0 2 4 4 2 0 0 2 0 4 0 0 0 0 4 4 2 4 0 1 0 0 0 0 0 0 0 0 6 3 0 0 2 0 4 0 4 4 2 0 0 0 0 4 0 0 2 0 0 0 0 0 0 0 0 0 4 0 0 0 2 4 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 2 0 0 0 0 0 4 0 4 0 0 0 0 0 2 4 2 0 0 0 4 0 0 0 0 2 0 1 0 0 0 0 2 2 2 0 0 1 1 0 2 8 0 0 0 2 0 0 2 0 0 4 8 0 4 0 0 0 0 0 2 0 0 2 0 0 0 0 0 2 0 6 2 2 0 0 0 5 0 0 0 8 0 0 0 4 4 0 0 0 4 0 0 8 0 8 0 4 0 14 4 0 3 2 10 6 7 4 4 18 2 4 10 12 0 6 12 4 8 12 4 4 12 4 2 6 0 4 15 4 6 10 10 0 2 8 6 2 10 2 1 5 6 8 4 2 8 0 1 8 0 4 0 0 2 6 3 7 12 1 8 8</Values> |
|
15 |
</Band> |
|
16 |
<Band> |
|
17 |
<Min>-128.0</Min> |
|
18 |
<Max>127.0</Max> |
|
19 |
<Values>4 0 8 0 0 4 1 2 2 0 0 0 0 4 0 0 4 0 0 0 6 0 0 0 1 0 0 2 0 0 4 4 1 2 0 0 4 4 2 4 0 0 0 0 0 0 0 0 0 4 0 0 0 0 2 0 4 0 0 0 0 0 2 0 0 0 0 0 0 0 0 4 0 4 0 4 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 2 0 0 0 4 2 4 0 0 0 0 0 0 4 4 0 0 0 0 1 0 0 0 0 0 0 0 2 2 0 0 0 2 0 25 4 1 0 0 0 0 2 0 0 2 4 2 4 0 0 0 0 0 0 0 2 2 6 4 0 1 0 4 4 4 8 0 0 0 5 12 6 14 4 0 0 22 0 4 0 1 4 6 4 10 10 8 2 2 9 10 10 8 2 7 2 10 2 4 4 2 8 14 8 8 2 0 4 4 9 8 8 0 4 5 4 2 6 2 4 2 1 10 2 4 6 8 0 0 0 4 6 1 0 0 6 6 2 0 2 5 10 2 3 0 16 0 0 0 0 0 0 3 4 8 1 2 0 2 0 0 4</Values> |
|
20 |
</Band> |
|
21 |
</Histogram> |
|
22 |
<ColorTable name="" interpolated="0" version="1.1"> |
|
23 |
<Color value="0.0" name="" rgb="255,255,255" interpolated="50.0"/> |
|
24 |
<Color value="1.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
25 |
<Color value="2.0" name="" rgb="0,102,255" interpolated="50.0"/> |
|
26 |
<Color value="3.0" name="" rgb="0,153,255" interpolated="50.0"/> |
|
27 |
<Color value="4.0" name="" rgb="0,0,255" interpolated="50.0"/> |
|
28 |
<Color value="5.0" name="" rgb="0,51,255" interpolated="50.0"/> |
|
29 |
<Color value="6.0" name="" rgb="55,55,255" interpolated="50.0"/> |
|
30 |
<Color value="7.0" name="" rgb="0,204,255" interpolated="50.0"/> |
|
31 |
<Color value="8.0" name="" rgb="191,191,255" interpolated="50.0"/> |
|
32 |
<Color value="9.0" name="" rgb="191,242,255" interpolated="50.0"/> |
|
33 |
<Color value="10.0" name="" rgb="223,223,223" interpolated="50.0"/> |
|
34 |
<Color value="11.0" name="" rgb="127,127,127" interpolated="50.0"/> |
|
35 |
<Color value="12.0" name="" rgb="63,63,63" interpolated="50.0"/> |
|
36 |
<Color value="13.0" name="" rgb="159,159,159" interpolated="50.0"/> |
|
37 |
<Color value="14.0" name="" rgb="31,31,31" interpolated="50.0"/> |
|
38 |
<Color value="15.0" name="" rgb="95,95,95" interpolated="50.0"/> |
|
39 |
<Color value="16.0" name="" rgb="191,191,191" interpolated="50.0"/> |
|
40 |
<Color value="17.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
41 |
<Color value="18.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
42 |
<Color value="19.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
43 |
<Color value="20.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
44 |
<Color value="21.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
45 |
<Color value="22.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
46 |
<Color value="23.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
47 |
<Color value="24.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
48 |
<Color value="25.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
49 |
<Color value="26.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
50 |
<Color value="27.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
51 |
<Color value="28.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
52 |
<Color value="29.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
53 |
<Color value="30.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
54 |
<Color value="31.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
55 |
<Alpha value="0.0" alpha="0" interpolated="50.0"/> |
|
56 |
<Alpha value="1.0" alpha="255" interpolated="50.0"/> |
|
57 |
<Alpha value="2.0" alpha="255" interpolated="50.0"/> |
|
58 |
<Alpha value="3.0" alpha="255" interpolated="50.0"/> |
|
59 |
<Alpha value="4.0" alpha="255" interpolated="50.0"/> |
|
60 |
<Alpha value="5.0" alpha="255" interpolated="50.0"/> |
|
61 |
<Alpha value="6.0" alpha="255" interpolated="50.0"/> |
|
62 |
<Alpha value="7.0" alpha="255" interpolated="50.0"/> |
|
63 |
<Alpha value="8.0" alpha="255" interpolated="50.0"/> |
|
64 |
<Alpha value="9.0" alpha="255" interpolated="50.0"/> |
|
65 |
<Alpha value="10.0" alpha="255" interpolated="50.0"/> |
|
66 |
<Alpha value="11.0" alpha="255" interpolated="50.0"/> |
|
67 |
<Alpha value="12.0" alpha="255" interpolated="50.0"/> |
|
68 |
<Alpha value="13.0" alpha="255" interpolated="50.0"/> |
|
69 |
<Alpha value="14.0" alpha="255" interpolated="50.0"/> |
|
70 |
<Alpha value="15.0" alpha="255" interpolated="50.0"/> |
|
71 |
<Alpha value="16.0" alpha="255" interpolated="50.0"/> |
|
72 |
<Alpha value="17.0" alpha="255" interpolated="50.0"/> |
|
73 |
<Alpha value="18.0" alpha="255" interpolated="50.0"/> |
|
74 |
<Alpha value="19.0" alpha="255" interpolated="50.0"/> |
|
75 |
<Alpha value="20.0" alpha="255" interpolated="50.0"/> |
|
76 |
<Alpha value="21.0" alpha="255" interpolated="50.0"/> |
|
77 |
<Alpha value="22.0" alpha="255" interpolated="50.0"/> |
|
78 |
<Alpha value="23.0" alpha="255" interpolated="50.0"/> |
|
79 |
<Alpha value="24.0" alpha="255" interpolated="50.0"/> |
|
80 |
<Alpha value="25.0" alpha="255" interpolated="50.0"/> |
|
81 |
<Alpha value="26.0" alpha="255" interpolated="50.0"/> |
|
82 |
<Alpha value="27.0" alpha="255" interpolated="50.0"/> |
|
83 |
<Alpha value="28.0" alpha="255" interpolated="50.0"/> |
|
84 |
<Alpha value="29.0" alpha="255" interpolated="50.0"/> |
|
85 |
<Alpha value="30.0" alpha="255" interpolated="50.0"/> |
|
86 |
<Alpha value="31.0" alpha="255" interpolated="50.0"/> |
|
87 |
</ColorTable> |
|
88 |
<Statistics> |
|
89 |
<BandCount>3</BandCount> |
|
90 |
<Band> |
|
91 |
<Max>125.0</Max> |
|
92 |
<Min>-128.0</Min> |
|
93 |
<SecondMax>124.0</SecondMax> |
|
94 |
<SecondMin>-127.0</SecondMin> |
|
95 |
<MaxRGB>250.0</MaxRGB> |
|
96 |
<MinRGB>0.0</MinRGB> |
|
97 |
<SecondMaxRGB>248.0</SecondMaxRGB> |
|
98 |
<SecondMinRGB>1.0</SecondMinRGB> |
|
99 |
<Mean>95.86833333333334</Mean> |
|
100 |
<Variance>3050.1676638888875</Variance> |
|
101 |
</Band> |
|
102 |
<Band> |
|
103 |
<Max>127.0</Max> |
|
104 |
<Min>-128.0</Min> |
|
105 |
<SecondMax>126.0</SecondMax> |
|
106 |
<SecondMin>-127.0</SecondMin> |
|
107 |
<MaxRGB>255.0</MaxRGB> |
|
108 |
<MinRGB>0.0</MinRGB> |
|
109 |
<SecondMaxRGB>254.0</SecondMaxRGB> |
|
110 |
<SecondMinRGB>3.0</SecondMinRGB> |
|
111 |
<Mean>105.20166666666667</Mean> |
|
112 |
<Variance>2689.3743305555545</Variance> |
|
113 |
</Band> |
|
114 |
<Band> |
|
115 |
<Max>127.0</Max> |
|
116 |
<Min>-128.0</Min> |
|
117 |
<SecondMax>124.0</SecondMax> |
|
118 |
<SecondMin>-126.0</SecondMin> |
|
119 |
<MaxRGB>254.0</MaxRGB> |
|
120 |
<MinRGB>0.0</MinRGB> |
|
121 |
<SecondMaxRGB>250.0</SecondMaxRGB> |
|
122 |
<SecondMinRGB>1.0</SecondMinRGB> |
|
123 |
<Mean>85.10333333333334</Mean> |
|
124 |
<Variance>3218.745988888888</Variance> |
|
125 |
</Band> |
|
126 |
<TailTrim> |
|
127 |
<Key>3.0</Key> |
|
128 |
<Value>10.0</Value> |
|
129 |
</TailTrim> |
|
130 |
<TailTrim> |
|
131 |
<Key>4.0</Key> |
|
132 |
<Value>16.0</Value> |
|
133 |
</TailTrim> |
|
134 |
</Statistics> |
|
135 |
<FLyrGeoRaster> |
|
136 |
<Extent> |
|
137 |
<X>644848.8</X> |
|
138 |
<Y>4925251.2</Y> |
|
139 |
<RotationX>0.0</RotationX> |
|
140 |
<RotationY>0.0</RotationY> |
|
141 |
<PixelSizeX>2.4</PixelSizeX> |
|
142 |
<PixelSizeY>-2.4</PixelSizeY> |
|
143 |
<Width>2088.0</Width> |
|
144 |
<Height>2088.0</Height> |
|
145 |
</Extent> |
|
146 |
<Dimension> |
|
147 |
<ImagePxWidth>870.0</ImagePxWidth> |
|
148 |
<ImagePxHeight>870.0</ImagePxHeight> |
|
149 |
</Dimension> |
|
150 |
</FLyrGeoRaster> |
|
151 |
<GeoPoints> |
|
152 |
<GeoPoint n="0"> |
|
153 |
<PixelX>10.0</PixelX> |
|
154 |
<PixelY>10.0</PixelY> |
|
155 |
<MapX>34223.3</MapX> |
|
156 |
<MapY>2344.2</MapY> |
|
157 |
<Active>true</Active> |
|
158 |
</GeoPoint> |
|
159 |
<GeoPoint n="1"> |
|
160 |
<PixelX>10.0</PixelX> |
|
161 |
<PixelY>10.0</PixelY> |
|
162 |
<MapX>34223.3</MapX> |
|
163 |
<MapY>2344.2</MapY> |
|
164 |
<Active>true</Active> |
|
165 |
</GeoPoint> |
|
166 |
</GeoPoints> |
|
167 |
<NoData> |
|
168 |
<Data value="5450.0" type="2"/> |
|
169 |
</NoData> |
|
170 |
<ColorInterpretation> |
|
171 |
<BandCount>3</BandCount> |
|
172 |
<Band>Red</Band> |
|
173 |
<Band>Green</Band> |
|
174 |
<Band>Blue</Band> |
|
175 |
</ColorInterpretation> |
|
176 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/histograma.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<Statistics> |
|
4 |
<BandCount>1</BandCount> |
|
5 |
<Band> |
|
6 |
<Max>127.0</Max> |
|
7 |
<Min>-128.0</Min> |
|
8 |
<SecondMax>126.0</SecondMax> |
|
9 |
<SecondMin>-127.0</SecondMin> |
|
10 |
<MaxRGB>255.0</MaxRGB> |
|
11 |
<MinRGB>0.0</MinRGB> |
|
12 |
<SecondMaxRGB>254.0</SecondMaxRGB> |
|
13 |
<SecondMinRGB>1.0</SecondMinRGB> |
|
14 |
<Mean>175.96363636363637</Mean> |
|
15 |
<Variance>7253.525950413219</Variance> |
|
16 |
</Band> |
|
17 |
</Statistics> |
|
18 |
<Histogram> |
|
19 |
<BandCount>1</BandCount> |
|
20 |
<DataType>0</DataType> |
|
21 |
<Band> |
|
22 |
<Min>-128.0</Min> |
|
23 |
<Max>127.0</Max> |
|
24 |
<Values>6 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 9 10 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 5</Values> |
|
25 |
</Band> |
|
26 |
</Histogram> |
|
27 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/03AUG23153350-M2AS-000000122423_01_P001-BROWSE.wld | ||
---|---|---|
1 |
2.4 |
|
2 |
0 |
|
3 |
0 |
|
4 |
-2.4 |
|
5 |
644850.0 |
|
6 |
4925250.0 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/rot.wld | ||
---|---|---|
1 |
2.4 |
|
2 |
0 |
|
3 |
0 |
|
4 |
-2.4 |
|
5 |
644850.0 |
|
6 |
4925250.0 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/readtest.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<Histogram> |
|
4 |
<BandCount>3</BandCount> |
|
5 |
<DataType>0</DataType> |
|
6 |
<Band> |
|
7 |
<Min>-128.0</Min> |
|
8 |
<Max>127.0</Max> |
|
9 |
<Values>2 5 2 0 0 0 2 4 0 0 4 0 1 2 4 0 0 1 4 0 0 4 2 0 4 2 2 0 0 4 2 0 4 0 2 0 6 0 4 0 0 2 0 1 4 2 0 2 0 0 8 2 4 0 0 3 0 0 0 0 0 0 0 0 0 0 4 0 0 0 4 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 6 0 0 8 0 0 0 0 0 0 0 0 2 6 0 4 0 0 0 0 1 0 0 0 2 0 2 0 2 0 0 0 0 0 16 4 0 0 4 0 0 0 0 4 0 4 0 0 2 0 2 2 0 2 0 2 2 6 2 0 0 0 0 0 4 2 0 4 1 0 0 4 4 0 0 0 4 0 0 0 0 0 4 4 0 4 0 6 13 2 7 2 16 4 4 7 6 4 4 16 12 0 7 8 14 14 0 2 6 6 4 6 4 6 12 10 13 4 2 2 6 4 7 0 8 8 2 6 8 4 4 17 0 0 0 0 4 2 0 0 4 4 0 6 8 4 2 2 4 5 5 4 2 6 4 0 2 1 4 4 0 0</Values> |
|
10 |
</Band> |
|
11 |
<Band> |
|
12 |
<Min>-128.0</Min> |
|
13 |
<Max>127.0</Max> |
|
14 |
<Values>2 8 8 2 2 8 1 4 4 4 0 0 3 0 0 4 0 2 4 4 2 0 0 2 0 4 0 0 0 0 4 4 2 4 0 1 0 0 0 0 0 0 0 0 6 3 0 0 2 0 4 0 4 4 2 0 0 0 0 4 0 0 2 0 0 0 0 0 0 0 0 0 4 0 0 0 2 4 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 2 0 0 0 0 0 4 0 4 0 0 0 0 0 2 4 2 0 0 0 4 0 0 0 0 2 0 1 0 0 0 0 2 2 2 0 0 1 1 0 2 8 0 0 0 2 0 0 2 0 0 4 8 0 4 0 0 0 0 0 2 0 0 2 0 0 0 0 0 2 0 6 2 2 0 0 0 5 0 0 0 8 0 0 0 4 4 0 0 0 4 0 0 8 0 8 0 4 0 14 4 0 3 2 10 6 7 4 4 18 2 4 10 12 0 6 12 4 8 12 4 4 12 4 2 6 0 4 15 4 6 10 10 0 2 8 6 2 10 2 1 5 6 8 4 2 8 0 1 8 0 4 0 0 2 6 3 7 12 1 8 8</Values> |
|
15 |
</Band> |
|
16 |
<Band> |
|
17 |
<Min>-128.0</Min> |
|
18 |
<Max>127.0</Max> |
|
19 |
<Values>4 0 8 0 0 4 1 2 2 0 0 0 0 4 0 0 4 0 0 0 6 0 0 0 1 0 0 2 0 0 4 4 1 2 0 0 4 4 2 4 0 0 0 0 0 0 0 0 0 4 0 0 0 0 2 0 4 0 0 0 0 0 2 0 0 0 0 0 0 0 0 4 0 4 0 4 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 2 0 0 0 4 2 4 0 0 0 0 0 0 4 4 0 0 0 0 1 0 0 0 0 0 0 0 2 2 0 0 0 2 0 25 4 1 0 0 0 0 2 0 0 2 4 2 4 0 0 0 0 0 0 0 2 2 6 4 0 1 0 4 4 4 8 0 0 0 5 12 6 14 4 0 0 22 0 4 0 1 4 6 4 10 10 8 2 2 9 10 10 8 2 7 2 10 2 4 4 2 8 14 8 8 2 0 4 4 9 8 8 0 4 5 4 2 6 2 4 2 1 10 2 4 6 8 0 0 0 4 6 1 0 0 6 6 2 0 2 5 10 2 3 0 16 0 0 0 0 0 0 3 4 8 1 2 0 2 0 0 4</Values> |
|
20 |
</Band> |
|
21 |
</Histogram> |
|
22 |
<ColorTable name="" interpolated="0" version="1.1"> |
|
23 |
<Color value="0.0" name="" rgb="255,255,255" interpolated="50.0"/> |
|
24 |
<Color value="1.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
25 |
<Color value="2.0" name="" rgb="0,102,255" interpolated="50.0"/> |
|
26 |
<Color value="3.0" name="" rgb="0,153,255" interpolated="50.0"/> |
|
27 |
<Color value="4.0" name="" rgb="0,0,255" interpolated="50.0"/> |
|
28 |
<Color value="5.0" name="" rgb="0,51,255" interpolated="50.0"/> |
|
29 |
<Color value="6.0" name="" rgb="55,55,255" interpolated="50.0"/> |
|
30 |
<Color value="7.0" name="" rgb="0,204,255" interpolated="50.0"/> |
|
31 |
<Color value="8.0" name="" rgb="191,191,255" interpolated="50.0"/> |
|
32 |
<Color value="9.0" name="" rgb="191,242,255" interpolated="50.0"/> |
|
33 |
<Color value="10.0" name="" rgb="223,223,223" interpolated="50.0"/> |
|
34 |
<Color value="11.0" name="" rgb="127,127,127" interpolated="50.0"/> |
|
35 |
<Color value="12.0" name="" rgb="63,63,63" interpolated="50.0"/> |
|
36 |
<Color value="13.0" name="" rgb="159,159,159" interpolated="50.0"/> |
|
37 |
<Color value="14.0" name="" rgb="31,31,31" interpolated="50.0"/> |
|
38 |
<Color value="15.0" name="" rgb="95,95,95" interpolated="50.0"/> |
|
39 |
<Color value="16.0" name="" rgb="191,191,191" interpolated="50.0"/> |
|
40 |
<Color value="17.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
41 |
<Color value="18.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
42 |
<Color value="19.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
43 |
<Color value="20.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
44 |
<Color value="21.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
45 |
<Color value="22.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
46 |
<Color value="23.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
47 |
<Color value="24.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
48 |
<Color value="25.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
49 |
<Color value="26.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
50 |
<Color value="27.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
51 |
<Color value="28.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
52 |
<Color value="29.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
53 |
<Color value="30.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
54 |
<Color value="31.0" name="" rgb="0,0,0" interpolated="50.0"/> |
|
55 |
<Alpha value="0.0" alpha="0" interpolated="50.0"/> |
|
56 |
<Alpha value="1.0" alpha="255" interpolated="50.0"/> |
|
57 |
<Alpha value="2.0" alpha="255" interpolated="50.0"/> |
|
58 |
<Alpha value="3.0" alpha="255" interpolated="50.0"/> |
|
59 |
<Alpha value="4.0" alpha="255" interpolated="50.0"/> |
|
60 |
<Alpha value="5.0" alpha="255" interpolated="50.0"/> |
|
61 |
<Alpha value="6.0" alpha="255" interpolated="50.0"/> |
|
62 |
<Alpha value="7.0" alpha="255" interpolated="50.0"/> |
|
63 |
<Alpha value="8.0" alpha="255" interpolated="50.0"/> |
|
64 |
<Alpha value="9.0" alpha="255" interpolated="50.0"/> |
|
65 |
<Alpha value="10.0" alpha="255" interpolated="50.0"/> |
|
66 |
<Alpha value="11.0" alpha="255" interpolated="50.0"/> |
|
67 |
<Alpha value="12.0" alpha="255" interpolated="50.0"/> |
|
68 |
<Alpha value="13.0" alpha="255" interpolated="50.0"/> |
|
69 |
<Alpha value="14.0" alpha="255" interpolated="50.0"/> |
|
70 |
<Alpha value="15.0" alpha="255" interpolated="50.0"/> |
|
71 |
<Alpha value="16.0" alpha="255" interpolated="50.0"/> |
|
72 |
<Alpha value="17.0" alpha="255" interpolated="50.0"/> |
|
73 |
<Alpha value="18.0" alpha="255" interpolated="50.0"/> |
|
74 |
<Alpha value="19.0" alpha="255" interpolated="50.0"/> |
|
75 |
<Alpha value="20.0" alpha="255" interpolated="50.0"/> |
|
76 |
<Alpha value="21.0" alpha="255" interpolated="50.0"/> |
|
77 |
<Alpha value="22.0" alpha="255" interpolated="50.0"/> |
|
78 |
<Alpha value="23.0" alpha="255" interpolated="50.0"/> |
|
79 |
<Alpha value="24.0" alpha="255" interpolated="50.0"/> |
|
80 |
<Alpha value="25.0" alpha="255" interpolated="50.0"/> |
|
81 |
<Alpha value="26.0" alpha="255" interpolated="50.0"/> |
|
82 |
<Alpha value="27.0" alpha="255" interpolated="50.0"/> |
|
83 |
<Alpha value="28.0" alpha="255" interpolated="50.0"/> |
|
84 |
<Alpha value="29.0" alpha="255" interpolated="50.0"/> |
|
85 |
<Alpha value="30.0" alpha="255" interpolated="50.0"/> |
|
86 |
<Alpha value="31.0" alpha="255" interpolated="50.0"/> |
|
87 |
</ColorTable> |
|
88 |
<Statistics> |
|
89 |
<BandCount>3</BandCount> |
|
90 |
<Band> |
|
91 |
<Max>125.0</Max> |
|
92 |
<Min>-128.0</Min> |
|
93 |
<SecondMax>124.0</SecondMax> |
|
94 |
<SecondMin>-127.0</SecondMin> |
|
95 |
<MaxRGB>250.0</MaxRGB> |
|
96 |
<MinRGB>0.0</MinRGB> |
|
97 |
<SecondMaxRGB>248.0</SecondMaxRGB> |
|
98 |
<SecondMinRGB>1.0</SecondMinRGB> |
|
99 |
<Mean>95.86833333333334</Mean> |
|
100 |
<Variance>3050.1676638888875</Variance> |
|
101 |
</Band> |
|
102 |
<Band> |
|
103 |
<Max>127.0</Max> |
|
104 |
<Min>-128.0</Min> |
|
105 |
<SecondMax>126.0</SecondMax> |
|
106 |
<SecondMin>-127.0</SecondMin> |
|
107 |
<MaxRGB>255.0</MaxRGB> |
|
108 |
<MinRGB>0.0</MinRGB> |
|
109 |
<SecondMaxRGB>254.0</SecondMaxRGB> |
|
110 |
<SecondMinRGB>3.0</SecondMinRGB> |
|
111 |
<Mean>105.20166666666667</Mean> |
|
112 |
<Variance>2689.3743305555545</Variance> |
|
113 |
</Band> |
|
114 |
<Band> |
|
115 |
<Max>127.0</Max> |
|
116 |
<Min>-128.0</Min> |
|
117 |
<SecondMax>124.0</SecondMax> |
|
118 |
<SecondMin>-126.0</SecondMin> |
|
119 |
<MaxRGB>254.0</MaxRGB> |
|
120 |
<MinRGB>0.0</MinRGB> |
|
121 |
<SecondMaxRGB>250.0</SecondMaxRGB> |
|
122 |
<SecondMinRGB>1.0</SecondMinRGB> |
|
123 |
<Mean>85.10333333333334</Mean> |
|
124 |
<Variance>3218.745988888888</Variance> |
|
125 |
</Band> |
|
126 |
<TailTrim> |
|
127 |
<Key>3.0</Key> |
|
128 |
<Value>10.0</Value> |
|
129 |
</TailTrim> |
|
130 |
<TailTrim> |
|
131 |
<Key>4.0</Key> |
|
132 |
<Value>16.0</Value> |
|
133 |
</TailTrim> |
|
134 |
</Statistics> |
|
135 |
<FLyrGeoRaster> |
|
136 |
<Extent> |
|
137 |
<X>644848.8</X> |
|
138 |
<Y>4925251.2</Y> |
|
139 |
<RotationX>0.0</RotationX> |
|
140 |
<RotationY>0.0</RotationY> |
|
141 |
<PixelSizeX>2.4</PixelSizeX> |
|
142 |
<PixelSizeY>-2.4</PixelSizeY> |
|
143 |
<Width>2088.0</Width> |
|
144 |
<Height>2088.0</Height> |
|
145 |
</Extent> |
|
146 |
<Dimension> |
|
147 |
<ImagePxWidth>870.0</ImagePxWidth> |
|
148 |
<ImagePxHeight>870.0</ImagePxHeight> |
|
149 |
</Dimension> |
|
150 |
</FLyrGeoRaster> |
|
151 |
<GeoPoints> |
|
152 |
<GeoPoint n="0"> |
|
153 |
<PixelX>10.0</PixelX> |
|
154 |
<PixelY>10.0</PixelY> |
|
155 |
<MapX>34223.3</MapX> |
|
156 |
<MapY>2344.2</MapY> |
|
157 |
<Active>true</Active> |
|
158 |
</GeoPoint> |
|
159 |
<GeoPoint n="1"> |
|
160 |
<PixelX>10.0</PixelX> |
|
161 |
<PixelY>10.0</PixelY> |
|
162 |
<MapX>34223.3</MapX> |
|
163 |
<MapY>2344.2</MapY> |
|
164 |
<Active>true</Active> |
|
165 |
</GeoPoint> |
|
166 |
</GeoPoints> |
|
167 |
<NoData> |
|
168 |
<Data value="5450.0" type="2"/> |
|
169 |
</NoData> |
|
170 |
<ColorInterpretation> |
|
171 |
<BandCount>3</BandCount> |
|
172 |
<Band>Red</Band> |
|
173 |
<Band>Green</Band> |
|
174 |
<Band>Blue</Band> |
|
175 |
</ColorInterpretation> |
|
176 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/resources/miniRaster25x24.rmf | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-15"?> |
|
2 |
<RasterMetaFile> |
|
3 |
<Histogram> |
|
4 |
<BandCount>3</BandCount> |
|
5 |
<DataType>0</DataType> |
|
6 |
<Band> |
|
7 |
<Min>-128.0</Min> |
|
8 |
<Max>127.0</Max> |
|
9 |
<Values>2 5 2 0 0 0 2 4 0 0 4 0 1 2 4 0 0 1 4 0 0 4 2 0 4 2 2 0 0 4 2 0 4 0 2 0 6 0 4 0 0 2 0 1 4 2 0 2 0 0 8 2 4 0 0 3 0 0 0 0 0 0 0 0 0 0 4 0 0 0 4 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 6 0 0 8 0 0 0 0 0 0 0 0 2 6 0 4 0 0 0 0 1 0 0 0 2 0 2 0 2 0 0 0 0 0 16 4 0 0 4 0 0 0 0 4 0 4 0 0 2 0 2 2 0 2 0 2 2 6 2 0 0 0 0 0 4 2 0 4 1 0 0 4 4 0 0 0 4 0 0 0 0 0 4 4 0 4 0 6 13 2 7 2 16 4 4 7 6 4 4 16 12 0 7 8 14 14 0 2 6 6 4 6 4 6 12 10 13 4 2 2 6 4 7 0 8 8 2 6 8 4 4 17 0 0 0 0 4 2 0 0 4 4 0 6 8 4 2 2 4 5 5 4 2 6 4 0 2 1 4 4 0 0</Values> |
|
10 |
</Band> |
|
11 |
<Band> |
|
12 |
<Min>-128.0</Min> |
|
13 |
<Max>127.0</Max> |
|
14 |
<Values>2 8 8 2 2 8 1 4 4 4 0 0 3 0 0 4 0 2 4 4 2 0 0 2 0 4 0 0 0 0 4 4 2 4 0 1 0 0 0 0 0 0 0 0 6 3 0 0 2 0 4 0 4 4 2 0 0 0 0 4 0 0 2 0 0 0 0 0 0 0 0 0 4 0 0 0 2 4 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 2 0 0 0 0 0 4 0 4 0 0 0 0 0 2 4 2 0 0 0 4 0 0 0 0 2 0 1 0 0 0 0 2 2 2 0 0 1 1 0 2 8 0 0 0 2 0 0 2 0 0 4 8 0 4 0 0 0 0 0 2 0 0 2 0 0 0 0 0 2 0 6 2 2 0 0 0 5 0 0 0 8 0 0 0 4 4 0 0 0 4 0 0 8 0 8 0 4 0 14 4 0 3 2 10 6 7 4 4 18 2 4 10 12 0 6 12 4 8 12 4 4 12 4 2 6 0 4 15 4 6 10 10 0 2 8 6 2 10 2 1 5 6 8 4 2 8 0 1 8 0 4 0 0 2 6 3 7 12 1 8 8</Values> |
|
15 |
</Band> |
|
16 |
<Band> |
|
17 |
<Min>-128.0</Min> |
|
18 |
<Max>127.0</Max> |
|
19 |
<Values>4 0 8 0 0 4 1 2 2 0 0 0 0 4 0 0 4 0 0 0 6 0 0 0 1 0 0 2 0 0 4 4 1 2 0 0 4 4 2 4 0 0 0 0 0 0 0 0 0 4 0 0 0 0 2 0 4 0 0 0 0 0 2 0 0 0 0 0 0 0 0 4 0 4 0 4 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 2 0 0 0 4 2 4 0 0 0 0 0 0 4 4 0 0 0 0 1 0 0 0 0 0 0 0 2 2 0 0 0 2 0 25 4 1 0 0 0 0 2 0 0 2 4 2 4 0 0 0 0 0 0 0 2 2 6 4 0 1 0 4 4 4 8 0 0 0 5 12 6 14 4 0 0 22 0 4 0 1 4 6 4 10 10 8 2 2 9 10 10 8 2 7 2 10 2 4 4 2 8 14 8 8 2 0 4 4 9 8 8 0 4 5 4 2 6 2 4 2 1 10 2 4 6 8 0 0 0 4 6 1 0 0 6 6 2 0 2 5 10 2 3 0 16 0 0 0 0 0 0 3 4 8 1 2 0 2 0 0 4</Values> |
|
20 |
</Band> |
|
21 |
</Histogram> |
|
22 |
</RasterMetaFile> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/java/org/gvsig/fmap/dal/series/TestReadDataTDataStore.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.series; |
|
23 |
|
|
24 |
import java.text.ParseException; |
|
25 |
|
|
26 |
import org.gvsig.fmap.dal.coverage.BaseTestCase; |
|
27 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
|
28 |
import org.gvsig.fmap.dal.coverage.exception.InvalidSetViewException; |
|
29 |
import org.gvsig.fmap.dal.coverage.exception.NotSupportedExtensionException; |
|
30 |
import org.gvsig.fmap.dal.coverage.exception.OperationNotSupportedException; |
|
31 |
import org.gvsig.fmap.dal.coverage.exception.ProcessInterruptedException; |
|
32 |
import org.gvsig.fmap.dal.coverage.exception.RasterDriverException; |
|
33 |
import org.gvsig.fmap.dal.coverage.exception.TimeException; |
|
34 |
import org.gvsig.fmap.dal.coverage.store.RasterDataStore; |
|
35 |
import org.gvsig.fmap.dal.coverage.store.RasterQuery; |
|
36 |
/** |
|
37 |
* Saves serial information to rmf file |
|
38 |
* |
|
39 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
40 |
*/ |
|
41 |
public class TestReadDataTDataStore extends BaseTestCase { |
|
42 |
private String path1 = baseDir + "serie1.tif"; |
|
43 |
private String path2 = baseDir + "serie2.tif"; |
|
44 |
private String path3 = baseDir + "serie3.tif"; |
|
45 |
private RasterDataStore f1 = null; |
|
46 |
private RasterDataStore f2 = null; |
|
47 |
private RasterDataStore f3 = null; |
|
48 |
//private RasterQuery query = null; |
|
49 |
protected Buffer buf1 = null; |
|
50 |
|
|
51 |
public void start() throws Exception { |
|
52 |
this.setUp(); |
|
53 |
this.testStack(); |
|
54 |
} |
|
55 |
|
|
56 |
protected void doSetUp() throws Exception { |
|
57 |
System.err.println("TestSaveSerialToRmf running..."); |
|
58 |
|
|
59 |
try { |
|
60 |
super.doSetUp(); |
|
61 |
} catch (Exception e) { |
|
62 |
e.printStackTrace(); |
|
63 |
} |
|
64 |
|
|
65 |
try { |
|
66 |
f1 = manager.open(path1); |
|
67 |
f2 = manager.open(path2); |
|
68 |
f3 = manager.open(path3); |
|
69 |
} catch (NotSupportedExtensionException e1) { |
|
70 |
e1.printStackTrace(); |
|
71 |
} catch (RasterDriverException e1) { |
|
72 |
e1.printStackTrace(); |
|
73 |
} |
|
74 |
} |
|
75 |
|
|
76 |
public void testStack() { |
|
77 |
/*try { |
|
78 |
RasterDataStore store = new DefaultTRasterStore(f1); |
|
79 |
store.addTemporalDataStore(f2); |
|
80 |
store.addTemporalDataStore(f3);*/ |
|
81 |
|
|
82 |
//Selecci?n temporal por valor |
|
83 |
|
|
84 |
/*TimeInfo tInfo = new DefaultTimeInfo(); |
|
85 |
tInfo.addValue("29/8/2005"); //Blue |
|
86 |
store.setTime(tInfo); |
|
87 |
|
|
88 |
Buffer buf = readData(store); |
|
89 |
byte[] data = new byte[3]; |
|
90 |
buf.getElemByte(0, 0, data); |
|
91 |
assertEquals(0, data[0]); |
|
92 |
assertEquals(0, data[1]); |
|
93 |
assertEquals(-1, data[2]); |
|
94 |
System.out.println("RGB:" + data[0] + ", " + data[1] + ", " + data[2]);*/ |
|
95 |
|
|
96 |
|
|
97 |
//Selecci?n temporal por rango |
|
98 |
|
|
99 |
/*tInfo = new DefaultTimeInfo(); |
|
100 |
tInfo.addValue("26/8/2005-10:05:00"); //Red |
|
101 |
tInfo.addValue("26/8/2005-12:36:00"); |
|
102 |
store.setTime(tInfo); |
|
103 |
|
|
104 |
buf = readData(store); |
|
105 |
data = new byte[3]; |
|
106 |
buf.getElemByte(0, 0, data); |
|
107 |
assertEquals(-1, data[0]); |
|
108 |
assertEquals(0, data[1]); |
|
109 |
assertEquals(0, data[2]); |
|
110 |
System.out.println("RGB:" + data[0] + ", " + data[1] + ", " + data[2]); |
|
111 |
|
|
112 |
//Tests para los intervalos numericos |
|
113 |
tInfo = new DefaultTimeInfo(); |
|
114 |
tInfo.addValue(152438); //Green |
|
115 |
store.selectSerial("Katrina2"); |
|
116 |
store.setTime(tInfo); |
|
117 |
|
|
118 |
buf = readData(store); |
|
119 |
data = new byte[3]; |
|
120 |
buf.getElemByte(0, 0, data); |
|
121 |
assertEquals(0, data[0]); |
|
122 |
assertEquals(-1, data[1]); |
|
123 |
assertEquals(0, data[2]); |
|
124 |
System.out.println("RGB:" + data[0] + ", " + data[1] + ", " + data[2]); |
|
125 |
|
|
126 |
tInfo = new DefaultTimeInfo(); |
|
127 |
tInfo.addValue(152340); //Red |
|
128 |
store.setTime(tInfo); |
|
129 |
|
|
130 |
buf = readData(store); |
|
131 |
data = new byte[3]; |
|
132 |
buf.getElemByte(0, 0, data); |
|
133 |
assertEquals(-1, data[0]); |
|
134 |
assertEquals(0, data[1]); |
|
135 |
assertEquals(0, data[2]); |
|
136 |
System.out.println("RGB:" + data[0] + ", " + data[1] + ", " + data[2]); |
|
137 |
|
|
138 |
tInfo = new DefaultTimeInfo(); |
|
139 |
tInfo.addValue(152550); //Red |
|
140 |
store.setTime(tInfo); |
|
141 |
|
|
142 |
buf = readData(store); |
|
143 |
data = new byte[3]; |
|
144 |
buf.getElemByte(0, 0, data); |
|
145 |
assertEquals(0, data[0]); |
|
146 |
assertEquals(0, data[1]); |
|
147 |
assertEquals(-1, data[2]); |
|
148 |
System.out.println("RGB:" + data[0] + ", " + data[1] + ", " + data[2]); |
|
149 |
|
|
150 |
} catch (ParseException e) { |
|
151 |
e.printStackTrace(); |
|
152 |
} catch (TimeException e) { |
|
153 |
e.printStackTrace(); |
|
154 |
} catch (OperationNotSupportedException e) { |
|
155 |
e.printStackTrace(); |
|
156 |
}*/ |
|
157 |
|
|
158 |
} |
|
159 |
|
|
160 |
private Buffer readData(RasterDataStore store) { |
|
161 |
RasterQuery query = manager.createQuery(); |
|
162 |
query.setAllDrawableBands(); |
|
163 |
try { |
|
164 |
query.setAreaOfInterest(0, 0, (int)store.getWidth(), (int)store.getHeight()); |
|
165 |
return store.query(query); |
|
166 |
} catch (InvalidSetViewException e1) { |
|
167 |
e1.printStackTrace(); |
|
168 |
} catch (ProcessInterruptedException e) { |
|
169 |
e.printStackTrace(); |
|
170 |
} catch (RasterDriverException e) { |
|
171 |
e.printStackTrace(); |
|
172 |
} |
|
173 |
|
|
174 |
return null; |
|
175 |
} |
|
176 |
} |
|
0 | 177 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/java/org/gvsig/fmap/dal/series/TestSaveSerialToRmf.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.series; |
|
23 |
|
|
24 |
import java.io.File; |
|
25 |
import java.text.ParseException; |
|
26 |
|
|
27 |
import org.gvsig.fmap.dal.coverage.BaseTestCase; |
|
28 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
|
29 |
import org.gvsig.fmap.dal.coverage.exception.NotSupportedExtensionException; |
|
30 |
import org.gvsig.fmap.dal.coverage.exception.RasterDriverException; |
|
31 |
import org.gvsig.fmap.dal.coverage.exception.RmfSerializerException; |
|
32 |
import org.gvsig.fmap.dal.coverage.store.RasterDataStore; |
|
33 |
import org.gvsig.fmap.dal.coverage.store.props.TimeSeries; |
|
34 |
/** |
|
35 |
* Saves serial information to rmf file |
|
36 |
* |
|
37 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
38 |
*/ |
|
39 |
public class TestSaveSerialToRmf extends BaseTestCase { |
|
40 |
private String path1 = baseDir + "serie1.tif"; |
|
41 |
private String path2 = baseDir + "serie2.tif"; |
|
42 |
private String path3 = baseDir + "serie3.tif"; |
|
43 |
private RasterDataStore f1 = null; |
|
44 |
private RasterDataStore f2 = null; |
|
45 |
private RasterDataStore f3 = null; |
|
46 |
//private RasterQuery query = null; |
|
47 |
protected Buffer buf1 = null; |
|
48 |
|
|
49 |
public void start() throws Exception { |
|
50 |
this.setUp(); |
|
51 |
this.testStack(); |
|
52 |
} |
|
53 |
|
|
54 |
protected void doSetUp() throws Exception { |
|
55 |
System.err.println("TestSaveSerialToRmf running..."); |
|
56 |
|
|
57 |
try { |
|
58 |
super.doSetUp(); |
|
59 |
} catch (Exception e) { |
|
60 |
e.printStackTrace(); |
|
61 |
} |
|
62 |
File a = new File(baseDir + "serie1.rmf"); |
|
63 |
if(a.exists()) |
|
64 |
a.delete(); |
|
65 |
a = new File(baseDir + "serie2.rmf"); |
|
66 |
if(a.exists()) |
|
67 |
a.delete(); |
|
68 |
a = new File(baseDir + "serie3.rmf"); |
|
69 |
if(a.exists()) |
|
70 |
a.delete(); |
|
71 |
|
|
72 |
try { |
|
73 |
f1 = manager.open(path1); |
|
74 |
f2 = manager.open(path2); |
|
75 |
f3 = manager.open(path3); |
|
76 |
} catch (NotSupportedExtensionException e1) { |
|
77 |
e1.printStackTrace(); |
|
78 |
} catch (RasterDriverException e1) { |
|
79 |
e1.printStackTrace(); |
|
80 |
} |
|
81 |
} |
|
82 |
|
|
83 |
public void testStack() { |
|
84 |
TimeSeries serialInfo = null; |
|
85 |
try { |
|
86 |
serialInfo = f1.getTimeSerials(); //Lo da vacio pq antes hemos borrado el rmf |
|
87 |
serialInfo.setName("Katrina"); |
|
88 |
serialInfo.setDescription("Evoluci?n del katrina"); |
|
89 |
serialInfo.createNewTimeInterval("25/8/2005-00:05:00", "27/8/2005-14:36:00"); |
|
90 |
f1.setTimeSerials(serialInfo); //Salvamos la serie |
|
91 |
|
|
92 |
serialInfo.setName("Katrina2"); |
|
93 |
serialInfo.setDescription("Evoluci?n del katrina en otra serie"); |
|
94 |
serialInfo.createNewTimeInterval(152322, 152400); |
|
95 |
f1.setTimeSerials(serialInfo); //Salvamos la serie |
|
96 |
|
|
97 |
//------------------------------------ |
|
98 |
|
|
99 |
serialInfo = f2.getTimeSerials(); |
|
100 |
serialInfo.setName("Katrina"); |
|
101 |
serialInfo.setDescription("Evoluci?n del katrina"); |
|
102 |
serialInfo.createNewTimeValue("28/8/2005-00:05:00"); |
|
103 |
f2.setTimeSerials(serialInfo); |
|
104 |
|
|
105 |
serialInfo.setName("Katrina2"); |
|
106 |
serialInfo.setDescription("Evoluci?n del katrina en otra serie"); |
|
107 |
serialInfo.createNewTimeValue(152438); |
|
108 |
f2.setTimeSerials(serialInfo); //Salvamos la serie |
|
109 |
|
|
110 |
//------------------------------------ |
|
111 |
|
|
112 |
serialInfo = f3.getTimeSerials(); |
|
113 |
serialInfo.setName("Katrina"); |
|
114 |
serialInfo.setDescription("Evoluci?n del katrina"); |
|
115 |
serialInfo.createNewTimeValue("29/8/2005"); |
|
116 |
f3.setTimeSerials(serialInfo); |
|
117 |
|
|
118 |
serialInfo.setName("Katrina2"); |
|
119 |
serialInfo.setDescription("Evoluci?n del katrina en otra serie"); |
|
120 |
serialInfo.createNewTimeValue(152550.0); |
|
121 |
f3.setTimeSerials(serialInfo); //Salvamos la serie |
|
122 |
|
|
123 |
} catch (RmfSerializerException e1) { |
|
124 |
// TODO Auto-generated catch block |
|
125 |
e1.printStackTrace(); |
|
126 |
} catch (ParseException e) { |
|
127 |
// TODO Auto-generated catch block |
|
128 |
e.printStackTrace(); |
|
129 |
} |
|
130 |
|
|
131 |
|
|
132 |
/*query = manager.createQuery(); |
|
133 |
query.setAllDrawableBands(); |
|
134 |
try { |
|
135 |
query.setAreaOfInterest(f1.getExtent().getMin().getX(), f1.getExtent().getMax().getY(), f1.getExtent().width(), f1.getExtent().height()); |
|
136 |
buf1 = f1.query(query); |
|
137 |
} catch (RasterDriverException e) { |
|
138 |
e.printStackTrace(); |
|
139 |
} catch (InvalidSetViewException e) { |
|
140 |
e.printStackTrace(); |
|
141 |
} catch (ProcessInterruptedException e) { |
|
142 |
e.printStackTrace(); |
|
143 |
} |
|
144 |
|
|
145 |
System.out.println("R:" + (buf1.getElemByte(0, 0, 0) & 0xff)); |
|
146 |
System.out.println("G:" + (buf1.getElemByte(0, 0, 1) & 0xff)); |
|
147 |
System.out.println("B:" + (buf1.getElemByte(0, 0, 2) & 0xff));*/ |
|
148 |
} |
|
149 |
} |
|
0 | 150 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.120/org.gvsig.raster.main/src/test/java/org/gvsig/fmap/dal/coverage/dataset/TestGetWindowRasterMrSID.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.dataset; |
|
23 |
|
|
24 |
import org.gvsig.fmap.dal.coverage.BaseTestCase; |
|
25 |
import org.gvsig.fmap.dal.coverage.exception.InvalidSetViewException; |
|
26 |
import org.gvsig.fmap.dal.coverage.exception.NotSupportedExtensionException; |
|
27 |
import org.gvsig.fmap.dal.coverage.exception.ProcessInterruptedException; |
|
28 |
import org.gvsig.fmap.dal.coverage.exception.RasterDriverException; |
|
29 |
import org.gvsig.fmap.dal.coverage.store.RasterDataStore; |
|
30 |
import org.gvsig.fmap.dal.coverage.store.RasterQuery; |
|
31 |
/** |
|
32 |
* Test que compara los resultados de la llamada getWindowRaster en coordenadas pixel |
|
33 |
* y coordenadas reales para comprobar que producen el mismo resultado para la misma extensi?n. |
|
34 |
* |
|
35 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
36 |
*/ |
|
37 |
public class TestGetWindowRasterMrSID extends BaseTestCase { |
|
38 |
private String path1 = baseDir + "q101866.sid"; |
|
39 |
private RasterDataStore f1 = null; |
|
40 |
private RasterDataStore f2 = null; |
|
41 |
private RasterQuery query = null; |
|
42 |
protected Buffer buf1 = null; |
|
43 |
protected Buffer buf2 = null; |
|
44 |
|
|
45 |
public void start() throws Exception { |
|
46 |
this.setUp(); |
|
47 |
this.testStack(); |
|
48 |
} |
|
49 |
|
|
50 |
protected void doSetUp() throws Exception { |
|
51 |
System.err.println("TestGetWindowRasterMrSID running..."); |
|
52 |
|
|
53 |
try { |
|
54 |
super.doSetUp(); |
|
55 |
} catch (Exception e) { |
|
56 |
e.printStackTrace(); |
|
57 |
} |
|
58 |
|
|
59 |
try { |
|
60 |
f1 = manager.open(path1); |
|
61 |
f2 = manager.open(path1); |
|
62 |
} catch (NotSupportedExtensionException e1) { |
|
63 |
e1.printStackTrace(); |
|
64 |
} catch (RasterDriverException e1) { |
|
65 |
e1.printStackTrace(); |
|
66 |
} |
|
67 |
} |
|
68 |
|
|
69 |
public void testStack() { |
|
70 |
query = manager.createQuery(); |
|
71 |
query.setAllDrawableBands(); |
|
72 |
try { |
|
73 |
query.setAreaOfInterest(f1.getExtent().getMin().getX(), f1.getExtent().getMax().getY(), f1.getExtent().width(), f1.getExtent().height()); |
|
74 |
buf1 = f1.query(query); |
|
75 |
} catch (RasterDriverException e) { |
|
76 |
e.printStackTrace(); |
|
77 |
} catch (InvalidSetViewException e) { |
|
78 |
e.printStackTrace(); |
|
79 |
} catch (ProcessInterruptedException e) { |
|
80 |
e.printStackTrace(); |
|
81 |
} |
|
82 |
|
|
83 |
try { |
|
84 |
query.setAreaOfInterest(0, 0, (int)f2.getWidth(), (int)f2.getHeight()); |
|
85 |
buf2 = f2.query(query); |
|
86 |
} catch (InvalidSetViewException e) { |
|
87 |
e.printStackTrace(); |
|
88 |
} catch (ProcessInterruptedException e) { |
|
89 |
e.printStackTrace(); |
|
90 |
} catch (RasterDriverException e) { |
|
91 |
e.printStackTrace(); |
|
92 |
} |
|
93 |
|
|
94 |
for (int band = 0; band < buf1.getBandCount(); band++) { |
Also available in: Unified diff