Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java @ 2614:036e234c2385
Added service to generate a chart of fixings for given river and km applied
some filters. Stub by now.
flys-artifacts/trunk@4198 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 04 Apr 2012 14:41:27 +0000 |
parents | |
children | b0597a63fe70 |
comparison
equal
deleted
inserted
replaced
2613:2e129754d450 | 2614:036e234c2385 |
---|---|
1 package de.intevation.flys.artifacts.services; | |
2 | |
3 import de.intevation.artifactdatabase.DefaultService; | |
4 | |
5 import de.intevation.artifacts.CallMeta; | |
6 import de.intevation.artifacts.GlobalContext; | |
7 import de.intevation.artifacts.Service; | |
8 | |
9 import org.apache.log4j.Logger; | |
10 | |
11 import org.w3c.dom.Document; | |
12 | |
13 public class FixingsKMChartService | |
14 extends DefaultService | |
15 { | |
16 private static final Logger log = | |
17 Logger.getLogger(FixingsKMChartService.class); | |
18 | |
19 public static final byte [] DATA0 = { | |
20 (byte)0x89, (byte)0x50, (byte)0x4e, (byte)0x47, | |
21 (byte)0x0d, (byte)0x0a, (byte)0x1a, (byte)0x0a, | |
22 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0d, | |
23 (byte)0x49, (byte)0x48, (byte)0x44, (byte)0x52, | |
24 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x1d, | |
25 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x1d, | |
26 (byte)0x04, (byte)0x03, (byte)0x00, (byte)0x00, | |
27 (byte)0x00, (byte)0xa4, (byte)0xbd, (byte)0x7a, | |
28 (byte)0x3c, (byte)0x00, (byte)0x00, (byte)0x00, | |
29 (byte)0x01, (byte)0x73, (byte)0x52, (byte)0x47, | |
30 (byte)0x42, (byte)0x00, (byte)0xae, (byte)0xce, | |
31 (byte)0x1c, (byte)0xe9, (byte)0x00, (byte)0x00, | |
32 (byte)0x00, (byte)0x18, (byte)0x50, (byte)0x4c, | |
33 (byte)0x54, (byte)0x45, (byte)0xff, (byte)0xff, | |
34 (byte)0xff, (byte)0x08, (byte)0x08, (byte)0x08, | |
35 (byte)0x29, (byte)0x29, (byte)0x29, (byte)0x52, | |
36 (byte)0x52, (byte)0x52, (byte)0x8c, (byte)0x8c, | |
37 (byte)0x8c, (byte)0xbd, (byte)0xbd, (byte)0xbd, | |
38 (byte)0xe7, (byte)0xe7, (byte)0xe7, (byte)0x00, | |
39 (byte)0x00, (byte)0x00, (byte)0xcf, (byte)0x3a, | |
40 (byte)0xd7, (byte)0x12, (byte)0x00, (byte)0x00, | |
41 (byte)0x00, (byte)0x09, (byte)0x70, (byte)0x48, | |
42 (byte)0x59, (byte)0x73, (byte)0x00, (byte)0x00, | |
43 (byte)0x0b, (byte)0x13, (byte)0x00, (byte)0x00, | |
44 (byte)0x0b, (byte)0x13, (byte)0x01, (byte)0x00, | |
45 (byte)0x9a, (byte)0x9c, (byte)0x18, (byte)0x00, | |
46 (byte)0x00, (byte)0x00, (byte)0x07, (byte)0x74, | |
47 (byte)0x49, (byte)0x4d, (byte)0x45, (byte)0x07, | |
48 (byte)0xdc, (byte)0x04, (byte)0x04, (byte)0x0a, | |
49 (byte)0x32, (byte)0x0f, (byte)0xa3, (byte)0x92, | |
50 (byte)0x8b, (byte)0x55, (byte)0x00, (byte)0x00, | |
51 (byte)0x00, (byte)0x2b, (byte)0x49, (byte)0x44, | |
52 (byte)0x41, (byte)0x54, (byte)0x18, (byte)0xd3, | |
53 (byte)0x63, (byte)0x60, (byte)0x18, (byte)0x1a, | |
54 (byte)0x20, (byte)0x0c, (byte)0x95, (byte)0x9b, | |
55 (byte)0x5c, (byte)0x6e, (byte)0x80, (byte)0xc2, | |
56 (byte)0x37, (byte)0x2f, (byte)0x2f, (byte)0x41, | |
57 (byte)0xe1, (byte)0x8b, (byte)0x97, (byte)0x17, | |
58 (byte)0xa3, (byte)0xf0, (byte)0xd5, (byte)0xd1, | |
59 (byte)0xf8, (byte)0x81, (byte)0xe5, (byte)0x6a, | |
60 (byte)0x28, (byte)0x7c, (byte)0x36, (byte)0x97, | |
61 (byte)0x04, (byte)0x86, (byte)0x61, (byte)0x01, | |
62 (byte)0x00, (byte)0xf0, (byte)0xaa, (byte)0x06, | |
63 (byte)0x2d, (byte)0x16, (byte)0xcb, (byte)0xb9, | |
64 (byte)0x3c, (byte)0x00, (byte)0x00, (byte)0x00, | |
65 (byte)0x00, (byte)0x49, (byte)0x45, (byte)0x4e, | |
66 (byte)0x44, (byte)0xae, (byte)0x42, (byte)0x60, | |
67 (byte)0x82}; | |
68 | |
69 @Override | |
70 public Service.Output process( | |
71 Document data, | |
72 GlobalContext globalContext, | |
73 CallMeta callMeta | |
74 ) { | |
75 log.debug("FixingsKMChartService.process"); | |
76 return new Output(DATA0, "image/png"); | |
77 } | |
78 } | |
79 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |