/[xulu]/trunk/src/appl/data/WritableGridArrayLoader.java
ViewVC logotype

Contents of /trunk/src/appl/data/WritableGridArrayLoader.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 114 - (show annotations)
Mon Jul 11 11:31:25 2011 UTC (13 years, 5 months ago) by mojays
File size: 954 byte(s)
SCHMITZM library updated to current version (2.6-SNAPSHOT)
Added gt-xsd-filter.jar, gt-xsd-gml2.jar, picocontainer.jar and xsd.jar from Geotools 2.6.5
1 package appl.data;
2
3 import de.appl.util.RasterMetaData;
4 import de.schmitzm.geotools.data.WritableGrid;
5 import de.schmitzm.geotools.data.WritableGridArray;
6
7 /**
8 * Simply loads an empty {@link WritableGridArray} with the specified meta data.
9 *
10 * @author Dominik Appl
11 */
12 public class WritableGridArrayLoader implements DataLoader {
13
14 private RasterMetaData metaData;
15
16 private WritableGridArrayLoader() {
17 }
18
19 /**
20 * @param metaData
21 * the metadata with the exact dimensions/datatype
22 */
23 public WritableGridArrayLoader(RasterMetaData metaData) {
24 this.metaData = metaData;
25 }
26
27 /*
28 * (non-Javadoc)
29 *
30 * @see appl.data.DataLoader#load()
31 */
32 public WritableGrid load() {
33 return WritableGridArray.createEmpty(metaData);
34 }
35
36 /*
37 * (non-Javadoc)
38 *
39 * @see appl.data.DataLoader#getLoadInfo()
40 */
41 public String getLoadInfo() {
42 return "WritableGridArrayLoader|" + metaData;
43 }
44
45 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26