comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/util/ShapeFileWriterTestCase.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 e17621ccf06c
children b1f5f2a8840f
comparison
equal deleted inserted replaced
777:8009961db1cb 778:9a828e5a2390
32 32
33 static { 33 static {
34 BasicConfigurator.configure(); 34 BasicConfigurator.configure();
35 log = Logger.getLogger(ShapeFileWriterTestCase.class); 35 log = Logger.getLogger(ShapeFileWriterTestCase.class);
36 } 36 }
37 37
38 /** 38 /**
39 * Constructor 39 * Constructor
40 * @param name 40 * @param name
41 */ 41 */
42 public ShapeFileWriterTestCase(String name) { 42 public ShapeFileWriterTestCase(String name) {
43 super(name); 43 super(name);
44 } 44 }
45 45
46 46
47 public void testMultiLineStringWriter(){ 47 public void testMultiLineStringWriter(){
48 48
49 try { 49 try {
50 String wkt = "MULTILINESTRING ((10 10, 20 20),(15 15, 30 15))"; 50 String wkt = "MULTILINESTRING ((10 10, 20 20),(15 15, 30 15))";
51 String wkt1 = "MULTILINESTRING ((10 5, 20 20),(15 15, 30 15))"; 51 String wkt1 = "MULTILINESTRING ((10 5, 20 20),(15 15, 30 15))";
52 String wkt2 = "MULTILINESTRING ((10 10, 8 20),(15 15, 30 15))"; 52 String wkt2 = "MULTILINESTRING ((10 10, 8 20),(15 15, 30 15))";
53 String wkt3 = "MULTILINESTRING ((8 10, 20 20),(15 15, 30 15))"; 53 String wkt3 = "MULTILINESTRING ((8 10, 20 20),(15 15, 30 15))";
72 multiLineString2)); 72 multiLineString2));
73 multiLineStrings.add( 73 multiLineStrings.add(
74 new Pair<Object, MultiLineString>( 74 new Pair<Object, MultiLineString>(
75 1.5, 75 1.5,
76 multiLineString3)); 76 multiLineString3));
77 77
78 java.io.File shapeFile = new java.io.File("/tmp/test"+System.currentTimeMillis()+".shp"); 78 java.io.File shapeFile = new java.io.File("/tmp/test"+System.currentTimeMillis()+".shp");
79 79
80 ShapeFileWriter.writeMultiLineStringsToFile(shapeFile, 1, 1, new Date(), multiLineStrings); 80 ShapeFileWriter.writeMultiLineStringsToFile(shapeFile, 1, 1, new Date(), multiLineStrings);
81 81
82 } catch (Exception e) { 82 } catch (Exception e) {
83 log.error(e,e); 83 log.error(e,e);
84 fail(); 84 fail();
85 } 85 }
86 } 86 }

http://dive4elements.wald.intevation.org