comparison gnv-artifacts/src/main/java/de/intevation/gnv/exports/ShapeDataCollector.java @ 778:9a828e5a2390

Removed trailing whitespace gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 29 Mar 2010 07:58:51 +0000
parents a0e63136954e
children b1f5f2a8840f
comparison
equal deleted inserted replaced
777:8009961db1cb 778:9a828e5a2390
43 * This method takes point from wkt strings as well and split them into x 43 * This method takes point from wkt strings as well and split them into x
44 * and y coordinate. 44 * and y coordinate.
45 * 45 *
46 * @see de.intevation.gnv.exports.Export.DataCollector#getData(Result) 46 * @see de.intevation.gnv.exports.Export.DataCollector#getData(Result)
47 */ 47 */
48 public String[] getData(Result result) 48 public String[] getData(Result result)
49 throws StateException { 49 throws StateException {
50 50
51 if (rd == null) 51 if (rd == null)
52 init(result); 52 init(result);
53 53
54 try { 54 try {
55 String [] entries = new String[names.length+1]; 55 String [] entries = new String[names.length+1];
56 int j = 0; 56 int j = 0;
57 for (int i = 0; i < names.length; i++) { 57 for (int i = 0; i < names.length; i++) {
58 58
59 if (names[i].equals("SHAPE")) { 59 if (names[i].equals("SHAPE")) {
60 Point p = (Point)wktReader.read(result.getString("SHAPE")); 60 Point p = (Point)wktReader.read(result.getString("SHAPE"));
61 61
62 entries[j++] = ""+p.getX(); 62 entries[j++] = ""+p.getX();
63 entries[j++] = ""+p.getY(); 63 entries[j++] = ""+p.getY();

http://dive4elements.wald.intevation.org