Main.java 1.05 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package eu.simstadt.nf;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.List;

public class Main {
	
	public static void main(String[] args) {
//		List<Coord> regionPolygon = Arrays.asList(
//				new Coord(48.879696, 9.215463),
//				new Coord(48.878230, 9.215714),
//				new Coord(48.878323, 9.216613),
//				new Coord(48.879402, 9.216532)
//		);
//		String exportJobDescription = NFJobBuilder.buildExportJob(regionPolygon);
//		
//		String filename = "tmp.xml";
//		
//		try {
//			PrintWriter writer = new PrintWriter(filename);
//			writer.print(exportJobDescription);
//			writer.close();
//			
//			File exportJobFile = new File(filename);
//			NFConnector connector = new NFConnectorImpl("193.196.136.164");
//			JobStatus status = connector.sendExportJob(exportJobFile);
//			System.out.println(status + " - " + status.getMessage());
//		} catch (FileNotFoundException ex) {
//			// TODO Auto-generated catch block
//			ex.printStackTrace();
//		}
	}

}